• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WSAD 5.1.x --> JDK 1.5???

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I tried to upgrade JDK 1.4 to 1.5 in WSAD 5.1.2 but it didn't work.

I could change the JRE to 1.5: Window -> Preferences ->Java ->installed JREs.

The problem is that I can't change the compiler to 1.5 from 1.4 to support the new constructs (generics, autoboxing, etc) and compile!!!

How do I upgrade the complier to 1.5 in WSAD 5.1.2?

Thanks in advance!
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't. WSAD is very restrictive when it comes to the JDK versions it supports. This seems to be because it doesn't want to allow you to write code in a JDK newer than WebSphere itself supports (for example, WSAD 5.0 doesn't support anything higher than 1.3.1). Very, very annoying I know.

You might just want to use normal Eclipse, rather then the WSAD-flavoured version.
 
Thomas Mcfarrow
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply,

It is very very annoying... does anyone know a hack?

I guess I could download and install eclipse .
 
Ranch Hand
Posts: 493
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your solution can be as simple as upgrading to RAD6 from WSAD 5.1.2. RAD6 is based on Eclipse 3.x technology and therefore natively uses 1.4.x JRE.
Bharat
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
RAD 6 currently uses 1.4. The version of Eclipse using 1.5 is still in beta, so no versions of WSAD have support yet.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Paul Sturrock:
You can't. WSAD is very restrictive when it comes to the JDK versions it supports. This seems to be because it doesn't want to allow you to write code in a JDK newer than WebSphere itself supports (for example, WSAD 5.0 doesn't support anything higher than 1.3.1). Very, very annoying I know.



A more legitimate reason might be that to support a newer JDK, the Eclipse compiler needs to be adapted, and that work was just finished in the 3.1 stream.
 
reply
    Bookmark Topic Watch Topic
  • New Topic