I found a 1.5 version of the java.exe file. The error message is the same as what the OP sees.
Uninstall the 1.5 and install a 1.6
Type: Posts; User: Norm
I found a 1.5 version of the java.exe file. The error message is the same as what the OP sees.
Uninstall the 1.5 and install a 1.6
If you see 6.0.260.3 in the system32 folder, where did the above output come from?
Do you get a different response for java vs java.exe?
This shows something. The message is different for my using 1.4 vs his 1.5
The JRE install was different. On Windows the java.exe command is copied to the C:\WINDOWS\system32\ folder, which is on the PATH. Also there are registry entries that point to stuff.
Look in the...
What is the name of the file containing the source?
It should be apples.java
Is the apples class defined in the youtube.java file?
Normally the file names of the .java and the .class files are the same.
The OS is finding the javac and java commands.
Your last post shows that the java command found a problem with the .class file.
Now the java.exe command found the .class file.
It looks like the java.exe command is an older version of java than the java command that created the .class file.
Or the .class file is corrupted....
That doesn't make any sense.
There is a java command.
There is an apples.class file.
It's like there is a batch file named java.bat that is sidetracking the attempt to execute the real...