Results 1 to 2 of 2
  1. #1
    Java -version output error

    Member Since
    Nov 09, 2007
    Location
    Northern Nevada
    Posts
    5
    Specs:
    MacBook Pro 2.66 ghz i7 - 8 gigs ram
    Thumbs down Java -version output error
    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 !

  2. #2
    Java -version output error

    Member Since
    Nov 09, 2007
    Location
    Northern Nevada
    Posts
    5
    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 !

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Java for Mac OS X 10.6 Update 17 latest java version?
    By Applet in forum OS X - Operating System
    Replies: 2
    Last Post: 09-12-2014, 02:07 AM
  2. How do I know what version of Java I have?
    By hschaars in forum OS X - Operating System
    Replies: 26
    Last Post: 01-22-2014, 04:21 PM
  3. Java Version
    By mickibob in forum OS X - Operating System
    Replies: 1
    Last Post: 10-15-2012, 02:17 PM
  4. Partition failed with the error: Input/Output error
    By humboldt24 in forum OS X - Operating System
    Replies: 1
    Last Post: 05-31-2011, 12:35 AM
  5. Java Version
    By bad.heron in forum OS X - Operating System
    Replies: 1
    Last Post: 01-09-2009, 09:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •