You are not logged in.

#1 2016-11-21 15:05:39

step
Member
Registered: 2016-05-09
Posts: 56

Netbeans "Warning" or "Error"

I have a problem of NetBeans, apparently there is no problem but I want to understand its meaning thanks to your help.
When I try to fill out me the following error:

No base JDK. Package will use system JRE.
Internal error. Missing resources [/resources/web-files/javafx-loading-100x100.gif]
JNLP failed : Error: -includedt requires the java deployment toolkit, which is not included in this distribution
com.sun.javafx.tools.packager.PackagerException: Error: -includedt requires the java deployment toolkit, which is not included in this distribution
	at com.oracle.tools.packager.jnlp.JNLPBundler.execute(JNLPBundler.java:493)
	at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:352)
	at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:318)
	at com.sun.javafx.tools.ant.DeployFXTask.execute(DeployFXTask.java:286)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at jdk.nashorn.internal.scripts.Script$49$\^eval\_.:program(<eval>:405)
	at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
	at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
	at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
	at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449)
	at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:406)
	at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402)
	at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155)
	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
	at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:109)
	at org.apache.tools.ant.util.ReflectWrapper.invoke(ReflectWrapper.java:81)
	at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:103)
	at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:67)
	at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:53)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:435)
	at org.apache.tools.ant.Target.performTasks(Target.java:456)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:435)
	at org.apache.tools.ant.Target.performTasks(Target.java:456)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:435)
	at org.apache.tools.ant.Target.performTasks(Target.java:456)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:286)
	at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:555)
	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
/home/andrea/NetBeansProjects/Salvadanaio/nbproject/jfx-impl.xml:3479: The following error occurred while executing this line:
/home/andrea/NetBeansProjects/Salvadanaio/nbproject/jfx-impl.xml:1487: The following error occurred while executing this line:
/home/andrea/NetBeansProjects/Salvadanaio/nbproject/jfx-impl.xml:3134: The following error occurred while executing this line:
/home/andrea/NetBeansProjects/Salvadanaio/nbproject/jfx-impl.xml:2096: Error: Bundler "WebStart JNLP Bundler" (jnlp) failed to produce a bundle.
BUILD FAILED (total time: 0 seconds)

But if i try to re-compile it out me "BUILD SUCCESSFUL" and if i execute it work correctly, but this output what means?

Offline

#2 2016-11-21 23:35:19

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Netbeans "Warning" or "Error"

Sounds like you need a JDK installed and not just the JRE.


Matt

"It is very difficult to educate the educated."

Offline

#3 2016-11-22 11:24:42

step
Member
Registered: 2016-05-09
Posts: 56

Re: Netbeans "Warning" or "Error"

mrunion wrote:

Sounds like you need a JDK installed and not just the JRE.

I have already installed this packages:

[2016-11-22 11:35] [PACMAN] Running 'pacman -S jre8-openjdk jdk8-openjdk java-openjfx'
[2016-11-22 11:39] [ALPM] transaction started
[2016-11-22 11:39] [ALPM] reinstalled jre8-openjdk (8.u112-1)
[2016-11-22 11:39] [ALPM] reinstalled jdk8-openjdk (8.u112-1)
[2016-11-22 11:39] [ALPM] reinstalled java-openjfx (8.u76-2)
[2016-11-22 11:39] [ALPM] transaction completed

I think is not this the problem, cause i get this error at first compiling, if i re-compile another time netbeans get me "BUILD SUCCESSFUL"

Offline

#4 2016-11-22 15:10:15

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Netbeans "Warning" or "Error"

Does the file it says is missing exist? If so, then I have no idea.


Matt

"It is very difficult to educate the educated."

Offline

#5 2016-11-22 17:43:45

Omar007
Member
Registered: 2015-04-09
Posts: 368

Re: Netbeans "Warning" or "Error"

The Java Deployment Toolkit is not present in Java 8.
Disable it in your project properties file; javafx.deploy.includeDT=true -> javafx.deploy.includeDT=false.

Or try with Java 7 instead maybe?

Last edited by Omar007 (2016-11-22 17:44:09)

Offline

#6 2016-11-23 11:11:47

step
Member
Registered: 2016-05-09
Posts: 56

Re: Netbeans "Warning" or "Error"

Omar007 wrote:

The Java Deployment Toolkit is not present in Java 8.
Disable it in your project properties file; javafx.deploy.includeDT=true -> javafx.deploy.includeDT=false.

Or try with Java 7 instead maybe?

Thank you for your reply, i can't use java 7 cause netbeans 8.2 work only with java 8. Can you explain me how i can cange this parameter for try to work correctly netbeans? I don't see where i can find this option.

Offline

#7 2016-11-23 13:41:52

Omar007
Member
Registered: 2015-04-09
Posts: 368

Re: Netbeans "Warning" or "Error"

You don't need to replace Java 8 on your whole system, you only need to install Java 7 alongside it and set the compile target for the project itself to Java 7.
(FYI, you can use `archlinux-java` to change the default Java environment)

Iirc the file was literally called project.properties. If memory servers right that file is located in the nbproject folder of your project.
And if locating it still fails, you could always try to grep for it (recursively) in your project's root folder wink

Last edited by Omar007 (2016-11-23 13:45:20)

Offline

#8 2016-11-23 13:48:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: Netbeans "Warning" or "Error"

This library is part of oracle's java web deployment package, it isn't present in the openjdk releases (neither 8 nor 7 so switching won't help). IcedTea is the equivalent open implementation. You probably shouldn't worry much about it if it works anyway. (Or install oracle's JDK if it really bothers you...), as has been mentioned disabling inclusion in the properties file should get rid of the warning.

Last edited by V1del (2016-11-23 13:49:12)

Offline

#9 2016-11-23 15:33:00

step
Member
Registered: 2016-05-09
Posts: 56

Re: Netbeans "Warning" or "Error"

Omar007 wrote:

You don't need to replace Java 8 on your whole system, you only need to install Java 7 alongside it and set the compile target for the project itself to Java 7.
(FYI, you can use `archlinux-java` to change the default Java environment)

Iirc the file was literally called project.properties. If memory servers right that file is located in the nbproject folder of your project.
And if locating it still fails, you could always try to grep for it (recursively) in your project's root folder wink

Thank you for help, now i found right file and i can set false in option but i want program work correctly in all, so:

V1del wrote:

This library is part of oracle's java web deployment package, it isn't present in the openjdk releases (neither 8 nor 7 so switching won't help). IcedTea is the equivalent open implementation. You probably shouldn't worry much about it if it works anyway. (Or install oracle's JDK if it really bothers you...), as has been mentioned disabling inclusion in the properties file should get rid of the warning.

I install icedtea-web for package, but netbeans yet give me error, can you explain all the steps to run properly netbeans?

Offline

#10 2016-11-23 16:23:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: Netbeans "Warning" or "Error"

If my understanding is correct (Disclaimer: I've never developed a webstart application), you would only really need to include this, if the user opening this within his browser doesn't yet have Java installed or his java version is outdated. I think that's a safe assumption to make that most people that have an interest in this will have some form of  java installed already. This plugin only helps in detecting the correct java version needed and seeing as most browser start to disable the java plugin anyway, you shouldn't hang yourself up on it. If you aren't even developing a webstart application then it doesn't matter at all to you.

TL:DR lacking this include shouldn't be limiting your application in any way, other than the plugin simply directing people to install the newest java version as opposed to a specific one in case they lack a java plugin

Offline

Board footer

Powered by FluxBB