URGENT :Error while Running java application in crowntab(linux)
Hi,
I have java application on linux machine.
i created a jar file of my application with all dependencies like oracle drivers etc.
when i run my jar file from any path using
java -jar appjar.jar
its works fine for this or if i add it in .sh file with same comand and run that sh file it also works file.
Then i try to add it in crowntab entry. and schedule crown.
It gives me error
[error]
Exception in thread "main" java.lang.NoClassDefFoundError: oracle.jdbc.driver.OracleDriver
at java.lang.Class.initializeClass (libgcj.so.7)
at java.lang.Class.forName (libgcj.so.7)
at java.lang.Class.forName (libgcj.so.7)
at com.soft.mediator.db.DBConnector.init (DBConnector.java:88)
at com.soft.mediator.db.DBConnector.<init> (DBConnector.java:36)
at com.soft.mediator.XenerMediator.main (XenerMediator.java:113)
Caused by: java.lang.ClassNotFoundException: oracle.security.pki.OracleSecretStore not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/abc.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass (libgcj.so.7)
at java.lang.ClassLoader.loadClass (libgcj.so.7)
at java.lang.ClassLoader.loadClass (libgcj.so.7)
at java.lang.Class.forName (libgcj.so.7)
at java.lang.Class.initializeClass (libgcj.so.7)
...5 more
[/error]
i tried to add all path in jar file, class path even on comand line but it gives me same error,
even i add oracle jar in my path seprately it gives me same error
any idea what is reason ?

