Page 1 of 1

running Java program

Posted: 08 Sep 2014, 20:21
by oreo
I am trying to run a Java program, and the documentation says it runs well with openJDK. On my linuxmint machine, I can just double click on an sh file and the program executes without installing anything beyond what is there already.

So on Porteus 3.01 I installed gcc-java-4.8.2... But when I try to run the sh file nothing happens. And when I try executing the program in a terminal I get the following message:
Error: JAVA_HOME is not defined correctly.
We cannot execute java

Can you help me?

Re: running Java program

Posted: 08 Sep 2014, 20:41
by Ed_P

Re: running Java program

Posted: 09 Sep 2014, 00:06
by brokenman
and the documentation says it runs well with openJDK
So download and install openjdk (or openjre is probably suitable)

Code: Select all

usm -g openjdk
Be aware that you may need to add /usr/lib/java/bin to your $PATH. I don't remember the exact path but search about how to add JAVA_HOME to your environment path.