Thread: Java error

Results 1 to 5 of 5
  1. #1 Java error 
    kamie
    Guest
    Hey when running this on my ubuntu linux server i get this run error, i just converted the windows run file to sh and changed the java path. Whats the problem here:

    error:
    Code:
    alex@Alex-Ubuntu:~/Server/bin$ ./run.sh
    : No such file or directoryild
    Exception in thread "main" java.lang.NoClassDefFoundError: net/com/codeusa/Server
    Caused by: java.lang.ClassNotFoundException: net.com.codeusa.Server
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: net/com/codeusa/Server.  Program will exit.
    run.sh:
    Code:
    cd ../build
    
    java net/com/codeusa/Server 43594
    Thanks
    Reply With Quote  
     

  2. #2  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    Compile.

    Attached image

    Reply With Quote  
     

  3. #3  
    kamie
    Guest
    The Server.class file is there though and its runs fine on windows
    Reply With Quote  
     

  4. #4  
    Registered Member
    Lucky One's Avatar
    Join Date
    Sep 2009
    Posts
    228
    Thanks given
    2
    Thanks received
    3
    Rep Power
    95
    maybe u messed up run when u tryed to edit it , extract the original source and get the run from that and put it back into yours , then change the server 5555 to 43594 obv , save and try again


    Reply With Quote  
     

  5. #5  
    kamie
    Guest
    Quote Originally Posted by Lucky One View Post
    maybe u messed up run when u tryed to edit it , extract the original source and get the run from that and put it back into yours , then change the server 5555 to 43594 obv , save and try again
    Im sorry, what are you talking about. I havent edited the source yet. Its saying it cant find a class that's there.
    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
  •