0

This may seem trivial but I haven't been able to find a fix.

I've installed the latest Java runtime environment but when I run java -version on the command line, I still get Java(TM) SE Runtime Environment (build 1.7.0_40-b43)

However, when I test my Java version in browser, it works fine.

How can I get Terminal using the latest java version?

7
  • What OS are you using? Commented Jan 15, 2014 at 17:49
  • I'm using Mac OS X 10.9 Commented Jan 15, 2014 at 17:49
  • what is this "How can I get Terminal" Commented Jan 15, 2014 at 17:50
  • Begin -> Control Panel -> Java -> Java Tab -> "See" Button -> And choose the runtime environment. Commented Jan 15, 2014 at 17:51
  • what build are you expecting? 1.7 stands for jre 7 Commented Jan 15, 2014 at 17:51

2 Answers 2

1

see Installed Java 7 on Mac OS X but Terminal is still using version 6

maybe you need to select the java version you want to see.

Sign up to request clarification or add additional context in comments.

Comments

0

I am assuming you are using windows.. from your command line

echo %PATH%

make sure your java PATH is pointing your latest java bin folder.

I am not sure about the Mac but Can you verify if you have symlink setup under /usr/bin?

ex. /usr/bin/java -> java_path

Maybe you can change this symlink to point to the latest java you have installed.

1 Comment

See the above comment he is using mac

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.