LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Tahrpup 6.0.5 Java install via Bash Terminal (https://www.linuxquestions.org/questions/linux-newbie-8/tahrpup-6-0-5-java-install-via-bash-terminal-4175627555/)

newuser113 04-12-2018 06:55 PM

Tahrpup 6.0.5 Java install via Bash Terminal
 
So I am using the usb bootable version of tahrpup and I was in the Bash terminal. Tahrpup gives you a package manager and I updated and installed the jre, the default and the newest one. So I went to the terminal and tried to run a .jar file using the java command but it gave me an error saying "java command not found." The indicator is that I havent installed java. Being a new linux user I am a bit confused. How can I install Java so that it will run .jar files? Is it through the bash terminal? Thanks!

P.S. Sorry if there is another thread about this but I didnt see one.

AwesomeMachine 04-12-2018 09:02 PM

How are you trying to run the file? What is the exact error?

newuser113 04-12-2018 09:11 PM

well I used the cd to go to the my documents file directory (from the terminal) and the error looks like this:



root# java -jar OSBuddy.jar

bash: java command not found

AwesomeMachine 04-13-2018 08:12 PM

Maybe try operating the system as a normal user instead of root. And, try
Code:

$ locate -A java lib
and look for a file called java. Then, make a symlink to it in /usr/bin. Did you install the jre from a source package or with the package manager?


All times are GMT -5. The time now is 10:23 PM.