Let’s say that I have a jar file @ /usr/local/apps/app1/java/file.jar. I would like to be able to reference file.jar in the java command without typing the full path. For example, java -jar file.jar. How can I achieve this?
Let’s say that I have a jar file @ /usr/local/apps/app1/java/file.jar . I would like
Share
You can’t;
-jarrequires a jar file argument.You could create a symlink, or provide a launcher script.