Thread: [PI] Run.Bat [PI]

Results 1 to 4 of 4
  1. #1 [PI] Run.Bat [PI] 
    Registered Member xCDIx's Avatar
    Join Date
    Jun 2011
    Posts
    221
    Thanks given
    5
    Thanks received
    2
    Rep Power
    0
    My Run.bat isn't working here is what it says..

    Code:
    The Current Date is: [Mon 04/16/2012]
    The Current Time is: [18:41:25.83]
    Exception in thread "main" java.lang.UnsupportedClassVersionError: server/Server
     : Unsupported major.minor version 51.0
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
    1)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
            at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    Could not find the main class: server.Server.  Program will exit.
    Press any key to continue . . .
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Mar 2012
    Age
    27
    Posts
    1,518
    Thanks given
    473
    Thanks received
    324
    Rep Power
    0
    Could not find the main class: server.Server.
    Reply With Quote  
     

  3. #3  
    Legends Never Die


    Join Date
    Nov 2009
    Posts
    4,289
    Thanks given
    91
    Thanks received
    1,216
    Rep Power
    5000
    Quote Originally Posted by Snow Villier View Post
    Could not find the main class: server.Server.
    Not the problem.

    He's trying to run with a different java version.

    Compile the source/client in the same java version your run.bat is.
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member

    Join Date
    Aug 2011
    Posts
    2,760
    Thanks given
    297
    Thanks received
    534
    Rep Power
    1596
    Set your classpaths javac & java to the same version, if you have none set; use your newest java version to both compile and run.
    Quote Originally Posted by Aj View Post
    This is not even a tutorial. It's fail for rep. It's fail for life.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Run.bat that clears other run.bat?
    By tuna guy in forum Software
    Replies: 0
    Last Post: 07-06-2011, 05:10 AM
  2. Pja/hyperion Compiler.bat and run.bat
    By Haskell Curry in forum Configuration
    Replies: 19
    Last Post: 04-24-2011, 07:31 AM
  3. Replies: 2
    Last Post: 03-13-2011, 02:40 PM
  4. Replies: 3
    Last Post: 08-22-2010, 08:57 AM
  5. compile.bat and run.bat for Hyperion
    By Armo in forum Snippets
    Replies: 3
    Last Post: 08-13-2010, 07:59 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •