COMPILE ERROR

i downloaded j2sdk-1_4_2_05-windows-i586-p.exe and installed it in a win2k pro pc.

no problem in installation.

copied a simple program from the net:

class HelloWorld {

public static void main(String[] args) {

System.out.println("Hello World!"); //Display the string.

}

}

then saved it as "HelloWorld.java".

the error:

Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorl/java

[474 byte] By [pemorej] at [2007-9-30 12:47:41]
# 1

OK. Lets do this:

First type this in the folder where you have saved your java source file.

javac HelloWorld.java

The above should create a HelloWorld.class file in the same folder.

Once that is done, next do this:

java HelloWorld

The above should run the program. If it complains then try running it this way:

java -cp . HelloWorld

Please note the dot in the line above.

Hope this helps.

john.m at 2007-7-4 16:59:32 > top of Java-index,Administration Tools,Sun Connection...
# 2

Hi,

I am trying to install JDK 1.4 on win 2k IBM latop and get an error during installation steps.

The error is "Internal Error 2755, 110 followed by the path to the program java 2 sdk, se v1.4.2_5.msi.

This error comes after running j2sdk-1_4_2_05-windows-i586-p.exe this runs properly for the first few steps such as taking in the license acceptance. I get the above error after getting an initial error saying "The system cannot open the device or file".

I already have JRE 1.3 version running not sure if it poses a conflict.

I have check the file of the installer which is 51MB.

thanks

kumar

thirumoorthys123 at 2007-7-4 16:59:32 > top of Java-index,Administration Tools,Sun Connection...