RE: Running an application from a different directory

2004-04-20 Thread Kiren Pillay [ MTN - Innovation Centre ]
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

Re: [Solved!] Running an application from a different directory

2004-04-20 Thread Jaume Obrador
Sorry, I found the problem. The problem was that I needn't to specify the full path of the app since I specified the classpath, so: $ java -classpath /home/jaume/Documents/retruc/ ChatServer ... worked perfectly. Thanks. On dt, 2004-04-20 at 05:35, Joseph Shraibman wrote: > Jaume Obrador wrote:

Re: Running an application from a different directory

2004-04-19 Thread Joseph Shraibman
Jaume Obrador wrote: What finally I want to do is to run a java process as a daemon and I must be able to run it from /etc/init.d/ Inside the script just change to the proper directory (or set the CLASSPATH variable). Changes to the environment made by a script are lost when the script ends,

Running an application from a different directory

2004-04-19 Thread Jaume Obrador
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 $H