facebook

"could not find main class.program will exit"issue

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #205824 Reply

    google04
    Member

    I use eclipse developed a j2SE application.
    JDK is 1.4.2_04
    I can run application in eclipse,but cann’t run in windows console by command “javaw server”
    detail see screen capture

    – System Setup ——————————-
    Operating System and version: windows2000 professional
    Eclipse version: 2.1.2
    Eclipse build id:
    Fresh Eclipse install (y/n):
    If not, was it upgraded to its current version using the update manager?
    Other installed external plugins: JDT,Junit
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*:
    MyEclipse version:
    Eclipse JDK version:
    Application Server JDK version:
    Are there any exceptions in the Eclipse log file?

    – Message Body ——————————-

    #205826

    Riyad Kalla
    Member

    google04,
    This is an Eclipse question, which is outside of the scope of this forum.

    However, I would say that your command is wrong, try “java -server”, if that doesn’t work its because the default JRE (which is typically what is being run when you type “java”) only installs the client VM. If you want the server VM as well, then you will want to copy the <JDK install dir>\jre\bin\server directory over to the <JRE install dir>\bin directory. Keeping in mind that typically the JDK install dir is something like:

    
    C:\j2sdk1.4.2_04
    

    and the JRE install dir is usually:

    
    C:\Program Files\Java\j2re1.4.2_04
    
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: "could not find main class.program will exit"issue

You must be logged in to post in the forum log in