Results 1 to 3 of 3
  1. #1
    sandor is offline Member
    Join Date
    Apr 2007
    Location
    Pennsylvania,USA
    Posts
    45
    Rep Power
    0

    Default eclipse classloader problem

    I had not worked on this particular application in a couple of days. When I opened up eclipse it had a red x on the project but nothing inside had any red xs. I tried to run my suite of tests to see if I could pinpoint what was wrong and it looks like a class Loader issue.
    Here is what I get as an error message.
    I have the class called AllTests open and I am running it as a JUnit . It has worked for weeks until today. Any clue what might have happened? My computer just did some update before this happened ...some automatic windows thing, so that has me suspicious.
    Thanks.


    class not found test.AllTests
    java.lang.ClassNotFoundException: test.AllTests
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.loadClass(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.loadClasses(RemoteTestRunner.java:425)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:445)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:673)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.run(RemoteTestRunner.java:386)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.main(RemoteTestRunner.java:196)

  2. #2
    pegitha is offline Member
    Join Date
    Apr 2007
    Location
    Indiana
    Posts
    83
    Rep Power
    0

    Default

    Check and see if somehow the reference to the jvm got broken. Maybe that update function from windoze did it. Is there a warning triangle in the properties build path?

  3. #3
    sandor is offline Member
    Join Date
    Apr 2007
    Location
    Pennsylvania,USA
    Posts
    45
    Rep Power
    0

    Default

    You were right. The update installed a jre1_5_11 and fubarred my path. Good grief. I make enough of my own errors without having them come in out of the blue.
    thanks.

Similar Threads

  1. Replies: 5
    Last Post: 11-08-2008, 07:15 AM
  2. problem from sun's java to eclipse
    By doood123 in forum Eclipse
    Replies: 0
    Last Post: 12-18-2007, 05:38 AM
  3. SDE for Eclipse 4.1
    By levent in forum Java Software
    Replies: 0
    Last Post: 08-04-2007, 08:47 PM
  4. My own ClassLoader didn't work.
    By snooze-g in forum Advanced Java
    Replies: 1
    Last Post: 07-17-2007, 12:12 PM
  5. SDE for Eclipse 4.0 SP2
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-15-2007, 06:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •