Search:

Type: Posts; User: Junky

Search: Search took 0.09 seconds.

  1. Re: Exception in thread "main" java.lang.NoClassDefFoundError

    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...
  2. Re: Exception in thread "main" java.lang.NoClassDefFoundError

    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.
  3. Re: Exception in thread "main" java.lang.NoClassDefFoundError

    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...
  4. Re: Exception in thread "main" java.lang.NoClassDefFoundError

    Out of curiosity post the contents of youtube.java

    Arrgh, fell for the ol' page 2 trick.
  5. Re: Exception in thread "main" java.lang.NoClassDefFoundError

    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...
  6. Re: Exception in thread "main" java.lang.NoClassDefFoundError

    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...
  7. Re: Exception in thread "main" java.lang.NoClassDefFoundError

    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...
Results 1 to 7 of 7