Results 1 to 5 of 5
  1. #1
    red
    red is offline Member
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    0

    Question Error occured during initialization of VM

    hello java community

    I'm new to java and when i install "jdk-1_5_0_09-windows-i586-p.exe",
    i got the error message.
    I set the correct path in environment variables but i got that.tell me what is wrong?
    Error occured during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,562
    Rep Power
    25

    Default

    What command are you entering to get the error message?

  4. #4
    red
    red is offline Member
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    0

    Default

    I mean when i use " java -version" in DOS.
    but when i restart my computer,it is ok to run.I don't know why and pls explain to me.However,when i use to execute java file, i have to write "-cp".
    eg. java -cp . test
    but i don't want to use "-cp".What can i do for that?
    Thank a lot for ur reply

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,562
    Rep Power
    25

    Default

    I'm not sure where you are now?
    Are you getting an error?
    If so copy and paste the FULL text of the message here.
    Can't explain without that.
    Does your computer have the CLASSPATH environment variable set? Does it have the . in it? IF does not have it, add the .

Similar Threads

  1. variable initialization
    By rqal.10 in forum New To Java
    Replies: 5
    Last Post: 06-15-2008, 06:39 AM
  2. 2D Array Initialization
    By M77 in forum Advanced Java
    Replies: 3
    Last Post: 06-04-2008, 02:12 PM
  3. initialization value problem
    By ravian in forum New To Java
    Replies: 2
    Last Post: 01-28-2008, 10:54 AM
  4. Lazy Initialization
    By onegcr in forum New To Java
    Replies: 1
    Last Post: 08-14-2007, 03:29 PM
  5. log4j initialization
    By arfatkhan in forum Web Frameworks
    Replies: 3
    Last Post: 08-10-2007, 07:42 PM

Posting Permissions

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