From: Shlomy R. <sre...@gm...> - 2009-01-19 07:52:08
|
Hi all, As someone noted on this mailing list yesterday, Mac users are limited to Java 1.5, so it's important for jEdit and its plugins to run with Java 1.5. Fortunately, the Java 6 compiler provides options to create bytecode that can run with Java 1.5 ('cross compilation'). To compile for 1.5, use the following options: "-target 1.5": Specify that the target bytecode can be run by Java 1.5. "-bootclasspath <path to rt.jar of jdk 1.5>": Specify the set of boot classes against which to compile. This ensures that compilation uses boot classes that are available in 1.5. "-extdirs <semicolon-separated list of directories>": Specify extension directories to use for compilation. This information is taken from: http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html An example at the end of that web-page shows how to compile for 1.5. I think it's better to include something for that in build-support/plugin-build.xml, and instruct all plugin developers to use that compilation task whenever possible instead of writing custom ones. Shlomy |