Kompilieren mit Java 1.5 geht nicht (ant), benötigt 1.4

Hier haben Plugin-Entwickler die Möglichkeit, sich auszutauschen.
Antworten
Gast

Kompilieren mit Java 1.5 geht nicht (ant), benötigt 1.4

Beitrag von Gast »

ich starte: "ant make-default"

FEHLER: javac: target release 1.4 conflicts with default source release 1.5

ist da ein Fehler im Buildscript, oder ist es nicht möglich mit jdk1.5 zu kompilieren ?

========================================= log
Buildfile: build.xml

copy-resources:

make-default:
[echo] Compiling the source code ...
[javac] Compiling 673 source files to tvbrowser-2.2.1\classes
[javac] javac: target release 1.4 conflicts with default source release 1.5

BUILD FAILED
tvbrowser-2.2.1\build.xml:222: Compile failed; see the compiler error output for details.
=========================================
Gast

Beitrag von Gast »

hat es schonmal jemand mit jdk1.5 kompiliert?

evtl ist meine ant-version zu alt?!
Gast

Beitrag von Gast »

Lösung bei mir:
in build.xml:

in target make-default:

... target="1.4">

ändern zu:

... target="1.4" source="1.4">

dann geht's.

Komisch dass scheinbar noch niemand das Problem hatte.
Antworten