Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Eclipse 3.3.1 does not generate java1.5 class files
Eclipse 3.3.1 does not generate java1.5 class files [message #325510] Wed, 20 February 2008 12:21 Go to next message
Eclipse UserFriend
Hi ,

I have build eclipse 3.3.1.1 with Java 6.0 on HP-UX. When I try to
generate a class file with this eclipse with preference for java
compliance set to 5.0 , it not generating 5.0 class files. It’s
generating 6.0 class files.

Do we need to do any special configuration changes to make this working?

Thanks
Gowri
Re: Eclipse 3.3.1 does not generate java1.5 class files [message #325511 is a reply to message #325510] Wed, 20 February 2008 12:29 Go to previous messageGo to next message
Eclipse UserFriend
You might have overridden the global settings in your Project

- Prakash

Eclipse Tips: http://blog.cypal-solutions.com
Eclipse Search: http://www.cypal.in/eclipsesearch

Gowri Kandasamy wrote:
> Hi ,
>
> I have build eclipse 3.3.1.1 with Java 6.0 on HP-UX. When I try to
> generate a class file with this eclipse with preference for java
> compliance set to 5.0 , it not generating 5.0 class files. It?s
> generating 6.0 class files.
>
> Do we need to do any special configuration changes to make this working?
> Thanks
> Gowri
>
>
>
Re: Eclipse 3.3.1 does not generate java1.5 class files [message #325512 is a reply to message #325511] Wed, 20 February 2008 12:36 Go to previous messageGo to next message
Eclipse UserFriend
The compliance level works in other platforms ( Linux / Windows).
I have issue with the eclipe IDE that I built on HP-UX. Do we need to
update the config.ini file to make this working ?

Prakash G.R. wrote:

> You might have overridden the global settings in your Project

> - Prakash

> Eclipse Tips: http://blog.cypal-solutions.com
> Eclipse Search: http://www.cypal.in/eclipsesearch

> Gowri Kandasamy wrote:
>> Hi ,
>>
>> I have build eclipse 3.3.1.1 with Java 6.0 on HP-UX. When I try to
>> generate a class file with this eclipse with preference for java
>> compliance set to 5.0 , it not generating 5.0 class files. It?s
>> generating 6.0 class files.
>>
>> Do we need to do any special configuration changes to make this working?
>> Thanks
>> Gowri
>>
>>
>>
Re: Eclipse 3.3.1 does not generate java1.5 class files [message #325513 is a reply to message #325512] Wed, 20 February 2008 12:42 Go to previous messageGo to next message
Eclipse UserFriend
So your problem is that PDE-build doesn't respect your compilance
settings right? You need to set a target environment in your MANIFEST.MF
this is used to inform the PDE-build which compilance level has to be used.

Tom

Gowri Kandasamy schrieb:
> The compliance level works in other platforms ( Linux / Windows).
> I have issue with the eclipe IDE that I built on HP-UX. Do we need to
> update the config.ini file to make this working ?
>
> Prakash G.R. wrote:
>
>> You might have overridden the global settings in your Project
>
>> - Prakash
>
>> Eclipse Tips: http://blog.cypal-solutions.com
>> Eclipse Search: http://www.cypal.in/eclipsesearch
>
>> Gowri Kandasamy wrote:
>>> Hi ,
>>>
>>> I have build eclipse 3.3.1.1 with Java 6.0 on HP-UX. When I try to
>>> generate a class file with this eclipse with preference for java
>>> compliance set to 5.0 , it not generating 5.0 class files. It?s
>>> generating 6.0 class files.
>>>
>>> Do we need to do any special configuration changes to make this working?
>>> Thanks
>>> Gowri
>>>
>>>
>>>
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: Eclipse 3.3.1 does not generate java1.5 class files [message #325515 is a reply to message #325513] Wed, 20 February 2008 13:31 Go to previous messageGo to next message
Eclipse UserFriend
Could you please explain your solution. Do we need to change manifest file
in project level or Eclipse level. I checked the MANIFEST.MF file in the
eclipse/plugins/org.eclipse.pde.build_3.3.1.v20070828/META-I NF
This has " Bundle-RequiredExecutionEnvironment: J2SE-1.4 "


Tom Schindl wrote:

> So your problem is that PDE-build doesn't respect your compilance
> settings right? You need to set a target environment in your MANIFEST.MF
> this is used to inform the PDE-build which compilance level has to be used.

> Tom

>
Re: Eclipse 3.3.1 does not generate java1.5 class files [message #325516 is a reply to message #325515] Wed, 20 February 2008 13:40 Go to previous messageGo to next message
Eclipse UserFriend
Well I think PDE uses the information present in the MANIFEST.MF of the
plugin it builds. If no information is found there it runs the compiler
with no information and if you are on a JDK-6 system the default
..class-Format created by PDE-builds will be 1.6.

The simplest solution would be to simply tell eclipse to use another
JDK. I'm not 100% sure about all this but I think I can remember that
PDE doesn't respect compiler settings defined in the
project-preferences. Maybe someone with more knowledge about PDE can
give a better answer.

Tom

Gowri Kandasamy schrieb:
> Could you please explain your solution. Do we need to change manifest
> file in project level or Eclipse level. I checked the MANIFEST.MF file
> in the eclipse/plugins/org.eclipse.pde.build_3.3.1.v20070828/META-I NF
> This has " Bundle-RequiredExecutionEnvironment: J2SE-1.4 "
>
>
> Tom Schindl wrote:
>
>> So your problem is that PDE-build doesn't respect your compilance
>> settings right? You need to set a target environment in your
>> MANIFEST.MF this is used to inform the PDE-build which compilance
>> level has to be used.
>
>> Tom
>
>>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: Eclipse 3.3.1 does not generate java1.5 class files [message #325517 is a reply to message #325515] Wed, 20 February 2008 13:41 Go to previous message
Eclipse UserFriend
Originally posted by: zx.us.ibm.com

If you're bundle is intended to run on 5.0 and higher, it should be
J2SE-1.5. PDE Build uses the first BREE entry to decide what to
build/compile on plug-in export.

http://wiki.eclipse.org/Execution_Environments

Cheers,

~ Chris
Previous Topic:Correct way to get at values in plugin.properties?
Next Topic:Preferences for activeEditor Plugin
Goto Forum:
  


Current Time: Wed May 07 11:48:06 EDT 2025

Powered by FUDForum. Page generated in 0.04717 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top