Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2m-dev] Java 1.5 API used

Op dinsdag 12 februari 2008, schreef William Piers:
> Hello,
>
> I think we better have to keep the java 1.4 compliance : it allows ATL
> to run on more environments, especially in an industrial context.
> Moreover, ATL has always been 1.4 compliant, so it's not difficult to
> keep that.

Ok, so I suppose we can use normal HashMaps instead of ConcurrentHashMaps in 
the editor? I didn't see the need to create a synchronized HashMap...

>
> Dennis Wagelaar a écrit :
> > Hello all,
> >
> > org.eclipse.m2m.atl.adt.editor uses
> > java.util.concurrent.ConcurrentHashMap. This package was only introduced
> > in Java 1.5. The current compiler settings for ATL plugins are set to
> > Java 1.4. When exporting plugins, the Eclipse Java compiler gives errors
> > on not finding java.util.concurrent.
>
> I didn't encounter those errors. Could you tell me which eclipse and
> java version do you use ? It will help me to detect those issues.

I encountered those errors on "Export -> Deployable features" 
since "Bundle-RequiredExecutionEnvironment: J2SE-1.4" was added to the 
manifest.

Below is an excerpt of my Eclipse config:

*** System properties:
eclipse.buildId=I20070625-1500
eclipse.commands=-os
linux
-ws
gtk
-arch
x86_64
-showsplash
-launcher
/opt/media/apps/eclipse/eclipse
-name
Eclipse
--launcher.library
/opt/media/apps/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.2.R331_v20071019/eclipse_1021.so
-startup
/opt/media/apps/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
-exitdata
10001b
-vm
/usr/java/default/bin/java
eclipse.ee.install.verify=false
eclipse.product=org.eclipse.sdk.ide
eclipse.startTime=1202979736748
eclipse.vm=/usr/java/default/bin/java
eclipse.vmargs=-Xms40m
-Xmx2048m
-XX:PermSize=64m
-XX:MaxPermSize=128m
-jar
/opt/media/apps/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
eof=eof
file.encoding=UTF-8
file.encoding.pkg=sun.io
file.separator=/
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.awt.printerjob=sun.print.PSPrinterJob
java.class.path=/opt/media/apps/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
java.class.version=50.0
java.endorsed.dirs=/usr/java/jdk1.6.0_03/jre/lib/endorsed
java.ext.dirs=/usr/java/jdk1.6.0_03/jre/lib/ext:/usr/java/packages/lib/ext
java.home=/usr/java/jdk1.6.0_03/jre
java.io.tmpdir=/tmp
java.library.path=/usr/java/jdk1.6.0_03/jre/lib/amd64/server:/usr/java/jdk1.6.0_03/jre/lib/amd64:/usr/java/jdk1.6.0_03/jre/../lib/amd64:/usr/lib64/firefox-2.0.0.10:/usr/java/packages/lib/amd64:/lib:/usr/lib
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.6.0_03-b05
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.6
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.6.0_03
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.6.0_03-b05
line.separator=
*snip*

>
> > What's our policy on this? Remove all API dependencies above Java 1.4? Or
> > switch to Java 1.5 entirely?
> >
> > Regards,
>
> Best regards,
>
> William



-- 
Dennis Wagelaar
-----------------------------------------------------
E-mail:  dennis.wagelaar@xxxxxxxxx
Website: http://ssel.vub.ac.be/Members/DennisWagelaar
Phone:   +32 2 629 2974
Fax:     +32 2 629 2870
Mobile:  +32 486 682357
ICQ:     3386938 / 3608183
-----------------------------------------------------



Back to the top