Thread: Help with changing .bat to .sh

Results 1 to 5 of 5
  1. #1 Help with changing .bat to .sh 
    Registered Member
    Join Date
    Oct 2009
    Posts
    171
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    well i bought a linux VPS and now I cannot seem to get the server to run on centOS.

    the error is here using:

    Code:
    java net.com.Server 43594

    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: net/com/Server
    Caused by: java.lang.ClassNotFoundException: net.com.Server
            at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    Could not find the main class: net.com.Server. Program will exit.

    Here is my run.bat

    Code:
    @echo off
    title SunScape World 1 - Port 43594
    cd ../build
    "C:\Program Files\Java\jdk1.7.0_10\bin\java.exe" net/com/Server 43594
    pause


    I would really appreciate the help

    Thanks so much
    Reply With Quote  
     

  2. #2  
    Server Developer
    Argyros's Avatar
    Join Date
    Apr 2011
    Posts
    498
    Thanks given
    25
    Thanks received
    31
    Rep Power
    23
    [code]
    @echo off
    title SunScape World 1 - Port 43594
    cd ../build
    java -classpath net/com/Server 43594
    pause
    [code]

    Try that I not 100% sure since I haven't messed with linux in a while.
    If it doesn't work let me know.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2013
    Posts
    369
    Thanks given
    104
    Thanks received
    21
    Rep Power
    4
    Quote Originally Posted by Evolution0521 View Post
    Code:
    @echo off
    title SunScape World 1 - Port 43594
    cd ../build
    java -classpath net/com/Server 43594
    pause
    ....
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Oct 2009
    Posts
    171
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Evolution0521 View Post
    [code]
    @echo off
    title SunScape World 1 - Port 43594
    cd ../build
    java -classpath net/com/Server 43594
    pause
    [code]

    Try that I not 100% sure since I haven't messed with linux in a while.
    If it doesn't work let me know.

    it didn't work :/ I got the error
    Exception in thread "main" java.lang.NoClassDefFoundError: 43594
    Caused by: java.lang.ClassNotFoundException: 43594
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 21)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 66)
    . Program will exit.ain class: 43594
    ./pvpscape/bin/runn.sh: line 3: pause: command not found
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2009
    Posts
    171
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Please help
    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. Help with changing class8 to itemdef.
    By Descracescape in forum Help
    Replies: 3
    Last Post: 04-15-2012, 09:26 AM
  2. Need help converting .bat to .sh
    By Dungeon in forum Help
    Replies: 9
    Last Post: 03-15-2011, 10:58 PM
  3. Need help converting .bat to .sh
    By Dungeon in forum Help
    Replies: 0
    Last Post: 03-14-2011, 08:33 PM
  4. Changing .bat to .sh [ REP++ ]
    By every1thing in forum Help
    Replies: 4
    Last Post: 08-15-2010, 06:59 AM
  5. help with run.bat
    By SODIO in forum Help
    Replies: 8
    Last Post: 11-06-2008, 09:47 AM
Tags for this Thread

View Tag Cloud

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