Find the answer to your Linux question:
Results 1 to 2 of 2
Hey, I'm helping a friend make a .sh file for his little java program, and this is what it is: Code: java -classpath ./:./jars/tools.jar:./jars/nexus.jar impsoft.nexus.installer.Install chmod a+x run.sh compile.sh Now, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Posts
    1

    Terminal Help


    Hey, I'm helping a friend make a .sh file for his little java program, and this is what it is:

    Code:
    java -classpath ./:./jars/tools.jar:./jars/nexus.jar impsoft.nexus.installer.Install
    
    chmod a+x run.sh compile.sh
    Now, I KNOW theres a problem here:
    Code:
    ./jars/nexus.jar impsoft.nexus.installer.Install
    I guess the syntax is wrong or something?

    Thanks for all of you're suggestions/help!

  2. #2
    Just Joined!
    Join Date
    Jul 2007
    Location
    Middle of No Where.
    Posts
    27
    I don't see what the problem is. If you told us what the problem your having is, that would be helpful. I have a few guesses at what your problem is.

    SH: Operation not Permitted
    If your seeing something like this, you might need to replace './' with 'bash '.
    aka: "$ bash jars/nexus.jar impsoft.nexus.installer.Install

    Now, I don't know the java syntax, but it looks a bit like python syntax.
    If that's true, then you might replace
    java -classpath ./:./jars/tools.jar:./jars/nexus.jar impsoft.nexus.installer.Install
    with
    java -classpath jars/tools.jar jars/nexus.jar
    impsoft.nexus.installer.install
    Again, please post your problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •