On 08.12.2014 21:36, Michael Michaud wrote:
> Thanks Ede,
> 
> Seems that I still confuse java, jvm and jre :-(
> 
>>> I wonder how I could introduce this without
>>> having errors and mostly how the pom project can compile for the NB
>>> as it is still configured to use java 1.5 ?
>> no problem. pom is compiled using a oracle jdk 7 but the maven compiler 
>> plugin is configured to create 1.5 bytecode

yeah, it does merely check syntax there. there is some @override for example 
that cannot be used with old 1.5 but with newer java. it would fail there.

but it does not prevent missing class issues, if they exist in the compiling 
java. on the other hand. we cannot compile eg. transparency if we are missing 
these classes. 

we could btw., if i'd go the workaround over instantiating them via string. but 
why bother ;)

> If I understand, using the -target 1.x option will produce a bytecode
> compatible with a jvm >= 1.x but it will not prevent a NoClassDefFoundError
> if one try to execute the code with a JRE 1.x if the jar has been build 
> with a
> JDK > 1.x :-(

not sure what you mean here. but NoClassDefFoundError can be a Compile- but as 
well be a Runtime-Error. so if you can expect to run somewhere where a class 
might be mising you have to hack around it. simply as that.

>>
>> <plugin>
>>    <artifactId>maven-compiler-plugin</artifactId>
>>    <configuration>
>>      <source>1.5</source>
>>      <target>1.5</target>
>>    </configuration>
>> </plugin>
>>
>> we should probably up that to 1.6 in the near future, java8 being the 
>> current stable release.
> Agree, let's switch to 1.6.

done.. ede

> 
> Michaƫl
>>
>>> Anyway, I probably can revert these feature to be 1.6 or 1.5
>>> compatible if needed.
>> you could use a condition to use JComboBox on 1.7 and something else on 
>> earlier jre'
>> s. simply test if JComboBox is available and work from there.
>>
>> brtw. java6 has a JComboBox.
>>
>>> You also introduced GraphicsDevice.WindowTranslucency some times
>>> ago which is also a java 7 feature. How is it managed ?
>> used one of the new methods added at the same time
>>
>> GUIUtil.isPerPixelTranslucencySupported()
>> GUIUtil.isUniformTranslucencySupported()
>> GUIUtil.isShapedWindowSupported()
>>
>> as a condition whether to create a transparent window or stick with 
>> something ordinary ;)
>>
>> ..ede
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
> 
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Jump-pilot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to