Re: [josm-dev] Plugins not working with 3094 and Linux ?
On Tue, 9 Mar 2010, Sebastian Klein wrote: I don't know when the JOSM core is going to be compiled for Java 6. On this list I have been reading about plans to switch to Java 6 one or two weeks ago. Perhaps it has been postponed by another month or two in the meantime. Plugins should probably wait to compile for Java 6 until the JOSM core is available for Java 6. JOSM core is already compiled using JAVA6, but still using JAVA5 as target. This will be changed as soon as we have JAVA6 stuff included. But if I understand it correctly JAVA6 stuff can be compiled for 5 (but fails to work under 5). So switching to 6 in compiling mode is not really a requirement. The question is when we do allow JAVA6 code. I think it is quite clear: The final decision on the Java 6 switch will be made after the stabilization bugfixing phase. (Which has started early January and apparently isn't over.) JOSM should be a bit more stable, but I also don't like to wait endless. JAVA6 will come end of month latest and JAVA5 users will have to live with the version we have by then. Would be nice if the plugin issues and some other serious stuff can be fixed till then. If there are really bigger issues and users of JAVA5 have no other chance, then a bug-fix branch can be made if a maintainer for it can be found (which I doubt). If we have a very stable version tomorrow, then JAVA6 can come friday :-) Ciao -- http://www.dstoecker.eu/ (PGP key available) ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Plugins not working with 3094 and Linux ?
On Wed, Mar 10, 2010 at 11:46 AM, Dirk Stöcker openstreet...@dstoecker.dewrote: Don't ask me. I'm no Java guru :-) Maybe you already use JAVA6 stuff in your plugin? E.g. isEmpty() in strings? Or we have such thing in JOSM core and didn't recognice it? No, no, it was the same jar file which worked on previous tested JOSM. The only difference was the new JOSM-tested core (and again, it's only happening of Linux). The solution is probably to compile the plugins in the same way as the core (Java6 compiled for 5). Pieren ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
[josm-dev] Plugins not working with 3094 and Linux ?
Hi, I received already two complains about 3094 and the cadastre-fr plugin not working on Linux (ubuntu or Debian Etch) with a java6 env. Exception is : java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) Do we have to modify the ant files and recompile all plugins for Java6 ? Strange is that it works fine on Windows. Pieren ___ josm-dev mailing list josm-...@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Plugins not working with 3094 and Linux ?
Hi, Do we have to modify the ant files and recompile all plugins for Java6 ? the public build.xml for the JOSM core still compiles for Java 5 (both source and target). So do the build.xml for the plugins. Most of them have the property property name=ant.build.javac.target value=1.5 / set (cadastre_fr too). Latest is still compiled for Java 1.5, as far as I can tell- the major version of the class files is 49. I don't know when the JOSM core is going to be compiled for Java 6. On this list I have been reading about plans to switch to Java 6 one or two weeks ago. Perhaps it has been postponed by another month or two in the meantime. Plugins should probably wait to compile for Java 6 until the JOSM core is available for Java 6. Regards Karl Am 09.03.2010 12:39, schrieb Pieren: Hi, I received already two complains about 3094 and the cadastre-fr plugin not working on Linux (ubuntu or Debian Etch) with a java6 env. Exception is : java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) Do we have to modify the ant files and recompile all plugins for Java6 ? Strange is that it works fine on Windows. Pieren ___ josm-dev mailing list josm-...@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev ___ josm-dev mailing list josm-...@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Plugins not working with 3094 and Linux ?
Karl Guggisberg wrote: I don't know when the JOSM core is going to be compiled for Java 6. On this list I have been reading about plans to switch to Java 6 one or two weeks ago. Perhaps it has been postponed by another month or two in the meantime. Plugins should probably wait to compile for Java 6 until the JOSM core is available for Java 6. I think it is quite clear: The final decision on the Java 6 switch will be made after the stabilization bugfixing phase. (Which has started early January and apparently isn't over.) __ Sebastian ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev