Hello
I've a problem with cron and Java application.
Env: linux debian
I have installed jdk1.4 as local user in my home catalog.
When I try start simple class that is no problem, but
the problem is when I try start jar application
my script looks like:
#! /bin/bash
PATH=${PATH}:"/home/grzegorz/jdk1.4/bin"
export PATH
java -jar -cp %CLASSHPATH%:/home/grzegorz/cron_test/ Test.jar >
/home/grzegorz/cron_test/log.txt 2>/home/grzegorz/cron_test/errors.txt &
and I got :
Exception in thread "main" java.util.zip.ZipException: No such file or
directory
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.jar.JarFile.<init>(JarFile.java:117)
at java.util.jar.JarFile.<init>(JarFile.java:55)
Despite I check out permissions to this catalog, all seems to be fine.
If I start this script manually everything is ok.
What's the problem ?
Regards GW