• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

java onn windows vista

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

i have windows vista as an operating system.I have installed Jdk1.6 on it.
My path is
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common
Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShar
ed\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\program files\java\jdk1.6.0\bin;C:\Program Files\QuickTime\QTSystem\;

classpath
.;C:\Program Files\Java\jdk1.6.0\jre\lib;C:\Program Files\Java\jre1.6.0\lib\ext\QTJava.zip;

I have written simple hello java program .It compiles but does not run
i tried even with java -classpath .javafilename

i get the following error
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

thanks for the help in advance.

AP
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
put between quotes ("") classpath entries that have spaces, or use the DOS name of the dirs (you can see the DOS name of a file with DIR /X)
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try put "c:\program files\java\jdk1.6.0\bin" in the front in the PATH.

What is the result of "java -version" in a command prompt?
[ March 25, 2007: Message edited by: Rene Larsen ]
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic