I think it's generally best to set JAVA_HOME=`/usr/libexec/java_home`.

Just my 2 cents

On 28 Mar 2013, at 14:02, Patrick Robinson wrote:

> On 10.6.8 at least, with java 1.6, if you set NEXT_ROOT (which I do, since I 
> still have both WO 5.3.3 and 5.4.2 installed down under 
> /Developer/WebObjects/Versions), then you also need to set JAVA_HOME, which 
> for the normal Apple-provided java should be /Library/Java/Home.
> 
> - Patrick
> 
> On Mar 27, 2013, at 1:30 PM, Pascal Robert wrote:
> 
>> Looks like it's a OS X problem, because it doesn't happen on Linux:
>> 
>> [probert@wocommunity home]$  export NEXT_ROOT=/opt/apple/
>> 
>> [probert@wocommunity home]$ java -version
>> java version "1.6.0_30"
>> Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
>> Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)
>> 
>>> 
>> 
>>> Oh, I guess setting NEXT_ROOT will prevent 
>>> /System/Library/Frameworks/JavaVM.framework from being found?
>>> 
>>> 
>>> 
>>> On Mar 27, 2013, at 12:09 PM, Henrique Gomes <[email protected]> wrote:
>>> 
>>>> 
>>>> Can any one explain this?
>>>> 
>>>> bash-3.2# java -version
>>>> java version "1.7.0_17"
>>>> Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
>>>> Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
>>>> 
>>>> bash-3.2# export NEXT_ROOT=/opt/apple/
>>>> 
>>>> bash-3.2# java -version
>>>> Unable to locate a Java Runtime to invoke.
>>>> 
>>>> 
>>>> Why would setting NEXT_ROOT stop java from even launching?
>>>> 
>>>> Henrique Gomes
>>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>>> 
>>> This email sent to [email protected]
>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/pgr%40vt.edu
>> 
>> This email sent to [email protected]
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/bogdan.zlatanov%40gmail.com
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to