Michael: Thanks for the response.
You wrote: "Is your ant script or your Eclipse settings deciding which compiler version you are using ?" I believe it depends on how the JAR file for the plug-in is produced. If you compile and build the Jar using Ant from inside Eclipse, then Ant controls. I checked my tools.jar in the Ant Runtime Configuration, at it is being pulled from a 1.6 JDK. This should be the same Eclipse is using. I also tried creating the JAR using the export command in Eclipse, without Ant, and I get the same exception I do when using a JAR created with Ant. You wrote: "Does your GPX plugin have dependencies ?" It does. Most of those are pretty old. I'll have to double check and see if any of the dependencies are compiled for Java 1.7. The exception is thrown when I try to call the configure method of the Extension for my plug-in. However, if OJ loads all the dependency classes into the JVM when the configure method is called, that could be the problem. You wrote: "Did you try to remove (or no rename) you java 1.7 installation while compiling, just to make sure you're not using it ?" I'll try this. Not a good long term solution, as I need a 1.7 JDK for other work. Worth a shot though. You wrote: "Why don't you stick to java 1.5 as we do for OpenJUMP and most plugins ?" You can't even download the 1.5 JDK or JRE from Oracle's web site now. You have to get it from an archive web page which requires an Oracle web site registration. OJ is running and compiling OK for me on Java 1.6, so I'll be happy if I can just get that to work. I'll have to let the plug-in users now that Java 1.6 is required. Landon 2012/2/24 Michaël Michaud <michael.mich...@free.fr>: > Hi, >> I've set my compiler settings for the GPX project to Java 1.6 on both >> plug-in projects. I'm building both with Ant in Eclipse. > Is your ant script or your Eclipse settings deciding which compiler > version you are using ? > Does your GPX plugin have dependencies ? > Did you try to remove (or no rename) you java 1.7 installation while > compiling, > just to make sure you're not using it ? > > Why don't you stick to java 1.5 as we do for OpenJUMP and most plugins ? > > Michaël > >> The Super >> Select Tool plug-in loads just fine in OpenJUMP, while the GPX Reader >> plug-in throws a "Major Minor" version exception. (This happens when >> you run a class compiled with a JDK higher than the JRE running the >> code.) >> >> Both plug-ins run fine if I change my oj_windows.bat file to use a 1.7 >> JRE to run JUMP. >> >> I'm stumped. >> >> Any ideas? As far as I know, I'm not using any Java 1.7 features in my >> GPX Reader plug-in source code. >> >> Thanks. >> >> Landon >> >> ------------------------------------------------------------------------------ >> Virtualization& Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> >> > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel