Thread: [PI] Run error...Once Again...

Results 1 to 5 of 5
  1. #1 [PI] Run error...Once Again... 
    Donator
    xSelseor's Avatar
    Join Date
    Mar 2009
    Age
    28
    Posts
    456
    Thanks given
    33
    Thanks received
    4
    Rep Power
    28
    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: server/Server
    Caused by: java.lang.ClassNotFoundException: server.Server
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
    Could not find the main class: server.Server.  Program will exit.
    Press any key to continue . . .
    Code:
    @echo off
    title Faith-Pk
    cd src
    java -Xmx512m -cp "C:\Program Files\Java\jre1.6.0_14\bin\java.exe" server/Server
    pause
    Let me explain the jre incase anyone asks. If i run a server with jdk above 16 (i have 18) it will not run the server for others. Where as jre6u14 does.

    Any help?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Chiief's Avatar
    Join Date
    Jun 2010
    Posts
    1,544
    Thanks given
    69
    Thanks received
    238
    Rep Power
    611
    Code:
    @echo off
    title Server Name Here
    "C:\Program Files\Java\jdk1.6.0_14\bin\java.exe" -Xmx800m -cp bin;deps/poi.jar;deps/mysql.jar;deps/mina.jar;deps/slf4j.jar;deps/slf4j-nop.jar;deps/jython.jar;log4j-1.2.15.jar; server.Server
    pause
    Try that in your run.bat and make sure you have compiled.
    Reply With Quote  
     

  3. #3  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    change the server/Server to server.Server
    Reply With Quote  
     

  4. #4  
    Donator
    xSelseor's Avatar
    Join Date
    Mar 2009
    Age
    28
    Posts
    456
    Thanks given
    33
    Thanks received
    4
    Rep Power
    28
    Quote Originally Posted by animeking1120 View Post
    change the server/Server to server.Server
    Already tried, Thanks chief for the fix. Mod close this please.
    Reply With Quote  
     

  5. #5  
    -- Client Developer -- Insane's Avatar
    Join Date
    Aug 2010
    Posts
    299
    Thanks given
    2
    Thanks received
    33
    Rep Power
    56
    got teamviewer maybe i can help? I think i know the fix.
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •