RE: Running an application from a different directory
"Kiren Pillay [ MTN - Innovation Centre ]" <[email protected]>
| Newsgroups | gmane.comp.java.linux.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Try $ java -classpath $HOME/myprogram $HOME/myprogram/Program Regards Kiren -----Original Message----- From: Jaume Obrador [mailto:[email protected]] Sent: Tuesday, 20 April 2004 12:17 To: [email protected] Subject: Running an application from a different directory Hi I have a problem. I need to execute a java app. that is located in a different directory of the current one. For example I'm at $HOME and run $ java $HOME/myprogram/Program it gets a ClassDefNotFoundException error. But I can compile, using: $ javac $HOME/myprogram/Program.java If I'm i $HOME/myprogram/ directory i works. What finally I want to do is to run a java process as a daemon and I mustb e able to run it from /etc/init.d/ Any comments are wellcome. Thanks. ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] NOTE: This e-mail message is subject to the MTN Group disclaimer see http://www.mtn.co.za/email_disclaimer.asp ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]