Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Virtual Machine / February 2004

Tip: Looking for answers? Try searching our database.

VM Launcher

Thread view: 
Roel - 10 Feb 2004 21:31 GMT
I get the warning in Java Virtual Machine Launcher,
Could not find the main class.

How can I solve this problem?
And how did it get there?

Txs
Roel
Moshe Sayag - 11 Feb 2004 13:48 GMT
What is the exact command you are running?

Is the class you are trying to run contains a 'main' method, that is a
method with the signature :

public static void main(String[] args) {}

Make sure you type the command correctly.
For example, if the file you are trying to run is at
com/vendor/MyClass.class you have to run something like:

java com.vendor.MyClass

Moshe

> I get the warning in Java Virtual Machine Launcher,
> Could not find the main class.
[quoted text clipped - 4 lines]
> Txs
> Roel


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.