Skip to main content

java command not found

1 reply [Last post]
dipocse
Offline
Joined: 2008-11-25
Points: 0

Hi All
I've a shell script file(runagi.sh) on linux. But when i try to run(./runagi.sh) it shows me a java command not found with the line number.

The error is for the following line.

java -cp $JARS $UNCLASPS NOWAVE

The variables $JARS $RUNCLASS and their defined value is given below...

JARS="curtin.jar:./lib/log4j-1.2.11.jar:./lib/jta.jar:./lib/antlr-2.7.6rc1.jar:./lib/ehcache-1.1.jar:./lib/cglib-2.1.3.jar:./lib/dom4j-1.6.1.jar:./lib/mail.jar:./lib/commons-lang-1.0.1.jar:./lib/mysql-connector-java-3.1.10-bin.jar:./lib/asm-attrs.jar:./lib/commons-logging-1.0.4.jar:./lib/commons-collections-2.1.1.jar:./lib/mailet_1_0.jar:./lib/asterisk-java-0.2.jar:./lib/jdom.jar:./lib/rome-0.7.jar:./lib/asm.jar:./lib/hibernate3.jar:./lib/activation.jar:./lib/c3p0-0.9.0.jar:."

and

RUNCLASS="curtin.control.VAEAGIServer"

would any one tell me what may be the reason for the error?
Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gluk
Offline
Joined: 2009-04-20
Points: 0

The solution for most of the Java related errors can be found at this site: http://iderror.com/category/errors/java/