This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java onn windows vista Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java onn windows vista" Watch "java onn windows vista" New topic
Author

java onn windows vista

alpa pathak
Greenhorn

Joined: Apr 23, 2004
Posts: 1
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
Joan Horta Tosas
Ranch Hand

Joined: Feb 01, 2007
Posts: 59
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)
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

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 ]

Regards, Rene Larsen
Dropbox Invite
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java onn windows vista
 
Similar Threads
Problem with JDK at command prompt
Jboss is not running.Exception in thread "main"
how to install and configure ANT and MAVEN with eclipse in windows vista ?
cannot resolve symbol - help
install jdk vista problem