The Artima Developer Community
Sponsored Link

Java Answers Forum
java virtual machine launcher

2 replies on 1 page. Most recent reply: Mar 9, 2003 7:49 PM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
jack

Posts: 1
Nickname: cygnus
Registered: Mar, 2003

java virtual machine launcher Posted: Mar 8, 2003 12:11 PM
Reply to this message Reply
Advertisement
Hi guys

I was wandering if anyone knows how to fix the problem with the jvm launcher. My java programs seem to compile but don't seem to run when "java" is invoked.

Heres a readout from emacs if it helps:

javaw basket1

java.lang.NoClassDefFoundError: basket1
Exception in thread "main"
Process basket1 exited abnormally with code 1

I am using win me
java version: 1.4.1_02
jre build as below
java hotspot(tm) client vm <build 1.4.1_02-b06,mixed mode>

i have already reinstalled windows,jre,jdsk2 and also emacs but all these don't seem to fix it, any ideas?

Thanks

PS my past programs don't seem to work at all however when executed on another machine seems to work fine


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: java virtual machine launcher Posted: Mar 8, 2003 3:19 PM
Reply to this message Reply
Your problem is your classpath.

There are several ways to go about it. But the best way is to follow the guidelines at:

http://java.sun.com/j2se/1.4.1/docs/
Follow the link for your operating system under Installation Instructions
There is very detailed guidance.

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: java virtual machine launcher Posted: Mar 9, 2003 7:49 PM
Reply to this message Reply
This could probably also be fixed by making your current directory the same as where the class file is (which is probably the same as where the .java file is, as well). I don't know how this is done in emacs, but it is probably possible.

Flat View: This topic has 2 replies on 1 page
Topic: Applets writing to a text  file Previous Topic   Next Topic Topic: java Date String to Oracle Date column

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use