|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
On T 8 Jan, 2008, at 20:41 , Chad Junkermeier wrote:
Several days ago I posted a question about getting Java 6 to work with Xcode 3.0. I got several answers to my initial inquiry. I am still hoping to find an answer to my last post.
Begin forwarded message:
I am sorry if this is going to sound dumb (my previous experience with Xcode is using it as a text editor to do Fortran programming), but I don't know where to set the $JAVA_HOME environment variable.
I have looked in Project > Edit Project Settings > Build and I have double clicked on the target, but in neither place have I found $JAVA_HOME.
Thanks for your help.
Project->Edit Project Settings
go to the "build" tab
ls -l /System/Library/Frameworks/JavaVM.framework/Versions/
[...] lrwxr-xr-x 1 root wheel 5 Feb 6 12:26 1.5 -> 1.5.0 drwxr-xr-x 8 root wheel 272 Feb 6 12:26 1.5.0 lrwxr-xr-x 1 root wheel 5 Apr 30 10:20 1.6 -> 1.6.0 drwxr-xr-x 8 root wheel 272 Apr 30 10:20 1.6.0 drwxr-xr-x 6 root wheel 272 Apr 30 10:20 A lrwxr-xr-x 1 root wheel 1 Apr 30 10:20 Current -> A lrwxr-xr-x 1 root wheel 3 Apr 30 10:20 CurrentJDK -> 1.5
so, if you delete CurrentJDK and recreate a link to 1.6 as in:
cd /System/Library/Frameworks/JavaVM.framework/Versions/ sudo rm CurrentJDK sudo ln -s 1.6 CurrentJDK
Giuliano _______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.