Skip to Content
0
Former Member
Dec 21, 2007 at 11:10 PM

Simple Shell Script Question.... [java related]

34 Views

Hey guys! This is my first post, as im new here :S

I have a simple problem for a big program.

We have a .sh to install it, but when I run the .sh in terminal like i should, It says the class is not found. I believe it has to do with the syntax, as the person who made it is not a linux pro. I don't know MUCH about shell scripts, but I'm pretty sure I know where the error lies.

Our Script:

java -classpath ./:./jars/tools.jar:./jars/nexus.jar impsoft.nexus.installer.Install

chmod a+x run.sh compile.sh

The Error:

Exception in thread "main" java.lang.NoClassDefFoundError: impsoft/nexus/installer/Install

What I think the problem is:

./jars/nexus.jar impsoft.nexus.installer.Install

Thank you for ALL of your help!