Answer the question
In order to leave comments, you need to log in
How to make a JAVA call in Linux shorter?
I downloaded JDK 11 to a Linux server, and now to run the program I write: /usr/local/JDK/bin/javac ./Programm.java
/usr/local/JDK/bin/java Programm
How to make it possible to write without /usr/local/JDK/bin/
, that is, just javac and java ?
Answer the question
In order to leave comments, you need to log in
Use the utility update-java-alternatives
to set your Java as default.
Set java version as default (needs root permissions):
askubuntu
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question