32,204 Topics

Member Avatar for
Member Avatar for Kevingon

Hi, I'm using JasperReports in netbeans, on Ubuntu. When I execute my java application on netbeans I have no problem saving the reports, but when I clean and build the program, and run it from the .jar, the program can't save the reports. I don't know if that's because of …

Member Avatar for Kevingon
0
191
Member Avatar for noobrobot

I need to write a program transfer huge amount of files(60 GB) from my application server running on hp-unix to a remote PC . I haven't worked in hp-unix before. 1.Is it possible to run a sshd server using some shell command in hp unix and connect to the sshd …

0
47
Member Avatar for matharoo

I want to know how to read a file in Java and then store the file contents into a String object...like String[] content= file contents?? here's the code of reading a file and i want the contents to be stored in a string variable... [CODE]public static void main(String[] args) throws …

Member Avatar for Kevingon
0
2K
Member Avatar for lena1990

hi i am work on my graduation project in java using borland jbulider 7 and windows 7 but now when i run the program it doesnot work correctly the component need so many time to apper i will be thankful for any help thanks

Member Avatar for JamesCherrill
0
79
Member Avatar for shivarocks

hello friends i am new to ejb and i tried to create a session bean for obtaining JDBC Connection,and i called it from a servlet the session bean was a remote session bean but connection is not getting established.. EJB CODE : ConnectionBean.java [CODE] package com.ejb; import java.sql.Connection; import java.sql.DriverManager; …

0
117
Member Avatar for BaldingEar

Hi guys. I am getting the error: LoanProgram.java:17: variable payment might not have been initialized payment = getPayment (amount, rate, years, months, payment); I am stumped, and the lab is due tomorrow. If anyone could help me out I would greatly appreciate it. :) I'll put an asterisk on the …

Member Avatar for BaldingEar
0
333
Member Avatar for Jessurider

can anyone tell me how to extract bmp picture frames from a a video file..... and also the reverse process i.e bmp files back to video files...... when i googled i got several stuffs regarding extraction of image files from video file using c#, is there any method in java.....

Member Avatar for Taywin
0
144
Member Avatar for mitchiexlolz

i want to make a menubar similar to that of MS OFfice. I have downloaded some Executable JAR files that tells me they can help me, but as I run the codes, nothing happens. Can you please teach me how make a ribbon menu bar.? or give me a link …

Member Avatar for mitchiexlolz
0
251
Member Avatar for adarshcu

Hi, I was preparing for SCJP 1.6 and i have the following snippet of code. [CODE]package com.self.trials3; public class Animal { public void Animal(){ System.out.println("Obviously Works"); } Animal(){ //System.out.println("Constructor"); //super();use super or this() as first line in your cons to call other //cons. this("Adarsh"); } Animal(String AnimalName){ //System.out.println("AnimalName >> "+ …

Member Avatar for pavanvusirika
0
153
Member Avatar for hiralarious

Hi!(: Sorry, I'm totally new and have no real idea about what I'm supposed to tell you. I just really need some help on my java homework so anything would be much appreciated. (: I feel like I'm already asking for so much.. so I'm really sorry, but can someone …

Member Avatar for hiralarious
0
177
Member Avatar for elkowalski

i have a game that i made [url]www.thenewedinburg.com/obstacles.html[/url] at the end i would like to ask the user to input his name and that name to be saved in a .txt file that is stored in the webpage like for example [url]www.thenewedinburg.com/savename.txt[/url] so that any user that plays and gets …

0
66
Member Avatar for Dante2

I realize this will very likely be a short thread, but it is a question that has been eating at me for a while. I have just started taking a Java class (basic introduction) and so far I am loving it. Primarily I am a web programmer, so the only …

Member Avatar for JeffGrigg
1
398
Member Avatar for rarment

I'm having a severe brain drain moment and can't figure out how to validate user input? I need to make sure that it is an int and it is greater than 2. And I need it to loop until the user meets those requirements. I tried a try-catch block but …

Member Avatar for rarment
0
203
Member Avatar for mfletch

Hey guys, I'm working on an entry level java programming assignment and I'm running into some trouble. I've attached 3 java files and will quote the problem below. If anyone can point me into the right direction I would really appreciate it. Thanks! I'm fairly sure the code needs to …

Member Avatar for mfletch
0
231
Member Avatar for blondielox

I am working on part five of the Farmers Market program and am ready to pull my hair out. Not getting much help from the instructor either. here is the code [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. …

Member Avatar for NormR1
0
184
Member Avatar for Jessurider
Member Avatar for harinath_2007
0
79
Member Avatar for rarment

I keep getting a stackOverflow error in my quickSort and I can not figure out why. Any help would be greatly appreciated!! [CODE] private static void quickSortRecPriv(int[] arr, int first, int last, int ps) { int pivot = arr[first]; int left = first; int right = last; if (arr == …

Member Avatar for JamesCherrill
0
196
Member Avatar for nick6987

Design a cashier change maker that will take as input: a floating point value. Value: "change due" and will convert it to proper currency (from $20 down to pennies) amounts to be handed as change to the customer i am not sure how to use the rounding correctly every time …

Member Avatar for nick6987
0
216
Member Avatar for sirlink99

I am trying out something new and I am wondering if this is valid and is not working because of some other code glitch. Graphics class: [CODE]import java.awt.*; import javax.swing.JPanel; public class Drawing extends JPanel{ KeyCommands kc = new KeyCommands (); public void startGraphics (){ System.out.println ("Adding KeyListener"); addKeyListener (kc); …

Member Avatar for sirlink99
0
149
Member Avatar for gahhon

is possible to work of return statement with Math Class? eg, [CODE]return Math.pow(2,2);[/CODE]

Member Avatar for gahhon
0
145
Member Avatar for Dersev

Hello I have a problem how to make custom defined text area it's similar to text area which you can create in Photoshop while you wan't type any text. Is it possible to do it in swing ?

Member Avatar for JamesCherrill
0
125
Member Avatar for PHkiDz

Hello good day to all... is there anyone can help or suggest me how my code work successfully. Actually the code was working well, but i wanted to change it`s content to GUI form. the program description was the user must input a word/String and shuffle/scramble the word that the …

Member Avatar for JamesCherrill
0
234
Member Avatar for Mi_99

So my title was meant to be array not loop I need to create an application that will generate random spots so far my work is this [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.util.Random; public class Shape{ private int x; private int y; private int width; private …

Member Avatar for JamesCherrill
0
201
Member Avatar for woomichael

Okay so I have read the guidelines and don't believe this post is against the rules or against the rules for asking for help because I have put in an effort and I'm around 70 percent in testing the files. I just need help with this basic Java code to …

Member Avatar for Taywin
0
144
Member Avatar for sebseb678

This is the assignment: TIP CALCULATOR Create a class called TipCalculator which calculates a tip amount based on a grade of service received. calculateTip method Create a method named calculateTip which accepts two incoming parameters: a double and a String. The first parameter (the double) contains the bill total, and …

Member Avatar for NormR1
0
92
Member Avatar for drameshgar1

hy! i am designing game in JAVA as my university project, i want to make myself unique by doing something different ---soo i though of making iphone game that runs java...I designed the iphone app, which is just a icon and few other things...when u click nothing happens but i …

Member Avatar for drameshgar1
0
155
Member Avatar for funwidak

Hello, I have recently joined a orgainization as a [B]Java Engineer Trainee([/B]0 Years of Experience) and working on a project(80% ABAP people are working on project) in mainteance from last 2-3 Years. The Work in the project is of basically in ABAP and [B]Core Java[/B] (Only Basic Java code is …

Member Avatar for peter_budo
0
246
Member Avatar for alliswim2010

[COLOR="gray"][/COLOR]1. your-netid_hw5_1.java : Liang page 253, programming exercise 7.6. (Multiplying two matrices) Write a method to multiply two matrices. The header of the method is as follows: public static double[][] multiplyMatrix(double[][] a, double[][] b) To multiply matrix a by matrix b, the number of columns in a must be the …

Member Avatar for ~s.o.s~
0
725
Member Avatar for maverick420

[TEXT]I'm trying to write an application that will input five numbers from the user. The program should print out the largest and smallest numbers. It should print how many of the numbers are two digit and how many of the numbers are three digit. It should also print out the …

Member Avatar for peter_budo
0
250
Member Avatar for gahhon

as we know the code of scanner is like this, [CODE] ... Scanner scan = new Scanner(System.in); System.out.print("something is something: "); [COLOR="Red"][type] [variable name] = scan.next();[/COLOR]... [/CODE] so here is my problem, how can we scan char type?

Member Avatar for stevanity
0
87

The End.