J2EESDK PROBLEM

322 byte By sri_priyaa at 2007-10-1 11:17:34
Hello sir,I have the j2eesdk1.4 in windows 2000.I didnot able to set the classpath it is saying that classpath is not recognised or cannot put in to it and I cannot able to work on java and j2ee.I wanted u people to give me the write answer.I hope u understand the question thanking ...

"NullPointerException" when save graphics to jpg

2175 byte By versiona at 2007-10-1 11:19:35
Here is my codes, I try to save the "drawing" Panel graphics into a jpg, and I can compile it, however, when I run it, system tell me" NullPointerException"!!! I'm out of ideas, Please help, Thank you So much!!!import java.awt.*;import java.awt.image.*;import javax.swing.*;import ...

Random "Invalid stored block lengths" error during extract...

3332 byte By mehzukua at 2007-10-1 11:21:04
- I'm using Java 1.3.1 to extract files from a zip as part of a automated data import operation. This has been working pretty well for nearly a year, but now I'm seeing sporadic ZipExceptions that indicate "invalid stored block length". It extracts all the files just fine, even logging every ...

Exception at java.lang.UNIXProcess.<init>(UNIXProcess.java:143)

1180 byte By oashagia at 2007-10-1 11:22:52
Hi all,I'm trying to run a java code on linux OS which was oringinally devloped under windows but I'm getting this error java.io.IOException: java.io.IOException: java: not foundat java.lang.UNIXProcess.<init>(UNIXProcess.java:143)at java.lang.Runtime.execInternal(Native Method)at ...

Compiler Question

191 byte By OhakrOa at 2007-10-1 11:31:20
Hello, I have been looking for a good java compiler, Is java 2 developers kit a good compiler?If not what is a good one,and if I am knew to java do I need the best one (this compiler)?

JRE1.4.2 for Itanium 64

227 byte By reseau-emploia at 2007-10-1 11:35:44
Hi everybody,Can anyone explain why JRE for 1.4.2 is not available althoug SDK is available for Itanium 64 ?Do I have the right to distribute freely the SDK with my products ? like for JRE ?Thanks...

Redistribute UNPACKED JRE?

538 byte By bd_ura at 2007-10-1 11:36:26
I'm going to include the JRE with software that I will be distributing. To simpify installation for users, I'd like to include it 'unpacked', i.e. to run the extraction program myself and include the extracted files in my distribution packaged.The JRE README files says:"Installation ...

Issue with JInternalFrame contained within JSplitPan

1434 byte By sideview1a at 2007-10-1 11:36:51
Hello, hopefully I'm posting this in the right location.I'm currently working with an app that has been layed out in a framed format, with several JSplitPanes dividing up the application view. With in those JSplitPanes are JInternalFrames which are handling what we want to view. We are trying ...

Are the bugs found by FindBugs in java 1.3 real?

1916 byte By tjacobs01a at 2007-10-1 11:37:06
HiMy name is Tom Jacobs. I'm a masters student at the University of Michigan. This semester I have been experimenting with an extended static checker called FindBugs. I am extremely skeptical of this checker, and am seeking to confirm that of the 3842 'bugs' (58 high priority) it found in ...

difference between SUN JDK V1.4.2_05 and JDK V1.4.2_07

128 byte By sriscreena at 2007-10-1 11:38:26
1. I want to know the differeces.2. The link in the SUN site to get them3. I want to the fixes between them

problem with TreeModelEvent

227 byte By BearZhanga at 2007-10-1 11:39:47
HiI have a tree and each node's user object is a string. I am implementing TreeModelListener for dealing with tree model event. I wonder if it is possible to get the old value of the node when I change its value.

How do I disable mouse in my "demo program"

141 byte By dreamjourneya at 2007-10-1 11:44:49
I am using "robot" class to do a demo for the GUI, I don't want the user to interrupt the state using mouse. How can I disable mouse?

JPanels and repainting

555 byte By jesiniaa at 2007-10-1 11:45:13
I have a JPanel defined with 25 buttons on it. When a user selects the Yes button the program should generate a new set of 25 buttons and replace the old ones with these new ones. I can't get this to work. When the new buttons are generated and loaded the panel contains 50 buttons now. I know ...

ActionEvent and JComboBox

561 byte By osipchbaa at 2007-10-1 11:50:37
Here's the problem:Let's say I have two JComboBox components.I select item in the first JComboBox and ActionEvent is being fired.Then I select an item in the second JComboBox and I get two ActionEvents being fired by the first JComboBox plus one ActionEvent being fired by the second ...

java.io.IOException: HTTPS hostname wrong

973 byte By Raghavan_Peketia at 2007-10-1 11:51:26
Hello I was trying to open a connection to secure URL and post content to it.I got the following exception:java.io.IOException: HTTPS hostname wrong: should be <165.112.121.195>at sun.net.www.protocol.https.HttpsClient.b(DashoA12275)Its apparantly because the connection is ...

JAVA II DATABASE

143 byte By Unreleaseda at 2007-10-1 11:53:27
http://www.watertreaty.org/signthepetition.php - Copy & paste, fill the form out. ThanksNickelback - SOMEDAY...

Exception when modifying text as the user types

1840 byte By must41a at 2007-10-1 11:59:08
I have a JTextArea i want to check the text as the user is typing it and fix it right away if it's too long, etc. however i get this errori think it's because i can't modify a JTextArea as the user is typingwhat can i do? thanksapple.awt.EventQueueExceptionHandler Caught Throwable : ...

inheritance in JNI

1369 byte By kthsieha at 2007-10-1 12:06:53
I'm trying to take an API that's written in Java and calling it from C++ using JNI.My question deals with inherited types. For instance, in Java, we can do the following:List list = new List();String in = "me";list.add(string);String out = (String) ...

Focus-listener while writing in a JTextField

242 byte By Azidopsa at 2007-10-1 12:09:14
Hi.I want a button to become active when a letter is entered in a JTextField and inactive when the JTextField is empty. This must happend spontaneously when the letter is entered. FocusLost is to late.How do I solve this?

Howto create a banary file....

243 byte By Garrapataa at 2007-10-1 12:10:21
Hello:I'm making a assambler in java, but I've a problem.I read a instruction, translate it to banary and save the translation in a "int". But I don't know how to save the integer directly in a banary file.Bye...

j2se sdk problem

707 byte By dejaba at 2007-10-1 12:10:50
Hi there,I am a beginner in java programming. i am trying to download java standard edtion (Java(TM) 2 SDK, Standard Edition 1.4.2_08) but am not succeeding. The resultant .exe file cannot be extracted and thus cannot install on win xp. I get the eroor message that the file is not a valid win32 ...

java pattern matching

262 byte By nellywattersa at 2007-10-1 12:25:46
I have jdk1.4 on my computer and have been looking for the pattern matching package within java.util.I was under the impression that it was there so that I could import the followingjava.util.regex.Patternany ideas why I cant find it?

java speech

209 byte By makerjavaa at 2007-10-1 12:28:55
hello ,i need for my final project to you speech functions and i didnt find it freelyby searching google , can anyone please, tell me where i can find it ordownload it.thanks

DSN less connection?

61 byte By prateek007a at 2007-10-1 12:29:27
how can we make a DSN less connection in our java app.

"editing event" in JTextfield

223 byte By OneNowa at 2007-10-1 12:29:49
I would like to know which event is fired when a user writes something in a textfield...My purpouse is to check if some text is modified so that I can enable the Cancel Button and the Ok button...thanks

Netscapre 7.0 crashes with JRE 1.5.0_01

655 byte By mesto23a at 2007-10-1 12:31:05
I have just updated to JRE 1.5.0_01. Before the update, I was able to run an applet without any problems. The applet which makes calls to JAVA and JavaScript worked fine with JRE 1.3.1 and 1.4.2; however, as soon as I updated to JRE 1.5.0_01, the applet began to crash Netscape 7.01. This does ...

java.io.PrintStream deprecation

346 byte By sun2000a at 2007-10-1 12:34:02
Hello,When I compile my program, which is written with JDK 1.4.2, I get as output from the compilationthe message warning: The class `java.io.PrintStream' has been deprecated. But when I lookin javadoc there isn't anything about deprecation for java.io.PrintStream. Anyone who knows whythis ...

Cannot find javac compiler

2940 byte By Limo2kza at 2007-10-1 12:34:25
I have recently installed apache tomcat and the J2SE SDk on my windows machine and have managed to get tomcat to run. However, when i try to test a jsp page I get an error saying ii cannot find the javac compiler. The error I amgetting is shown below.exception org.apache.jasper.JasperException: ...

help needed with actionperformed

1743 byte By Lakupekkaa at 2007-10-1 12:35:07
Hi,could someone tell me how to do the following:I have the following method, which performs certain actions on click of a button.If I click on a button, a popup window opens, I do something and return to main window. This all works fine.Now I want to continue and click another button to do ...

Autocomplete forms with Java

186 byte By DJ_Vikinga at 2007-10-1 12:39:07
I am looking for a way to autocomplete login forms(In a web browser, IE) with a Java program.Does anyone know of a method, or if this is possible with Java? What about JNI?

Problem using dialog box & frame.

1547 byte By Sunmembera at 2007-10-1 12:40:33
Hi!I' ve created an application that uses a JFrame JDialog and many other containers and components.Think at a situation....A user is using Microsoft Windows operating system.There are more than one application or program is opened together at the same time. The user had minimized all other ...

JInternalFrames & componentMoved events

725 byte By Ghoda_Xa at 2007-10-1 12:43:21
I am writing a small app that has multiple internal frames. I have been attempting to write an autoarrange mechanism that will try and re-arrange the internal frames after any one frame has moved. I had thought to simply call the AA method for the frames from the componentMoved method in the ...

java 5.0 - OS X 10.4

418 byte By Sarahismea at 2007-10-1 12:45:48
i just got OS X 10.4 today, and have installed it and downloaded the java 1.5 package for os x 10.4, however i do not see to be able to get os x to (and mroe specifically my editor, "drjava") to realise i have the new version of java? i went ot the utitlities thing and changed it to java 5.0 ...

Filter compile

505 byte By purirb123a at 2007-10-1 12:46:42
I had code from JDK 1.4 that implements Filter. Code is standard from text book like:import java.io.*;import javax.servlet.*;import javax.servlet.http.*;public class check_user implements Filter{private FilterConfig filterConfig = null;}I get error on compile as Filter unresolved. I see in ...

Need help with compiler!

385 byte By DRUMRa at 2007-10-1 12:49:07
Hello, I have been working with C++ before, and the compiler is totaly different than java's. How do you compile code with java, how to you make the DOS Comand Prompt compile code, where do you even type code in java? I am new to java, and am lost, in c++ you typed the code in the ...

JDK Patch Release Dates?

218 byte By shyamala at 2007-10-1 12:50:00
Hi,Where can I find the release dates for the JDK patche releases? In particular, I am looking for the release date for JDK 1.4.2_07. I couldn't find it anywhere on the site..Thanks,Shyamal

How to Trigger alert msg. if radio button is not choosen

1832 byte By Ashvinia at 2007-10-1 12:51:28
Hi all , I want to alert the user if one of the 2 radio buttons are not chosen. Can any one please guide me how to do it ?here is the code!<html><head><title>PO </title><SCRIPT LANGUAGE="JavaScript">function check(){var len = ...

How can I parse "1/2" to double

260 byte By ranjanbaisaka at 2007-10-1 12:51:44
How can I parse "1/2" to double or long?NumberFormat nf = NumberFormat.getIntegerInstance();Number str = null;try{str = nf.parse("1/2");}catch (Exception ex){}returns 1.-Ranjan

classpath desitination not working

972 byte By Prefontima at 2007-10-1 12:53:59
I am new to programming Java Servlets and I'm learning by creating a simple webapp that is listed in my Java book. I'm trying to compile a java servlet I just wrote, but I keep getting errors that indicate that my the servlet classes aren't being found in the classpath. Here is my ...

my compiler is executing unreachable code !

898 byte By tleis1a at 2007-10-1 12:55:01
GreetingsI have an if - else statement such as :if (....){ for (...)....return} // end if else {... return} end elsereturn something; // unreachableI'm executing a loop 10 times, and at 5, 6 and 7. the unreahable section is executed! My question is : when does this happens? and how to prevent ...

Java 5.0 Tiger in Eclipse

492 byte By SamuelJohnsona at 2007-10-1 12:58:10
Hi,I have installed JAVA 5.0 tiger jre in my machine. I have added that in my IDE 揈clipse?in Window>Preferences>Installed JREs, and have made it default. Still I could not compile the classes that use the JAVA 5.0 features like 揼enerics? The version of Eclipse is 3.0.1, can any one guide ...

Finding the days of the week between two dates

248 byte By yenom2003a at 2007-10-1 12:59:41
i was wondering if somebody could help me figure out how to find the days that are between two dates. for example i need to know how many monday, tuesdays, and so on that are between two dates that are entered into the program. Thanks

An extra character is printed in JTextArea

1311 byte By tleis1a at 2007-10-1 13:01:21
for ( int c = 0; c < numberOfQuestions; c++){text += " \nQuestion : " + (c+1);for ( int d = 1; d<5; d++){ if ( answers[e-1] < 220; { if ( e%4 == 0)text += "D";if ( e%4 == 1)text += "A";if ( e%4 == 2)text += "B";if ( e%4 == 3)text += "C"; } e++;}} what ever was the number of questions, ...

MouseListener/ActionListener

954 byte By dwolskea at 2007-10-1 13:01:35
Hopefully someone will be able to help me with this......I am writing a card game that has a JFrame window as it's parent window. This JFrame window is comprised of several nested panels, each of their own separate classes. I have a Table panel extended from JPanel that represents shuffled ...

ClassLoader and Casting problem

735 byte By Alejandro_Ikera at 2007-10-1 13:04:40
Hello,We are 2 spanish students .We have a problem legacy to the classLoader. We have the necessity to load one written and compiled class from a customer. Obviously the cast explicit is not possibile.therefore it is not thought to make to extend all the classes written from the customer to a ...

how to read a string from a JComboBox

235 byte By tleis1a at 2007-10-1 13:08:02
GreetingsI know that to read an integer from a JFormattedTextField we use the following: int falsePoints = ((Number)Field.getValue()).intValue();Now how can I read a String ?

try and catch blocks

2756 byte By HeadCase33a at 2007-10-1 13:08:23
' exception Nameexception is never thrown in the body of corrisponding try statements' anyone help me out i do not understand what to do. these are the directions my teacher used and my book is not much help either. Thanks, HeadCaseprivate class ButtonHandler implements ActionListener//method ...

Getting the name of a class & method at runtime

858 byte By GlenMazzaa at 2007-10-1 13:08:38
Hello,If I have a class "MyBuggyClass" and I want the name of the class and its currently active method to be output in debug statements--is there a generic method available to get these names without hardcoding them, for both static and nonstatic methods?public class MyBuggyClass {public void ...

Mouse listener inconsistency problem

1379 byte By kkmane_javaa at 2007-10-1 13:08:47
hello,I am facing a very strange problem with the mouse events aka mouse listeners.I have a code that plays a sound when mouse is over an iconified label with an icon image.and I have coded the audioclip to stop on the MouseExit method of the listener.I found out that this code did not fier the ...

SAAJ package for JDK1.3

247 byte By neutralidea@gamil.coma at 2007-10-1 13:17:54
Where can I find SAAJ package (and its dependency packages) which runs with JDK1.3 version? Everywhere in java.sun.com has reference to JDK1.4 or higher version only.Can someone refer the link(s) to those packages?Thanks a lot