running Java program

Post here if you are a new Porteus member and you're looking for some help.
White ninja
White ninja
Posts: 14
Joined: 12 Jul 2014, 18:37
Distribution: Linuxmint, Ubuntu, PCLinuxOs +
Location: Arkansas

running Java program

Post#1 by oreo » 08 Sep 2014, 20:21

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?

User avatar
Posts: 8472
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: running Java program

Post#2 by Ed_P » 08 Sep 2014, 20:41


User avatar
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: running Java program

Post#3 by brokenman » 09 Sep 2014, 00:06

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply