Page 2 of 2 FirstFirst 12
Results 21 to 28 of 28
  1. #21
    javaNeophyte is offline Member
    Join Date
    Oct 2010
    Location
    Montreal
    Posts
    17
    Rep Power
    0

    Default Moved rt.jar from jre6

    I moved the rt.jar file but I got a whole stack of error messages. I tried to send you the screen grab but it exceeded the limit for doc files. I will reproduce it below:
    I launch the "javac" command and the JDK responds with:

    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    Could not find the main vclass: com.sun.tools.javac.Main. Program will exit.

  2. #22
    javaNeophyte is offline Member
    Join Date
    Oct 2010
    Location
    Montreal
    Posts
    17
    Rep Power
    0

    Default

    I guess my next move is to try installing a 64-bit version of JDK. It doesn't seem like this will work since I confirmed that I am running 32-bit Windows when I ran winmsd.exe. It reports that my system type is an "X86-based PC" and that my Processor is an "x86 Family 15 Model 31 Stepping 0 AuntenticAMD ~1802 Mhz". However I will try it and let you know what happens.
    Last edited by javaNeophyte; 10-05-2010 at 02:04 PM.

  3. #23
    javaNeophyte is offline Member
    Join Date
    Oct 2010
    Location
    Montreal
    Posts
    17
    Rep Power
    0

    Default Tried configuration recommended for 32-bit Windows with AMD64

    I installed JDK 5 Update 22 with its intendant JRE 5/22. I was lead to this version while searching for the configuration that I have; namely 32-bit Windows running on an AMD-64 processor (which I believe is fairly non-standard). Now I am not able to run java or javac.:confused:

  4. #24
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,798
    Rep Power
    19

    Default

    Have you uninstalled all your JDKs and JREs (via Add/Remove)?

    After that I'd then check the register (not entirely sure which bit), though there may be a way to actually clean it properly...not something I have had to actually do. Something seems to be hanging around, and until that's sorted out I suspect you'll continue to have this problem.

  5. #25
    javaNeophyte is offline Member
    Join Date
    Oct 2010
    Location
    Montreal
    Posts
    17
    Rep Power
    0

    Default

    I uninstalled the JDK and JRE, cleaned the registry using Norton registry cleaning tool (it found java related keys that it deleted), and re-installed the 32-bit versions of JDK1.6.0_21 and JRE6. I noted that there is no rt.jar file inside the jre/lib in the JDK directory.
    I manually entered path, classpath, and java_home and come back to the original error - Error occurred during initialization of VM java/lang/NoClassDefFounderror: java/lang/Object. When I consider the number of programs that I cannot remove from my PC using the Windows XP Add & Remove Program utility and from the feedback I get from the Norton registry cleaning tool I will conclude that there is something seriously wrong with my registry and therefore I will try to either re-install my XP (OEM version) or seek help with my PC distributor.

    Thanks for all the suggestions. The good news is that I was able to install JDK virtually pain-free on a Windows Vista laptop - however this laptop is used by my kids for homework purposes so I don't get much access...

  6. #26
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,798
    Rep Power
    19

    Default

    If rt.jar is not there when you install that JDK then I would say it's corrupt, unless things have changed between 18 and 21.

    Is this still the same copy you have been trying to install?

    If so I would suggest redownloading off the Sun/Oracle site.

  7. #27
    javaNeophyte is offline Member
    Join Date
    Oct 2010
    Location
    Montreal
    Posts
    17
    Rep Power
    0

    Unhappy Re-install XP-Pro?

    I've installed (estimating) 5-6 copies of JRE6 & JDK1.6.0_21, 1 copy of JRE5 and JDK1.5.0_22 5/22, and I've tried JRE6, JDK1.6.0_19 once as well. I also tried to install a 64-bit version of the 6/21 pair which didn't work at all.

    Each time I've removed the old copies with the Add&Remove utility and reset my environment variables. I installed a JDK on my Vista PC so I feel that my technique is alright (at this point I could do it in my sleep!), however I think there is something wrong with my registry that is keeping me from erasing an old JBuilder 5 install or secondly I think my combination of a 64-bit processor (AMD Athlon 64) with a 32-bit XP Pro seems to be confusing the installer at Sun/Oracle.

    I'm contemplating purchasing a copy of XP Pro and re-installing my Windows OS (I didn't get a CD with my OEM version of Windows).

  8. #28
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,337
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by javaNeophyte View Post
    I'm contemplating purchasing a copy of XP Pro and re-installing my Windows OS (I didn't get a CD with my OEM version of Windows).
    Best of luck with it; try to buy a copy of a 64 bit OS so hopefully everything fits afterwards; I'm running on a 64 bit laptop with a 64 bit OS and a 64 bit JDK and JRE; all without problems.

    kind regards,

    Jos

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 5
    Last Post: 06-02-2010, 01:05 PM
  2. Replies: 3
    Last Post: 06-01-2010, 03:01 PM
  3. java.lang.NoClassDefFoundError
    By bizmut in forum Eclipse
    Replies: 3
    Last Post: 06-15-2008, 12:54 AM
  4. java.lang.NoClassDefFoundError
    By J_a_y in forum New To Java
    Replies: 2
    Last Post: 08-07-2007, 11:51 AM
  5. java.lang.NoClassDefFoundError
    By fred in forum Advanced Java
    Replies: 3
    Last Post: 08-01-2007, 05:00 PM

Tags for this Thread

Posting Permissions

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