Java server won't run after reboot
From: Michael Sullivan (msulli1355_at_tulsacoxmail.com)
Date: 05/29/04
- Previous message: Harry: "Problems with acm.o module"
- Next in thread: Reuben D. Budiardja: "Re: Java server won't run after reboot"
- Reply: Reuben D. Budiardja: "Re: Java server won't run after reboot"
- Reply: Reuben D. Budiardja: "Re: Java server won't run after reboot"
- Maybe reply: Reuben D. Budiardja: "Re: Java server won't run after reboot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Harry: "Problems with acm.o module"
- Next in thread: Reuben D. Budiardja: "Re: Java server won't run after reboot"
- Reply: Reuben D. Budiardja: "Re: Java server won't run after reboot"
- Reply: Reuben D. Budiardja: "Re: Java server won't run after reboot"
- Maybe reply: Reuben D. Budiardja: "Re: Java server won't run after reboot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|