Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » which AJDT version to use under Eclipse 3.1 when targetting a 1.4.2 VM?
which AJDT version to use under Eclipse 3.1 when targetting a 1.4.2 VM? [message #54490] Tue, 05 July 2005 23:07 Go to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
Hi all, I have a question re. AJDT versions:

Though I personally have upgraded to Eclipse 3.1 others in my group have
not and for our project we are also currently not using any Java (1.)5
features since we are not targetting a (1.)5 JVM, but rather a 1.4.2
environment. I only installed Eclipse 3.1 since I like some of the
improved UI features and also wanted to experiment with some of the new
Java 5 features in some private project.

I thus can not make use of the AJDT for Java 5 version, since apparently
the runtime that comes with that AJDT version requires a 1.5 JVM plus
corresponding libraries and - if I understood that right - also requires
that one sets the generated class file compatibility level to 5.

Thus my question: is it possible to work under Eclipse 3.1 but still use
an AJDT environment that requires a 1.4.2 VM and libraries only and not
Java 5 "under the hood"? As I said: I don't need any Java 1.5. features
at the moment for our aspect-development. Is that possible at all and if
so, which AJDT version would that be? The one available for Eclipse 3.0?
Or are these versions mutually exclusive?

Hope I could make myself clear...
Michael
Re: which AJDT version to use under Eclipse 3.1 when targetting a 1.4.2 VM? [message #54520 is a reply to message #54490] Wed, 06 July 2005 07:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: clemas.uk.ibm.com

Hi Michael,

Although the AJDT available for 3.1 allows the use of Java 1.5 language
features - it still works fine if you just want to develop code that
targets a 1.4 VM. Just like the JDT tools in 3.1 allow you to write
code for a 1.4 VM (you don't have two versions of JDT do you - one for
1.4 dev, one for 1.5 dev...)

The default mode for the AspectJ compiler in AJDT for 3.1 is in fact
still 1.4 compliance - you have to go out of your way to switch it to
supporting 1.5 language features.

Basically, use the AJDT thats available now, ensure your project has 1.4
JVM library references and you'll be fine :)

Andy.

Michael Moser wrote:
> Hi all, I have a question re. AJDT versions:
>
> Though I personally have upgraded to Eclipse 3.1 others in my group have
> not and for our project we are also currently not using any Java (1.)5
> features since we are not targetting a (1.)5 JVM, but rather a 1.4.2
> environment. I only installed Eclipse 3.1 since I like some of the
> improved UI features and also wanted to experiment with some of the new
> Java 5 features in some private project.
>
> I thus can not make use of the AJDT for Java 5 version, since apparently
> the runtime that comes with that AJDT version requires a 1.5 JVM plus
> corresponding libraries and - if I understood that right - also requires
> that one sets the generated class file compatibility level to 5.
>
> Thus my question: is it possible to work under Eclipse 3.1 but still use
> an AJDT environment that requires a 1.4.2 VM and libraries only and not
> Java 5 "under the hood"? As I said: I don't need any Java 1.5. features
> at the moment for our aspect-development. Is that possible at all and if
> so, which AJDT version would that be? The one available for Eclipse 3.0?
> Or are these versions mutually exclusive?
>
> Hope I could make myself clear...
> Michael
>
Re: which AJDT version to use under Eclipse 3.1 when targetting a 1.4.2 VM? [message #54547 is a reply to message #54520] Wed, 06 July 2005 08:14 Go to previous messageGo to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
Hi Andy,
I have selected the IBM JDK 1.4.2 as my target JDK (i.e. for compilation
and running/debugging my code) and I have selected compiler compliance
level 1.4 and explicitly (i.e. not using the "use default compliance
level" check-box) 1.4 for both, class file compatibility and source
compatibility.

I guess what irritated me, was that - as soon as I had enabled the
"Aspect J nature" of that project (i.e. before even writing the first
aspect) - this immediately yielded the following warning being emitted
(in the Problems view):

Severity Description Resource In Folder Location Creation Time
1 Incompatible .class files version in required binaries. Project 'test'
is targeting a 1.4 runtime, but is compiled against
'C:eclipse_plugins/ajdt/eclipse/plugins/org.aspectj.runtime_ 1.5.0.20050705122838/aspectjrt.jar'
which requires a 1.5 runtime test July 6, 2005 10:02:28 AM

So that falsely led me to the assumption that I would need to switch to
a Java 5 compiler and runtime to develop and execute my code. However,
as you describe, things run fine with a 1.4. VM as well.

Michael


"Andy Clement" <clemas@uk.ibm.com> wrote in message
news:dag0he$fjc$1@news.eclipse.org...
> Hi Michael,
>
> Although the AJDT available for 3.1 allows the use of Java 1.5
> language features - it still works fine if you just want to develop
> code that targets a 1.4 VM. Just like the JDT tools in 3.1 allow you
> to write code for a 1.4 VM (you don't have two versions of JDT do
> you - one for 1.4 dev, one for 1.5 dev...)
>
> The default mode for the AspectJ compiler in AJDT for 3.1 is in fact
> still 1.4 compliance - you have to go out of your way to switch it to
> supporting 1.5 language features.
>
> Basically, use the AJDT thats available now, ensure your project has
> 1.4 JVM library references and you'll be fine :)
>
> Andy.
Re: which AJDT version to use under Eclipse 3.1 when targetting a 1.4.2 VM? [message #54573 is a reply to message #54547] Wed, 06 July 2005 08:33 Go to previous message
Eclipse UserFriend
Originally posted by: clemas.uk.ibm.com

Interesting... With the recent version of the runtime plugin there was a
problem in the packaging of the aspectjrt.jar that it includes (look at
its size...) - it included some classes that it shouldn't have. It
seemed harmless and will be fixed on the next AspectJ update, but it
looks like you have found the scenario where it causes problems!!! I'll
fix it asap.

Andy.

Michael Moser wrote:

> Hi Andy,
> I have selected the IBM JDK 1.4.2 as my target JDK (i.e. for compilation
> and running/debugging my code) and I have selected compiler compliance
> level 1.4 and explicitly (i.e. not using the "use default compliance
> level" check-box) 1.4 for both, class file compatibility and source
> compatibility.
>
> I guess what irritated me, was that - as soon as I had enabled the
> "Aspect J nature" of that project (i.e. before even writing the first
> aspect) - this immediately yielded the following warning being emitted
> (in the Problems view):
>
> Severity Description Resource In Folder Location Creation Time
> 1 Incompatible .class files version in required binaries. Project 'test'
> is targeting a 1.4 runtime, but is compiled against
> 'C:eclipse_plugins/ajdt/eclipse/plugins/org.aspectj.runtime_ 1.5.0.20050705122838/aspectjrt.jar'
> which requires a 1.5 runtime test July 6, 2005 10:02:28 AM
>
> So that falsely led me to the assumption that I would need to switch to
> a Java 5 compiler and runtime to develop and execute my code. However,
> as you describe, things run fine with a 1.4. VM as well.
>
> Michael
>
>
> "Andy Clement" <clemas@uk.ibm.com> wrote in message
> news:dag0he$fjc$1@news.eclipse.org...
>
>> Hi Michael,
>>
>> Although the AJDT available for 3.1 allows the use of Java 1.5
>> language features - it still works fine if you just want to develop
>> code that targets a 1.4 VM. Just like the JDT tools in 3.1 allow you
>> to write code for a 1.4 VM (you don't have two versions of JDT do you
>> - one for 1.4 dev, one for 1.5 dev...)
>>
>> The default mode for the AspectJ compiler in AJDT for 3.1 is in fact
>> still 1.4 compliance - you have to go out of your way to switch it to
>> supporting 1.5 language features.
>>
>> Basically, use the AJDT thats available now, ensure your project has
>> 1.4 JVM library references and you'll be fine :)
>>
>> Andy.
>
>
Re: which AJDT version to use under Eclipse 3.1 when targetting a 1.4.2 VM? [message #589212 is a reply to message #54490] Wed, 06 July 2005 07:17 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
Hi Michael,

Although the AJDT available for 3.1 allows the use of Java 1.5 language
features - it still works fine if you just want to develop code that
targets a 1.4 VM. Just like the JDT tools in 3.1 allow you to write
code for a 1.4 VM (you don't have two versions of JDT do you - one for
1.4 dev, one for 1.5 dev...)

The default mode for the AspectJ compiler in AJDT for 3.1 is in fact
still 1.4 compliance - you have to go out of your way to switch it to
supporting 1.5 language features.

Basically, use the AJDT thats available now, ensure your project has 1.4
JVM library references and you'll be fine :)

Andy.

Michael Moser wrote:
> Hi all, I have a question re. AJDT versions:
>
> Though I personally have upgraded to Eclipse 3.1 others in my group have
> not and for our project we are also currently not using any Java (1.)5
> features since we are not targetting a (1.)5 JVM, but rather a 1.4.2
> environment. I only installed Eclipse 3.1 since I like some of the
> improved UI features and also wanted to experiment with some of the new
> Java 5 features in some private project.
>
> I thus can not make use of the AJDT for Java 5 version, since apparently
> the runtime that comes with that AJDT version requires a 1.5 JVM plus
> corresponding libraries and - if I understood that right - also requires
> that one sets the generated class file compatibility level to 5.
>
> Thus my question: is it possible to work under Eclipse 3.1 but still use
> an AJDT environment that requires a 1.4.2 VM and libraries only and not
> Java 5 "under the hood"? As I said: I don't need any Java 1.5. features
> at the moment for our aspect-development. Is that possible at all and if
> so, which AJDT version would that be? The one available for Eclipse 3.0?
> Or are these versions mutually exclusive?
>
> Hope I could make myself clear...
> Michael
>
Re: which AJDT version to use under Eclipse 3.1 when targetting a 1.4.2 VM? [message #589224 is a reply to message #54520] Wed, 06 July 2005 08:14 Go to previous message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
Hi Andy,
I have selected the IBM JDK 1.4.2 as my target JDK (i.e. for compilation
and running/debugging my code) and I have selected compiler compliance
level 1.4 and explicitly (i.e. not using the "use default compliance
level" check-box) 1.4 for both, class file compatibility and source
compatibility.

I guess what irritated me, was that - as soon as I had enabled the
"Aspect J nature" of that project (i.e. before even writing the first
aspect) - this immediately yielded the following warning being emitted
(in the Problems view):

Severity Description Resource In Folder Location Creation Time
1 Incompatible .class files version in required binaries. Project 'test'
is targeting a 1.4 runtime, but is compiled against
'C:eclipse_plugins/ajdt/eclipse/plugins/org.aspectj.runtime_ 1.5.0.20050705122838/aspectjrt.jar'
which requires a 1.5 runtime test July 6, 2005 10:02:28 AM

So that falsely led me to the assumption that I would need to switch to
a Java 5 compiler and runtime to develop and execute my code. However,
as you describe, things run fine with a 1.4. VM as well.

Michael


"Andy Clement" <clemas@uk.ibm.com> wrote in message
news:dag0he$fjc$1@news.eclipse.org...
> Hi Michael,
>
> Although the AJDT available for 3.1 allows the use of Java 1.5
> language features - it still works fine if you just want to develop
> code that targets a 1.4 VM. Just like the JDT tools in 3.1 allow you
> to write code for a 1.4 VM (you don't have two versions of JDT do
> you - one for 1.4 dev, one for 1.5 dev...)
>
> The default mode for the AspectJ compiler in AJDT for 3.1 is in fact
> still 1.4 compliance - you have to go out of your way to switch it to
> supporting 1.5 language features.
>
> Basically, use the AJDT thats available now, ensure your project has
> 1.4 JVM library references and you'll be fine :)
>
> Andy.
Re: which AJDT version to use under Eclipse 3.1 when targetting a 1.4.2 VM? [message #589239 is a reply to message #54547] Wed, 06 July 2005 08:33 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
Interesting... With the recent version of the runtime plugin there was a
problem in the packaging of the aspectjrt.jar that it includes (look at
its size...) - it included some classes that it shouldn't have. It
seemed harmless and will be fixed on the next AspectJ update, but it
looks like you have found the scenario where it causes problems!!! I'll
fix it asap.

Andy.

Michael Moser wrote:

> Hi Andy,
> I have selected the IBM JDK 1.4.2 as my target JDK (i.e. for compilation
> and running/debugging my code) and I have selected compiler compliance
> level 1.4 and explicitly (i.e. not using the "use default compliance
> level" check-box) 1.4 for both, class file compatibility and source
> compatibility.
>
> I guess what irritated me, was that - as soon as I had enabled the
> "Aspect J nature" of that project (i.e. before even writing the first
> aspect) - this immediately yielded the following warning being emitted
> (in the Problems view):
>
> Severity Description Resource In Folder Location Creation Time
> 1 Incompatible .class files version in required binaries. Project 'test'
> is targeting a 1.4 runtime, but is compiled against
> 'C:eclipse_plugins/ajdt/eclipse/plugins/org.aspectj.runtime_ 1.5.0.20050705122838/aspectjrt.jar'
> which requires a 1.5 runtime test July 6, 2005 10:02:28 AM
>
> So that falsely led me to the assumption that I would need to switch to
> a Java 5 compiler and runtime to develop and execute my code. However,
> as you describe, things run fine with a 1.4. VM as well.
>
> Michael
>
>
> "Andy Clement" <clemas@uk.ibm.com> wrote in message
> news:dag0he$fjc$1@news.eclipse.org...
>
>> Hi Michael,
>>
>> Although the AJDT available for 3.1 allows the use of Java 1.5
>> language features - it still works fine if you just want to develop
>> code that targets a 1.4 VM. Just like the JDT tools in 3.1 allow you
>> to write code for a 1.4 VM (you don't have two versions of JDT do you
>> - one for 1.4 dev, one for 1.5 dev...)
>>
>> The default mode for the AspectJ compiler in AJDT for 3.1 is in fact
>> still 1.4 compliance - you have to go out of your way to switch it to
>> supporting 1.5 language features.
>>
>> Basically, use the AJDT thats available now, ensure your project has
>> 1.4 JVM library references and you'll be fine :)
>>
>> Andy.
>
>
Previous Topic:which AJDT version to use under Eclipse 3.1 when targetting a 1.4.2 VM?
Next Topic:Question to AJDT developers: reusing JTD plugin.
Goto Forum:
  


Current Time: Sat Apr 27 02:00:29 GMT 2024

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

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

Back to the top