Java server won't run after reboot

From: Michael Sullivan (msulli1355_at_tulsacoxmail.com)
Date: 05/29/04

  • Next message: Redhat Enterprise: "Re: Kernel upgrade SOS"
    To: redhat-list@redhat.com
    Date: Sat, 29 May 2004 11:16:45 -0500
    
    

    First off, I'm not sure if this is a java problem or a Linux problem.
    If you think it's a Java problem, tell me and I'll send this question to
    a Java list. I wrote a java server that I want to start every time my
    server PC restarts. I created a /usr/local/classes directory and copied
    Server.class and the support classes it uses there. Id cd'd to
    /usr/local/classes and issued a java Server from there and it works
    fine, but if I issue a java /usr/local/classes/Server from anywhere
    outside the /usr/local/classes directory it tells me

    Exception in thread "main" java.lang.NoClassDefFoundError: /usr/local/classes/Server

    I don't think this is a java problem because it doesn't give me this error if I ask to run the Server from within /usr/local/classes. I've tried editing rc.local to say "cd /usr/local/classes" and then "java Server" and I've tried calling an executable batch file from rc.local that cd's to the /usr/local/classes directory and then "java Server", which works from the command line, but doesn't work after reboot. Can anyone help me?

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Redhat Enterprise: "Re: Kernel upgrade SOS"

    Relevant Pages

    • Java Newb
      ... I just started a java class and I have this assignment and I'm ... Java Problem ...
      (comp.lang.java)
    • Re: Is it possible to do a clean installation of FC5?
      ... I have considered just reinstalling FC4, but thought why not the newest FC5. ... Apart from the java problem, my Linux system works just fine. ...
      (linux.redhat.install)
    • Re: Java server wont run after reboot
      ... I'm not sure if this is a java problem or a Linux problem. ... set the environment variable CLASSPATH to /usr/local/classes so that Java ... you have to actively try to destroy ...
      (RedHat)
    • Re: Java server wont run after reboot
      ... I'm not sure if this is a java problem or a Linux problem. ... set the environment variable CLASSPATH to /usr/local/classes so that Java ... you have to actively try to destroy ...
      (RedHat)
    • CWShredder found a cwstrojan ........
      ... a 'DOUBLE-SECRET' patch or something!!--But u SAY it ... doesn't stop the JAVA hole anyway!--I'm jus SICK an' ... >>eliminates this JAVA problem instead of putting ... >>Didnt CWS remove the trojan? ...
      (microsoft.public.windowsxp.security_admin)