When did this show up? This is exactly what I was saying about 1.5 not being able to run a 1.6 generated class file. All errors prior to this where "NoClassDefFoundException", which has nothing to do...
Type: Posts; User: Junky
When did this show up? This is exactly what I was saying about 1.5 not being able to run a 1.6 generated class file. All errors prior to this where "NoClassDefFoundException", which has nothing to do...
The strange thing is that even if class apples is in youtube.java, compiling youtube.java generates apples.class which should run. I just wonder if OP is yanking our chain.
Please ask questions on the forum!
You have JRE 1.5 installed as well as JDK 1.6. Since the JDK comes with the JRE all you need to do is remove JRE 1.5 from your path and JDK/JRE 1.6 will be found...
Out of curiosity post the contents of youtube.java
Arrgh, fell for the ol' page 2 trick.
You have a class inside youtube.java. When you compile it, the apple.class file is generated. As I said the apple class should be in apple.java not youtube.java. I also noted that your JRE is 1.5...
Here are a few steps to narrow down the problem.
Type javac -version to see if javac is recognised.
Type java -version to see if java is recognised.
Make sure your class apples is saved in...
This is an error? public static void main(String args[])
Was the above post made by you? If so you were getting help (but providing very little information) in that thread why start another post...