Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » JavaCore.getOption(COMPILER_CODEGEN_TARGET_PLATFORM) always returns 1.1
JavaCore.getOption(COMPILER_CODEGEN_TARGET_PLATFORM) always returns 1.1 [message #48557] Wed, 04 June 2003 11:04 Go to next message
Adriana Nitescu is currently offline Adriana NitescuFriend
Messages: 3
Registered: July 2009
Junior Member
Hello everybody,

I am trying to retrieve JDK complient version for a java project. The code I
use is

// Get the value of an option from this project. Use the value from JavaCore
value if none is specified for the project
String version =
jproject.getOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM , true);

but version is always 1.1. What am I doing wrong ?

Thanks
Adriana
Re: JavaCore.getOption(COMPILER_CODEGEN_TARGET_PLATFORM) always returns 1.1 [message #48587 is a reply to message #48557] Wed, 04 June 2003 11:22 Go to previous message
Adriana Nitescu is currently offline Adriana NitescuFriend
Messages: 3
Registered: July 2009
Junior Member
in fact i should use
COMPILER_COMPLIANCE constant instead of COMPILER_CODEGEN_TARGET_PLATFORM

thanks

a.


"Adriana Nitescu" <a.nitescu@castsoftware.com> wrote in message
news:bbkj9q$lf3$1@rogue.oti.com...
> Hello everybody,
>
> I am trying to retrieve JDK complient version for a java project. The code
I
> use is
>
> // Get the value of an option from this project. Use the value from
JavaCore
> value if none is specified for the project
> String version =
> jproject.getOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM , true);
>
> but version is always 1.1. What am I doing wrong ?
>
> Thanks
> Adriana
>
>
>
>
>
>
>
Previous Topic:can't input 'W' suddenly
Next Topic:Updating existing JUnit TestCases
Goto Forum:
  


Current Time: Sat Oct 19 14:34:14 GMT 2024

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

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

Back to the top