|
From: Robert <ca...@li...> - 2004-08-30 23:04:52
|
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
without problems.
This would change the target code to:
if(!target.equals("None"))
{
buf.append(" -target ");
buf.append(target);
}
Or some such thing. :-)
Robert
"rdhja rdhja" <rd...@ho...> wrote in message
news:BAY...@ho......
> 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
to
> the 1.5 behavior if the -source flag is not used.
> When release is set to 1.4, the compiler accepts code containing
assertions.
> 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" <ca...@li...>
> >Reply-To: "Robert" <ca...@li...>
> >To: jed...@li...
> >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
only
> >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
> >"Z:\projects\Java\Page34\DogTestDrive.java"
> >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
> >workaround?
> >
> >Robert
> >
|