I was going through the console source as well. There thing I would suggest
(Slava is maintainer) is to add a "None" to the target field. When set it
would not pass a "-target" flag and then users of JDK 1.5 can run things
This would change the target code to:
buf.append(" -target ");
Or some such thing. :-)
"rdhja rdhja" <rdhja@...> wrote in message
> Below is an excerpt from the Java 1.5.0 SDK Tool Reference
> -source release
> When release is set to 1.5, the compiler accepts code containing generics
> and other language features introduced in JDK 1.5. The compiler defaults
> the 1.5 behavior if the -source flag is not used.
> When release is set to 1.4, the compiler accepts code containing
> Assertions were introduced in JDK 1.4.
> When release is set to 1.3, the compiler does not support assertions,
> generics, or other language features introduced after JDK 1.3.
> What I did is make a minor change to the commando javac.xml to add the
> -source flag options in a choice box.
> Attached is a copy of the file. You must then rebuild the console.jar
> Regards Richard
> >From: "Robert" <catcher@...>
> >Reply-To: "Robert" <catcher@...>
> >To: jedit-users@...
> >Subject: [ jEdit-users ] Console and JDK 1.5
> >Date: Mon, 30 Aug 2004 10:15:45 -0400
> >I was trying to compile a Java file and I set the target to 1.4. I am
> >using JDK 1.5 and I get this error:
> > > javac -classpath "$CLASSPATH;Z:\projects\Java\Page34" -sourcepath
> >"Z:\projects\Java\Page34" -nowarn -encoding Cp1252 -target 1.4
> >javac: target release 1.4 conflicts with default source release 1.5
> >Process javac exited with code 2
> >Working directory is C:\Program Files\jEdit
> >Do I have to go back to 1.4.2 with jEdit 4.2? Or is there another