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?
running Java program
- brokenman
- Site Admin
- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
- Contact:
Re: running Java program
and the documentation says it runs well with openJDK
So download and install openjdk (or openjre is probably suitable)
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.
So download and install openjdk (or openjre is probably suitable)
Code: Select all
usm -g openjdk
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.