The Artima Developer Community
Sponsored Link

Java Answers Forum
java virtual machine could not find main class

1 reply on 1 page. Most recent reply: Nov 3, 2008 11:18 PM by Kondwani Mkandawire

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 1 reply on 1 page
adedamola justus

Posts: 1
Nickname: obaleyi
Registered: Oct, 2008

java virtual machine could not find main class Posted: Oct 30, 2008 9:16 AM
Reply to this message Reply
Advertisement
hi ,please i av written a program in netbeans ide,which i am supposed to double click its .jar file to run but anytime i double click it ,it says the java virtual machine could not find the main class,please what can i do?
my e-mail is missisipi07@gmail.com i can receieve replies there


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: java virtual machine could not find main class Posted: Nov 3, 2008 11:18 PM
Reply to this message Reply
> hi ,please i av written a program in netbeans ide,which i
> am supposed to double click its .jar file to run but
> anytime i double click it ,it says the java virtual
> machine could not find the main class,please what can i
> do?
> my e-mail is missisipi07@gmail.com i can receieve replies
> there

You need to define your class path in a META-INF/MANIFEST.MF file if you are trying to run a thick client. Does this make sense?

Flat View: This topic has 1 reply on 1 page
Topic: Any website for cheking the code output Previous Topic   Next Topic Topic: How to do JUnit Testing in Java

Sponsored Links



Google
  Web Artima.com   

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