New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Java -version output error


Post Reply New Thread Subscribe

 
Thread Tools
macunkie

 
Member Since: Nov 09, 2007
Location: Northern Nevada
Posts: 5
macunkie is on a distinguished road
Mac Specs: MacBook Pro 2.66 ghz i7 - 8 gigs ram

macunkie is offline
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:

Quote:
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 !
QUOTE Thanks
macunkie

 
Member Since: Nov 09, 2007
Location: Northern Nevada
Posts: 5
macunkie is on a distinguished road
Mac Specs: MacBook Pro 2.66 ghz i7 - 8 gigs ram

macunkie is offline
Silly me , I had in my .bash_profile
Quote:
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 !
QUOTE Thanks

Post Reply New Thread Subscribe


« Mac Mail not using my outgoing server... and... | Gray Screen: I have tried it all... »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Install Java Developer error PDN OS X - Development and Darwin 4 05-02-2012 08:08 PM
Switch to previous version of Java? jpjones OS X - Apps and Games 1 04-10-2012 01:27 PM
Java problems - please help! macsareshiny OS X - Operating System 0 02-19-2012 01:08 PM
Latest Java version and how to update guy999 OS X - Operating System 3 06-16-2009 01:12 AM
error message during weekly maintenance ajresovsky Schweb's Lounge 0 06-18-2006 06:11 PM

All times are GMT -4. The time now is 03:38 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?