Author |
Message
|
crossland |
Posted: Thu Aug 07, 2008 4:22 am Post subject: Using enum in WMB Java |
|
|
Master
Joined: 26 Jun 2001 Posts: 248
|
I need to use enum in a Java node, which was introduced with 1.5.
However, the Java compiler on the WMB toolkit is failing to recognise enum.
This is despite the fact that Windows, preferences, Java, installed JREs uses JRE 1.5.
The problem appears to be that the only options available under Windows, preferences, Java, Compiler, Compliance and Classfiles for Compiler compliance level are 1.4 and 1.3.
As a result, compilation fails.
Is there any way to get it to compile with 1.5?
My version of WMB Toolkit is 6.0.2.
Thanks. |
|
Back to top |
|
 |
JLRowe |
Posted: Fri Aug 08, 2008 2:08 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
Me thinks that you need 6.1 to get Java 5 support. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Aug 08, 2008 2:14 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
No... You can easily run Java 1.5 with Broker 6.0.
There's even been a recent post on this subject. |
|
Back to top |
|
 |
crossland |
Posted: Sat Aug 09, 2008 8:13 am Post subject: |
|
|
Master
Joined: 26 Jun 2001 Posts: 248
|
You didn't read the post.
The problem is that the only options for Compiler compliance are 1.4 and 1.3 with WMB 6.0.
Has anyone managed to get WMB 6 to offer 1.5 as an option for Compiler compliance? |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Aug 09, 2008 10:02 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
crossland wrote: |
You didn't read the post.
The problem is that the only options for Compiler compliance are 1.4 and 1.3 with WMB 6.0.
Has anyone managed to get WMB 6 to offer 1.5 as an option for Compiler compliance? |
And let's be precise: this is not about the broker, this is about the toolkit.
Did you start the toolkit as usual or did you make sure the toolkit starts in a 1.5 jvm? I believe the default eclipse jvm is still 1.4?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
janekb |
Posted: Sun Aug 17, 2008 4:18 pm Post subject: |
|
|
Newbie
Joined: 12 Aug 2008 Posts: 1
|
WMBT v6.0 is based on eclipse 3.1, this version of eclipse doesn't support Java 5 (so there is no possibility to have 1.5 Compiler compliance).
You will have to use WMBT v 6.1. (which is based on newer version of eclipse v 3.3) |
|
Back to top |
|
 |
|