0

I am new to ubuntu linux command-line. I am trying to link an executable .jar file in a folder that I added to the PATH. The folder is /software_library/bin which is the default PATH, where I should get the .jar file linked and named trimmomatic.

However, the ln -sf command is giving me a .zip file instead of the .jar file in my folder called bin, and I am unable to execute the program by just typing trimmomatic.

What is the solution to this problem?

1 Answer 1

0

You should write an script:

#!/bin/bash
java -jar your_jar_file

Save this script as trimmomatic. Then give permissions:

chmod +x trimmomatic

Put this script in your /.../bin

1
  • OK, I can now run the program with $ bash trimmomatic
    – user796294
    Feb 18, 2018 at 8:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .