• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Installation problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I installed jdk1.3. I set the path variable c:\jdk1.3\bin;c:\jdk1.3\lib. I'm able to compile programs using 'javac' but not able to run programs using 'java' command. It gives the following error "Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/object". If i type the entire path c:\jdk1.3\bin\java, it runs. Please let me know what the problem is.
with thanks,
Shankar
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by shanku:
Hi,
I installed jdk1.3. I set the path variable c:\jdk1.3\bin;c:\jdk1.3\lib. I'm able to compile programs using 'javac' but not able to run programs using 'java' command. It gives the following error "Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/object". If i type the entire path c:\jdk1.3\bin\java, it runs. Please let me know what the problem is.
with thanks,
Shankar


When you type: SET CLASSPATH=.;C
you MUST, and this is very important, put a period "." before the ";" and then type your path in AutoExec.bat. So, after the = sign type a period, then a ;, then your path.
That should work.
 
shanku
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eric:
Thanks and that helped.
shankar
 
You've gotta fight it! Don't give in! Read this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic