Menu

cannot find main class

Help
2005-07-14
2013-04-25
  • Nobody/Anonymous

    HELP !!!
    I keep getting Java Virtual Machine - could not find main class - program will exit.

    I cannot get it to run.

     
    • EricW

      EricW - 2005-07-14

      The actual output would be beneficial.

      Are you using the the ".jar" binary or the source code?

      What is your OS and java version?

       
    • Nobody/Anonymous

      Iam on a windows macine and have the latest java download from SUN.
      When I try to open the program from the JAR file
      the Java Virtual Machine window opens with the message "could not find main class - program will exit"

       
    • Nobody/Anonymous

      Has there been any resolution to this.  I get the same error message using Windows XP with the latest JRE installed.

       
    • EricW

      EricW - 2006-01-17

      Be certain you are using Sun's Java.

      Try typing at a command prompt "java -jar " and the file location and name.

       
    • Nobody/Anonymous

      C:\j2sdk1.4.2_11\bin\vmt\Main.java:249: '(' or '[' expected
              Vector<String> v = new Vector<String>();
                                           ^
      C:\j2sdk1.4.2_11\bin\vmt\Main.java:320: <identifier> expected
          public Vector<Object> exportPreferences() {
                       ^
      C:\j2sdk1.4.2_11\bin\vmt\Main.java:375: ';' expected
      }
      ^
      3 errors

      Tool completed with exit code 1

      when i run this application those error msg has coming out...what is the problem i face it.. i'm using j2sdk1.4.2 on windows 2000 environment

       
    • EricW

      EricW - 2006-07-04

      The latest version requires Sun's 1.5 or above.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.