LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2018, 06:55 PM   #1
newuser113
LQ Newbie
 
Registered: Apr 2018
Posts: 2

Rep: Reputation: Disabled
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.
 
Old 04-12-2018, 09:02 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
How are you trying to run the file? What is the exact error?
 
1 members found this post helpful.
Old 04-12-2018, 09:11 PM   #3
newuser113
LQ Newbie
 
Registered: Apr 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-13-2018, 08:12 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to install Oracle Java Series (JAVA 9 to JAVA 6) via PPA in Ubuntu & Mint LXer Syndicated Linux News 0 12-20-2016 04:30 PM
Tahrpup 6.0.5 Clamtk & Clamav install missing some dependencies and/or files ... angelayala Puppy 1 01-10-2016 08:40 AM
Taskbar gone (tahrpup 6) Marijke Puppy 1 05-21-2015 12:52 PM
[SOLVED] Tinkered with some bash.bashrc files and the Terminal is now permamently in Bash youbunto0 Linux - Newbie 2 10-03-2014 11:27 AM
Invoking java from a bash terminal via shell script fails under Mint Debian rizwanjavaid Programming 3 02-16-2011 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration