This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | "javac: invalid target release: 1.7" when trying clean/build on Mac with JDK 7 Developer Preview | ||
---|---|---|---|
Product: | javaee | Reporter: | host <host> |
Component: | Web Project | Assignee: | David Konecny <dkonecny> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | molle, tzezula |
Priority: | P2 | ||
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
host
2011-10-04 18:38:40 UTC
I forgot: I also set the platform of the project correctly to JDK 7. Tomas, any idea what could be wrong? Thanks. I will download the dev preview and try. Works fine in J2SE project, Web project specific problem. The problem is that fork="false" the JDK 7.0 params are passed to JDK 6.0 compiler. The executable requires fork="true". On the line 293 of build-iml.xml the <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> should become: <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> Thanks for the solution Tomas. webmain #a274f88d445d Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/a274f88d445d User: David Konecny <dkonecny@netbeans.org> Log: #203088 - "javac: invalid target release: 1.7" when trying clean/build on Mac with JDK 7 Developer Preview |