export CLASSPATH=":/home/me/java/Temp.class:/home/me/java/Select.class:
/usr/jdk1.2.2/lib/mysql_comp.jar:"
/usr/jdk1.2.2/bin/java /home/me/java/Select
~
Troy Johnson wrote:
Eric,Make sure you export all variables in the script that Java needs to make
it's magic happen, before you call ".../java Foo". The full path is
always a good idea when doing cron jobs, so you might try to give the
full path to "Foo". HTH,Troy
Erick Stohr wrote:
>
> Hopefully and probably an easy question, but how would I set up a java
> program to be run in crontab, would I write some kind of script? Right
> now I have written /usr/jdk1.2.2/java Foo in a file and try to execute
> it but obviously it is not working, I get a Exception in thread "main"
> java.lang.NoClassDefFoundError, does my other class need to be in there
> somewhere? I can handle the crontab stuff I think, it is just getting
> the file as a script I don't really know how to do, or have never done.
> Thanks.
>
> erick
>
> --
>
> Erick Stohr - PageLab Network, Inc.
> mailto:erick@pagelab.net http://pagelab.net
>
> Your search-to-sale global e-commerce solution!
>
> Toll free 1-800-447-0607
> Voice 612-362-9224
> Fax 612-362-9227
> 43 Main Street SE, Suite 228
> Minneapolis, Minnesota 55414---------------------------------------------------------------------
To unsubscribe, e-mail: tclug-devel-unsubscribe@mn-linux.org
For additional commands, e-mail: tclug-devel-help@mn-linux.org
-- Erick Stohr - PageLab Network, Inc. mailto:erick@pagelab.net http://pagelab.net Your search-to-sale global e-commerce solution! Toll free 1-800-447-0607 Voice 612-362-9224 Fax 612-362-9227 43 Main Street SE, Suite 228 Minneapolis, Minnesota 55414