Java -version output error

Joined
Nov 9, 2007
Messages
5
Reaction score
0
Points
1
Location
Northern Nevada
Your Mac's Specs
MacBook Pro 2.66 ghz i7 - 8 gigs ram
Not sure what I did to mess up my system. I've been trying to get Tomcat 7.0.28 up and running and have had no luck.

Yesterday I issued from term: java -version and it gave correct output.

NOW when I issue java -version I get this output:

Unable to locate an executable at "/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/bin/java" (-1)

I'm running Lion OSX 7.4

How do I fix the prob ?
How do I reinstall java without doing a system reinstall ?


Thanks for any help !
 
OP
M
Joined
Nov 9, 2007
Messages
5
Reaction score
0
Points
1
Location
Northern Nevada
Your Mac's Specs
MacBook Pro 2.66 ghz i7 - 8 gigs ram
Solved

Silly me , I had in my .bash_profile
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
I commented the line with "#" and now java -version outputs :

Code:
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)

LIve and learn !
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top