Hello Jan,
I created a file "nbjdk.home=/usr/lib64/jvm/java-8-openjdk" in the
nbbuild folder as advised when I tried to just build NetBeans, but the
build file itself seems not to always recognize this. I've not fully
investigated this, however, so I might be wrong.
As far as I can see from the README file, it even seems nobody ever
tried to build using NetBeans (ant seems to be used from the command
line), so probably it's a problem with the execution environment. This
seems also to be true for my Maven/OSGi problem, as the antrun plugin
gets different runtime paths dependend of if the target directory
already exists (runtime dependencies on other projects are resolved to
jar files only if the target directory is deleted before running the
project, otherwise resolved to the classes folder, which causes Felix to
fail).
Kind regards
Peter
Am 05.01.2018 um 17:19 schrieb Jan Lahoda:
Hi Peter,
On Fri, Jan 5, 2018 at 3:44 PM, Peter Nabbefeld <peter.nabbef...@gmx.de>
wrote:
Hi,
I'm getting "/home/peter/incubator-netbeans/core.network/src/org/netbean
s/core/network/proxy/pac/impl/ClassFilterPacHelpers.java:21: error:
package jdk.nashorn.api.scripting does not exist", when trying to build
NetBeans from incubator repository.
Value of "nbjdk.bootclasspath" is:
/usr/lib64/jvm/java-8-openjdk/jre/lib/charsets.jar:/usr/lib6
4/jvm/java-8-openjdk/jre/lib/jce.jar:/usr/lib64/jvm/java-8-
openjdk/jre/lib/jfxswt.jar:/usr/lib64/jvm/java-8-openjdk/
jre/lib/jsse.jar:/usr/lib64/jvm/java-8-openjdk/jre/lib/
management-agent.jar:/usr/lib64/jvm/java-8-openjdk/jre/lib/
resources.jar:/usr/lib64/jvm/java-8-openjdk/jre/lib/rt.jar
I tried to edit project.xml, adding the missing jar files, but got another
problem:
...
Created dir: /home/peter/incubator-netbeans/libs.jsr223/build/classes
Compiling 1 source file to /home/peter/incubator-netbeans
/libs.jsr223/build/classes
error: Source option 1.4 is no longer supported. Use 1.6 or later.
error: Target option 1.4 is no longer supported. Use 1.6 or later.
...
As libs.jsr223 is dummy only, it just should be removed, if possible.
And more of this:
Compiling 8 source files to /home/peter/incubator-netbeans
/openide.util.enumerations/build/classes
error: Source option 1.4 is no longer supported. Use 1.6 or later.
error: Target option 1.4 is no longer supported. Use
The build was using JDK 9, right? (JDK 8 supports -source 1.4/-target 1.4,
while this support was removed in JDK 9, see JEP 182:
http://openjdk.java.net/jeps/182
)
Sorry, but building on JDK 9 is not currently supported.
Why are those outdated targets set?
In some cases, these were set long time ago, and not changed, as it wasn't
needed. In some other cases, like the openide.util.enumerations, the
sources are actually using a 1.4 features ("enum" as an identifier, not a
keyword) for backwards compatibility reasons (and in case of
openide.util.enumerations, it might be OK to stop building it). In yet
other cases, like java.j2seplatform/probesrc, there is a good reason to use
an old -target setting. In the probesrc case, this defines the oldest
JDK/Java platform that the IDE will ever be able to recognize as a Java
platform. In this case, I am not sure if we can drop support for developing
projects for any Java platform older than JDK 6, I would not take such a
decision lightly. OTOH, for the probesrc, it is only a single class, which
we could generate using other means.
Jan
And, because it seems others don't have the same problems: Is the
repository url "https://github.com/apache/incubator-netbeans.git" correct?
Kind regards
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists