Mac OS and export correct JAVA_HOME

when I run locate java I get /usr/bin/java ij Mac OS 10.6.3

so

export JAVA_HOME=/usr
$JAVA_HOME/java -version
-bash: /usr/java: No such file or directory

Then I try
export JAVA_HOME=/usr/bin
$JAVA_HOME/java -version
Unable to locate an executable at "/usr/bin/bin/java" (-1)

Whats going on?  How do I set the path?
dmontgomAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
What do you get with the following?
ls -l /usr/bin/java

Open in new window

CEHJCommented:
(You shouldn't use a symlink as JAVA_HOME)
dmontgomAuthor Commented:
This is what I get.  I need to do this for AWS command line tools.  How do I fix?
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

CEHJCommented:
>>This is what I get.

What?
CEHJCommented:
It should be more likely:
export JAVA_HOME=/usr/java

Open in new window

dmontgomAuthor Commented:
Sorry...this is what I get

ls -l /usr/bin/java
lrwxr-xr-x  1 root  wheel  74 May  5 13:52 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java


$JAVA_HOME/java --version
-bash: /usr/java/java: No such file or directory


I need to execute $JAVA_HOME/java
CEHJCommented:
OK. We need to look into it a bit further. Can you run the following command and then attach the file javafind.log which will be in your home directory
find /System/Library/Frameworks/JavaVM.framework >~/javafind.log 

Open in new window

dmontgomAuthor Commented:
There is no log.  No results returend
CEHJCommented:
Did you not see any error messages?
dmontgomAuthor Commented:
no..just nothing
CEHJCommented:
It could be a quirk of the version of find. Try this and tell me if there's output


find /System/Library/Frameworks/JavaVM.framework -print 

Open in new window

dmontgomAuthor Commented:
There was a lot....

Below are the first few lines.  

/System/Library/Frameworks/JavaVM.framework
/System/Library/Frameworks/JavaVM.framework/Classes
/System/Library/Frameworks/JavaVM.framework/CodeResources
/System/Library/Frameworks/JavaVM.framework/Commands
/System/Library/Frameworks/JavaVM.framework/Frameworks
/System/Library/Frameworks/JavaVM.framework/Headers
/System/Library/Frameworks/JavaVM.framework/Home
/System/Library/Frameworks/JavaVM.framework/JavaVM
/System/Library/Frameworks/JavaVM.framework/Libraries
/System/Library/Frameworks/JavaVM.framework/Resources
/System/Library/Frameworks/JavaVM.framework/Versions
/System/Library/Frameworks/JavaVM.framework/Versions/1.3
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Libraries
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Libraries/libappshell.dylib
/System/Library/Frameworks/JavaVM.framework/Versions/1.4
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2
/System/Library/Frameworks/JavaVM.framework/Versions/1.5
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0
/System/Library/Frameworks/JavaVM.framework/Versions/1.6
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/alt-rt.jar
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/charsets.jar
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.jar
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/dt.jar
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jce.jar
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jconsole.jar
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jsse.j

CEHJCommented:
OK. So now put that together with the earlier command and attach the log file
find /System/Library/Frameworks/JavaVM.framework -print >~/javafind.log 

Open in new window

Mick BarryJava DeveloperCommented:
dmontgomAuthor Commented:
How does that help me with my original question?  I need to execute $JAVA_HOME/java
CEHJCommented:
You didn't attach the log...
dmontgomAuthor Commented:


This is what the screen looks like when I find the log.  There is no log.  There has to be a way to do this.

localhost:~ xxxxxxxxx$ find /System/Library/Frameworks/JavaVM.framework -print >~/javafind*
localhost:~ xxxxxxxx$
CEHJCommented:
>>This is what the screen looks like when I find the log.

Yes, that's how it should look. Except for the asterisk and the filename being mangled. It should be as below. You then need to open javafind.log in your home directory

find /System/Library/Frameworks/JavaVM.framework -print >~/javafind.log

Open in new window

dmontgomAuthor Commented:
This is what I get in my home dir

localhost:~ xxxxxxxxxx$ find /System/Library/Frameworks/JavaVM.framework -print >~/javafind.log
localhost:~ dalandmontgomery$
CEHJCommented:
>>This is what I get in my home dir

There's no command there that's even looking in the home dir. You should do something like the following to see what has been created
ls -l ~/javafind.log

Open in new window

dmontgomAuthor Commented:
/System/Library/Frameworks/JavaVM.framework
/System/Library/Frameworks/JavaVM.framework/Classes
/System/Library/Frameworks/JavaVM.framework/CodeResources
/System/Library/Frameworks/JavaVM.framework/Commands
/System/Library/Frameworks/JavaVM.framework/Frameworks
/System/Library/Frameworks/JavaVM.framework/Headers
/System/Library/Frameworks/JavaVM.framework/Home
/System/Library/Frameworks/JavaVM.framework/JavaVM
/System/Library/Frameworks/JavaVM.framework/Libraries
/System/Library/Frameworks/JavaVM.framework/Resources
/System/Library/Frameworks/JavaVM.framework/Versions
/System/Library/Frameworks/JavaVM.framework/Versions/1.3
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Libraries
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Libraries/libappshell.dylib
/System/Library/Frameworks/JavaVM.framework/Versions/1.4
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2
/System/Library/Frameworks/JavaVM.framework/Versions/1.5
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0
/System/Library/Frameworks/JavaVM.framework/Versions/1.6
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
/System/Library/Frameworks/JavaVM.framework/Versions/A
/System/Library/Frameworks/JavaVM.framework/Versions/A/_CodeSignature
/System/Library/Frameworks/JavaVM.framework/Versions/A/_CodeSignature/CodeResources
/System/Library/Frameworks/JavaVM.framework/Versions/A/CodeResources
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/appletviewer
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/apt
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/extcheck
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/idlj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/jar
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/jarsigner
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java_home
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javadoc
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javah
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javap
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javaws
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/jconsole
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/jdb
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/jhat
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/jinfo
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/jmap
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/jps
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/jrunscript
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/jsadebugd
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/jstack
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/jstat
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/jstatd
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/keytool
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/native2ascii
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/orbd
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/pack200
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/policytool
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/rmic
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/rmid
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/rmiregistry
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/schemagen
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/serialver
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/servertool
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/tnameserv
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/unpack200
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/wsgen
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/wsimport
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/xjc
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Headers
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/JavaNativeFoundation
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Resources
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/JavaNativeFoundation.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/JNFAssert.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/JNFAutoreleasePool.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/JNFException.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/JNFJNI.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/JNFJObjectWrapper.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/JNFNumber.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/JNFObject.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/JNFPath.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/JNFRunLoop.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/JNFString.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/JNFThread.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers/JNFTypeCoercion.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Resources
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Resources/English.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Resources/English.lproj/InfoPlist.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Resources/Info.plist
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Resources/version.plist
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/Current
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/CodeResources
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Headers
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/JavaRuntimeSupport
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Resources
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/_CodeSignature
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/_CodeSignature/CodeResources
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/CodeResources
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Headers
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Headers/JavaRuntimeSupport.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Headers/JRSFont.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Headers/JRSLocalization.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Headers/JRSProperties.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Headers/JRSStringConversion.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/JavaRuntimeSupport
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Resources
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Resources/English.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Resources/English.lproj/InfoPlist.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Resources/Info.plist
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Resources/Java
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Resources/Java/JavaRuntimeSupport.jar
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Resources/version.plist
/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/Current
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/AWTCocoaComponent.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/JavaVM.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jawt.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jawt_md.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/JDWP.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/JDWPCommands.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jdwpTransport.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jni.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jni_md.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jvmti.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/NSJavaConfiguration.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/NSJavaVirtualMachine.h
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/_CodeSignature
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/_CodeSignature/CodeResources
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/CodeResources
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Info.plist
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/MacOS
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/MacOS/JavaPluginCocoa
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/da.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/da.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/Dutch.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/Dutch.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/English.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/English.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/fi.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/fi.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/French.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/French.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/German.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/German.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/Italian.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/Italian.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/Japanese.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/Japanese.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/ko.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/ko.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/no.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/no.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/pl.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/pl.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/pt.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/pt.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/pt_PT.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/pt_PT.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/ru.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/ru.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/Spanish.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/Spanish.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/sv.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/sv.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/zh_CN.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/zh_CN.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/zh_TW.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/Resources/zh_TW.lproj/Localizable.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaPluginCocoa.bundle/Contents/version.plist
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/.compatibility
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/.compatibility/14compatibility.jar
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/.compatibility/IASupport.jar
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/.compatibility/libIASupport.jnilib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/AppletBadge.pdf
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/bin
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/bin/com.apple.java.updateSharing.plist
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/bin/com.apple.java.updateSharingD.plist
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/bin/updateSharingD
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/da.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/da.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/da.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/da.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Documentation
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Documentation/JavaApplicationStub-License.rtf
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Dutch.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Dutch.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Dutch.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Dutch.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/English.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/English.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/English.lproj/DefaultApp.nib/objects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/English.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/fi.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/fi.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/fi.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/fi.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/French.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/French.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/French.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/French.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/GenericApp.icns
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/German.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/German.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/German.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/German.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Info.plist
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Italian.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Italian.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Italian.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Italian.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Japanese.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Japanese.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Japanese.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Japanese.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/JavaPluginCocoa.bundle
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/ko.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/ko.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/ko.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/ko.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStubGC
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/no.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/no.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/no.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/no.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/pl.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/pl.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/pl.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/pl.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/pt.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/pt.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/pt.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/pt.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/pt_PT.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/pt_PT.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/pt_PT.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/pt_PT.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/ru.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/ru.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/ru.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/ru.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Spanish.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Spanish.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Spanish.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Spanish.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/sv.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/sv.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/sv.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/sv.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/version.plist
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/VisualVM.bundle
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/WebStart.icns
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/zh_CN.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/zh_CN.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/zh_CN.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/zh_CN.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/zh_TW.lproj
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/zh_TW.lproj/DefaultApp.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/zh_TW.lproj/DefaultApp.nib/keyedobjects.nib
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/zh_TW.lproj/Menu.strings
/System/Library/Frameworks/JavaVM.framework/Versions/Current
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
CEHJCommented:
That huge paste was precisely what i was trying to avoid by asking you to attach the file

I don't see how you can avoid breaking the setting of JAVA_HOME with that setup, since there's no bin directory. This must be covered by the Mac docs somewhere and you should find out how this is meant to be done. Only when you've exhausted your search will i recommend a nasty kludge
dmontgomAuthor Commented:
Thats why i am on EE.  How do I get it done.  
CEHJCommented:
>>Thats why i am on EE.  

This is very Mac-specific, so i'll let some of the OSX folk answer that
Mick BarryJava DeveloperCommented:
> How does that help me with my original question?

It tells you how to set what version of Java you want to use

> I need to execute $JAVA_HOME/java

you don't, you just need to execute:

java  ......


If you have something that needs JAVA_HOME set then set it to

/Library/Java/Home

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Search Engine Optimization (SEO)

From novice to tech pro — start learning today.