WebFaction
Community site: login faq

Hi guys,

I just installed java in my home directory, in the folder $HOME/jdk1.7.0_55 . How do I set the path variable, so that if I execute

java -version
I get 1.7? And not the default 1.6 version?

asked 25 May '14, 15:21

KeesJansma
1114
accept rate: 0%


You should be able to set an alias in your bash_profile to push whatever path you need to start the JDK. An example would be to model it after the python alias.

You should be OK with putting something like the following.

alias java=$HOME/jdk1.7.0_55/bin/java

If you need more detailed help with this please open a support ticket.

permanent link

answered 25 May '14, 15:40

aaront ♦♦
7664
accept rate: 27%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×22
×19

question asked: 25 May '14, 15:21

question was seen: 2,481 times

last updated: 25 May '14, 15:40

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM