[nbusers] Re: Is it possible to have a different JRE from the build Java platform?

  • From: Thomas Wolf < >
  • To:
  • Subject: [nbusers] Re: Is it possible to have a different JRE from the build Java platform?
  • Date: Thu, 15 Nov 2012 10:20:00 -0500

Hi Edson,
Neither of these options works for me.  I already had (a) set and added the 
"-target 1.6" compiler option you suggested in (b), but I still get all the 
warnings/errors that come from not having Java 7 compliant source code (e.g. 
we have a class that derives from ResultSet but doesn't implement one of the 
new Java 7 methods required in the new ResultSet interface; similarly, our 
code uses a bunch of com.sun.* security related classes that are no longer 
available).

I see the curious message "warning: [options] bootstrap class path not set in 
conjunction with -source 1.6".  Not sure what that means or whether it is 
related to this not working.

Tom


On Nov 14, 2012, at 9:23 PM, Edson Richter 
< >
 wrote:

> Ok, I got your point.
> You can
> 
> a) Use JDK 7 for both, but set compiler to to target version 6:
> 
> Set JDK 7 for runtime:
> <ageafiag.png>
> 
> Set JDK 6 for compilation:
> <bhbiadfa.png>
> 
> If you have any trouble, also set -target as below:
> 
> <chdjhfih.png>
> 
> 
> Em 14/11/2012 23:16, Thomas Wolf escreveu:
>> Edison, I saw that the first one was for desktop, but the platform 
>> selection is a combo box, so how do you select BOTH the compile-time 
>> platform AND the runtime platform?
>
>> Sent from my iPhone
>
>> On Nov 14, 2012, at 7:29 PM, Edson Richter 
>> < >
>>  wrote:
>
>
>>> In the screenshots, look carefully. First one is for desktop apps.
>>> 
>>> Second one is for servers.
>>> 
>>> Regards,
>>> 
>>> Edson
>>> 
>>> Em 14/11/2012 18:41, Thomas Wolf escreveu:
>>> 
>>>> I just read the thread and it looks like you have a solution for the 
>>>> WebApps case (at least I assume it does as you appear to be able to set 
>>>> the runtime servers), but not for the desktop apps case - which is, 
>>>> unfortunately, what I have.  In the example you gave, don't you manually 
>>>> have to change your platform to JRockit to run and then back to JDK 1.7 
>>>> to build?  At least that's what I have to do.
>>>> 
>>>> Thnx,
>>>> tom
>>>> 
>>>> 
>>>> On Nov 14, 2012, at 3:28 PM, Thomas Wolf 
>>>> < >
>>>>  wrote:
>>>> 
>>>> 
>>>>> oops - thanks Edson.
>>>>> tom
>>>>> 
>>>>> On Nov 14, 2012, at 3:27 PM, Edson Richter 
>>>>> < >
>>>>>  wrote:
>>>>> 
>>>>> 
>>>>>> Em 14/11/2012 18:21, Thomas Wolf escreveu:
>>>>>> 
>>>>>>> I need to compile my app with JDK 6, but it has to also be able to 
>>>>>>> run in a Java 7 runtime environment.  There doesn't appear to be a 
>>>>>>> way for me to set compile-time platform vs. runtime platform in 
>>>>>>> Project->Properties->Libraries…or am I overlooking something?  If 
>>>>>>> not, I will put in an RFE.
>>>>>>> 
>>>>>>> Why am I suddenly interested in this feature after so many years of 
>>>>>>> using NB?  Well, our app currently only builds in JDK 6.  But I just 
>>>>>>> noticed that our app is having difficulty with Nimbus L&F in Java 7.  
>>>>>>> So to fix it, I need to run in Java 7.
>>>>>>> 
>>>>>>> Thanks for all info.
>>>>>>> Tom
>>>>>>> 
>>>>>> Few hours ago we have discussed this topic. Check the archives, from 
>>>>>> King Lung Chiu.
>>>>>> 
>>>>>> Regards,
>>>>>> 
>>>>>> Edson
>>>>>> 
>
> 



[nbusers] Is it possible to have a different JRE from the build Java platform?

Thomas Wolf 11/14/2012

[nbusers] Re: Is it possible to have a different JRE from the build Java platform?

Edson Richter 11/14/2012

[nbusers] Re: Is it possible to have a different JRE from the build Java platform?

Thomas Wolf 11/14/2012

[nbusers] Re: Is it possible to have a different JRE from the build Java platform?

Thomas Wolf 11/14/2012

[nbusers] Re: Is it possible to have a different JRE from the build Java platform?

Edson Richter 11/15/2012

[nbusers] Re: Is it possible to have a different JRE from the build Java platform?

Thomas Wolf 11/15/2012

[nbusers] Re: Is it possible to have a different JRE from the build Java platform?

Edson Richter 11/15/2012

[nbusers] Re: Is it possible to have a different JRE from the build Java platform?

Thomas Wolf 11/15/2012

[nbusers] Re: Is it possible to have a different JRE from the build Java platform?

Edson Richter 11/15/2012

[nbusers] Re: Is it possible to have a different JRE from the build Java platform?

Thomas Wolf 11/15/2012

[nbusers] Re: Is it possible to have a different JRE from the build Java platform?

Edson Richter 11/15/2012

[nbusers] Re: Is it possible to have a different JRE from the build Java platform?

Thomas Wolf 11/16/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close