You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Erick Erickson <er...@gmail.com> on 2012/04/17 20:25:48 UTC
Upgrading Java on my Mac and IntelliJ
An interesting thing happened on my Mac when I upgraded to: version
1.6.0_31. I had both the 1.5 and 1.6 SDKs set up so I could
compile/run Solr under the correct versions depending upon whether I
was on 3.x or trunk. I did nothing special during the install, but at
the end 1.5 was no longer available in IntelliJ. Of course I could set
the compatibility level to 1.5, but there's no 1.5 SDK choice any
more.
I assume there's some setting somewhere that I could pick, but frankly
unless and until I have to do more 3.x work I'm not going to bother
looking.
Just in case anyone else is upgrading and wonders if they're the only
ones who are "lucky"..
Erick
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Upgrading Java on my Mac and IntelliJ
Posted by DM Smith <dm...@gmail.com>.
Thanks!
On Apr 17, 2012, at 7:19 PM, Jan Høydahl <ja...@cominvent.com> wrote:
> Same happened here. The installer removes 1.5 and 1.5.0 folders and replaces with softlink to the new JDK.
> Luckily I named my 1.5 JDK as 1.5.0_30 so it was still there, the only thing needed was add the softlinks.
>
> sudo su
> cd /System/Library/Frameworks/JavaVM.framework/Versions
> rm 1.5.0 1.5
> ln -s 1.5.0_30 1.5.0
> ln -s 1.5.0_30 1.5
>
> Here's a (french) blog post containing a script to automatically instal Java5 on Lion: http://translate.google.com/translate?sl=auto&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fblog.arkey.fr%2F2011%2F08%2F22%2Fscript-pour-installer-le-jdk-5-sur-macosx-lion%2F
>
> --
> Jan Høydahl, search solution architect
> Cominvent AS - www.cominvent.com
> Solr Training - www.solrtraining.com
>
> On 17. apr. 2012, at 20:25, Erick Erickson wrote:
>
>> An interesting thing happened on my Mac when I upgraded to: version
>> 1.6.0_31. I had both the 1.5 and 1.6 SDKs set up so I could
>> compile/run Solr under the correct versions depending upon whether I
>> was on 3.x or trunk. I did nothing special during the install, but at
>> the end 1.5 was no longer available in IntelliJ. Of course I could set
>> the compatibility level to 1.5, but there's no 1.5 SDK choice any
>> more.
>>
>> I assume there's some setting somewhere that I could pick, but frankly
>> unless and until I have to do more 3.x work I'm not going to bother
>> looking.
>>
>> Just in case anyone else is upgrading and wonders if they're the only
>> ones who are "lucky"..
>>
>> Erick
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Upgrading Java on my Mac and IntelliJ
Posted by Jan Høydahl <ja...@cominvent.com>.
Same happened here. The installer removes 1.5 and 1.5.0 folders and replaces with softlink to the new JDK.
Luckily I named my 1.5 JDK as 1.5.0_30 so it was still there, the only thing needed was add the softlinks.
sudo su
cd /System/Library/Frameworks/JavaVM.framework/Versions
rm 1.5.0 1.5
ln -s 1.5.0_30 1.5.0
ln -s 1.5.0_30 1.5
Here's a (french) blog post containing a script to automatically instal Java5 on Lion: http://translate.google.com/translate?sl=auto&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fblog.arkey.fr%2F2011%2F08%2F22%2Fscript-pour-installer-le-jdk-5-sur-macosx-lion%2F
--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com
On 17. apr. 2012, at 20:25, Erick Erickson wrote:
> An interesting thing happened on my Mac when I upgraded to: version
> 1.6.0_31. I had both the 1.5 and 1.6 SDKs set up so I could
> compile/run Solr under the correct versions depending upon whether I
> was on 3.x or trunk. I did nothing special during the install, but at
> the end 1.5 was no longer available in IntelliJ. Of course I could set
> the compatibility level to 1.5, but there's no 1.5 SDK choice any
> more.
>
> I assume there's some setting somewhere that I could pick, but frankly
> unless and until I have to do more 3.x work I'm not going to bother
> looking.
>
> Just in case anyone else is upgrading and wonders if they're the only
> ones who are "lucky"..
>
> Erick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org