Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

Error occurred during initialization of VM

Thread view: 
onali1811@gmail.com - 25 Apr 2006 15:10 GMT
Hi,

I just installed JDK1.5 on a linux machine and added it bin directory
to the path variable.

However, whenever i execute java, it give me the following error

yantra:/usr/java/jdk1.5.0_06/lib# java
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

am i missing something. like classpath.. i think rt.jar is included in
classpath by default

please give me any clue

thanks

on ali
Gordon Beaton - 25 Apr 2006 15:26 GMT
> whenever i execute java, it give me the following error
>
> yantra:/usr/java/jdk1.5.0_06/lib# java
> Error occurred during initialization of VM
> java/lang/NoClassDefFoundError: java/lang/Object

Probably you aren't running the java you just installed.

What do "type -a java" and "type -a javac" say?

/gordon

Signature

[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e

onali1811@gmail.com - 25 Apr 2006 15:49 GMT
i used "which java" command and it showed me the correct path


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.