Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-07-2014, 07:16 PM   #1
LQ Newbie
Registered: Mar 2014
Location: Tennessee
Distribution: Arch and Manjaro Depending on Machine
Posts: 17
Blog Entries: 2

Rep: Reputation: Disabled
trying to get java JDK to work in ~/bin

I have changed the path for my bash scripts to be able to be in a /bin in my Home dir. I would like to be able to do it for Java. If I opened up the .tar.gz in the bin dir how do I set my $PATH to work? I did it in bashrc for the bash scripts..

I am running Manjaro if that matters.

Thanks in advance.
Old 10-08-2014, 01:58 AM   #2
Registered: Apr 2014
Distribution: Slackware
Posts: 92

Rep: Reputation: Disabled
In .bashrc, just append the path to the directory containing the "java" executable to your PATH like you did with ~/bin. I'm not entirely sure what difficulty you're having, since you've already managed to do the same thing for your bash scripts!

You'll also want to set the JAVA_HOME variable. This can be done in your .bashrc, too. Set it to the directory which has been created after extracting the contents of the tar.gz file.
Old 10-09-2014, 01:40 AM   #3
Registered: Mar 2006
Location: Maple Heights OHIO
Distribution: Centos 6
Posts: 31

Rep: Reputation: 0
Maybe you have to set the CLASSPATH environment variable in addition. Just a thought. JVM
may stumble without knowing what that is.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] shell script : finding out active configuration of java jdk and install bin there. rohaanembedded Programming 13 07-03-2013 03:37 AM
[SOLVED] Java Woes: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available ... chytraeus Slackware 10 11-27-2010 11:04 AM
Where is jdk-1_5_0_10-linux-i586.bin for BLFS 6.2? rwcooper Linux From Scratch 1 08-03-2007 08:51 AM
i can't seem to install jdk 1.5.bin jadewarrior Ubuntu 2 09-28-2006 06:29 PM
Would like to install jdk 1.5 bin jadewarrior Red Hat 2 06-29-2006 03:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:21 AM.

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