I try the command line with JavaHome:
netbeans-trunk-nightly-201803230002-javase-windows.exe --javahome "C:\Program Files\Java\jdk-10"
It should work, but I receive a message:
There is no JRE at the specified location C:\Program Files\Java\jdk-10
Thanks!
Updated on July 31, 2018 to strikethrough obsolete information, and add details on the official release of NetBeans 9.
You are downloading NetBeans from Oracle's site, so you should have no expectation that even the nightly dev build will work with Java 10.
NetBeans is currently being handed over to Apache from Oracle, and there is a development build available for download from Apache in the form of a zip file from here:
https://builds.apache.org/job/incubator-netbeans-linux/
You can unzip that file on Linux, Mac or Windows and it will work with Java 10. Just be aware that it has not yet been formally released; that is a few weeks away.
You can check for bugs and/or report bugs here:
https://issues.apache.org/jira/projects/NETBEANS
UPDATE June 4, 2018
Apache NetBeans 9.0 RC1 was released on May 28. The source and the binary can be downloaded as zip files from here:
https://netbeans.apache.org/download/nb90/nb90-rc1.html
UPDATE July 31, 2018
Apache NetBeans 9.0 was released on July 29. The source and the binary can be downloaded as zip files from here:
https://netbeans.apache.org/download/nb90/nb90.html#_downloading
!!! IMPORTANT NOTE !!!
NetBeans 9 officially only supports Java SE which means:
The Project Wizard is limited compared to NetBeans 8.2. For example, it does not even allow you to create a Java web application.
Most plugins are not available. The unzipped download of NetBeans does not even allow you to install plugins for Java EE, C/C++, Fortran, Grails, Groovy, PHP etc.
However, it is a simple process to enable that functionality (at your own risk). See the answer to How to get Netbeans 9 to deploy a valid webapp on Tomcat for details.
For an explanation on why the plugins are not available by default see What's Happened to My Favorite NetBeans Plugins?.
For Windows you can install with NetBeans Extracted bundle :
Open cmd as Admin User
netbeans-XXX-windows.exe --extract
then run
java -jar bundle.jar
Netbeans won't work properly with jdk version 10. Install jdk 8u/17l and everything should go well.
Related
I installed Java NetBeans IDE 12.0 and JDk-16. When I try to create a project using Java With Ant, it get stuck like in the screenshot. When I cancel it, it creates the file but no code in it i.e., no main method is created. Just a blank file.
Does anyone know how to solve this?
From the NetBeans documentation for "Deployment Platforms" for NetBeans 12.0:
Apache NetBeans 12.0 runs on the JDK LTS releases 8 and 11, as well as
on JDK 14, i.e., the current JDK release at the time of this NetBeans
release.
NetBeans may work (or appear to work) with newer JDK releases that are not officially supported such as JDK 16, but you run the risk of hitting unexpected problems.
So if you don't need any Java features released after JDK 14, download and install JDK 14, and add it as a Java platform in NetBeans, using Tools > Java Platforms > Add Platform.... You don't need to uninstall JDK 16.
However, if you really need JDK 16 features then use a different IDE. The latest release of Eclipse, 2021-03, explicitly supports JDK 16.
I had the same problem and was able to solve it in windows by following the steps below:
Uninstall Netbeans 12.4. Make sure to delete all the cache files
(Drive:\users\user\AppData\Roaming\Netbeans and
Drive:\users\user\AppData\Local\Netbeans) (Windows)
Check your JDK 16 directory (no JRE) and environment variables JAVA_HOME, CLASSPATH and PATH.
Install Netbeans 12.4
Create new project and check that you select Download and activate nb-javac.
For me it helped using NetBeans version 12.5 and the JDK 14. After that everything was running smooth.
I had the same problem and upgrading to version 12.5 worked for me.
I am a computer student and I had during my internship in a company, develop a small java software using JavaFX, maven, and apache.poi.
Info: The application works on Intellij and builds perfectly, my problem concerns the *.jar that I generate once the project is finished.
I first used JDK 14 and JFX14, however at the time of the execution (java –jar xx.jar) I had an error saying that I was compiling the program in JAVA 58 (JAVA 14) and that I was using JRE 52 (JAVA 8).
So I modified the project to compile with JDK 11 and JFX 11, and I now have the same error telling me that I am compiling the program in JAVA 55 (JAVA 11) and that I was using JRE 52 (JAVA 8).
The error comes from the fact that my PC uses jre1.8.0_251 by default.
So I tried to launch the program in this way "path_to_jdk11 \ bin \ java.exe" -jar xxx.jar and it works.
So that's my problem:
The majority of users use the version of JAVA offered on the Oracle site, i.e. jre1.8.0_251 which is the latest version available. Outside my program requires Java 11, which is not deploying on corporate PCs, I imagine.
I tried to port my project to java 8 but I have errors with Maven and the module.info.java.
Do you have a tip for deploying the *.jar or deploying it in .exe so that it can run with a user who has jre1.8.0_251?
Respectfully
Don't try to build a fat jar. It won't work with modern Java. Instead build a real installer. This can be done easily with JDK 14+. Just follow this tutorial https://github.com/dlemmermann/JPackageScriptFX which covers everything you need. This uses jpackage from JDK 14 and some other tools from it and also works with non-modularized projects. When you install JDK 14 just make sure you set JAVA_HOME and your PATH correctly so that all the tools find the correct version of Java for building.
I had installed Apache NetBeans 11.2 whereas my JDK was 13. I was facing lots of issues such as in my java ant web project if I run a simple java code to print hello it would show virtual machine not found error whereas the same program would run without any issue in a normal java ant project. So I was wondering is this some compatibility issue?
Also, I find derby useful for my small project but it was not included in jdk13 as in its previous versions.
JavaDB was removed in Java 8 update 181. JavaDB is no longer shipped with Java Runtime Environment.
I understand that Java Web Start is deprecated and not present in Java SE 11 and later.
I bumped into the Red Hat distribution of OpenJDK which says "OpenJDK 11 Windows installer includes an additional component - Web Start deployment protocol implementation based on IcedTea-Web open-source project." Red Hat's OpenJDK Overview. I thought "well they added it".
I downloaded it but in /bin there isn't any trace of javaws.
I also downloaded the OpenJDK 8 from Red Hat, and again, no trace of javaws in /bin. I downloaded the Reference Implementation builds of Java SE 8 from Oracle from https://jdk.java.net/java-se-ri/8 and again, no trace of javaws.
What am I missing?
P.S. despite a programmer, I know nothing of Java
Please turn to icedtea-web project. It is independent project, and in one way or another, it is what all distros are packing as javaws - http://icedtea.classpath.org/wiki/IcedTea-Web
In Red Hat Java 8 there are TWO downloads available for WINDOWS:
zip
msi
The MSI version does NOT contain the \webstart folder.
The zip version DOES contain the \webatart folder.
\redhat\java-1.8.0-openjdk-1.8.0.232-3.b09.redhat.windows.x86_64\webstart\javaws.exe
Separately, unlike Oracle Java, openJDK does NOT have a Java console that shows output from the app when running.
But that output is written to a txt file. FOUND IT here:
https://access.redhat.com/documentation/en-us/openjdk/8/pdf/troubleshooting_openjdk_8_for_windows/OpenJDK-8-Troubleshooting_OpenJDK_8_for_Windows-en-US.pdf
C:\Users\XXXXX\AppData\Local\RedHat\java-1.8.0-openjdk-1.8.0.232-3.b09.redhat.windows.x86_64\webstart\javaws_last_log.txt
When I try to install NetBeans 8.0.2 on my PC (Win10-64bit) I get the error message:
despite that I already installed JDK 9.0.1, as evident in the command prompt:
My path variables are set as follows:
AFAIK Netbeans which supports JDK 9 is yet to release (i.e, Netbeans 9.0 which is in development mode).
And the documentation states this.
By: jkovalsky, 09 Oct 2017
If you have downloaded JDK 9 recently and try to convince your NetBeans 8.2 IDE to run on top of it we will probably disappoint you, because 8.2 version is not designed to work with JDK 9.
In order to use JDK 9 happily you will need to download a NetBeans 9.0 development build from Apache Incubator. For more information please read Geertjan Wielenga's post on Using Apache NetBeans IDE.
Thank you!
NetBeans team
I've also faced the same issue with Netbeans 8.2 (but you're trying with Netbeans 8.0.2). So, I installed JDK 8 and the Netbeans installation went fine.
Still if you want to use JDK 9 you can install it alongside with JDK 8. But you need to set JDK path as JDK 8 in the system path (like you did for JDK 9). While installing Netbeans select JDK 8 installation path as JDK for Netbeans.
I hope it'll be helpful.
As mentioned, you are getting error when trying to install NetBeans, in that case you can specify the JDK at command line
<netbeans_installer>.exe --javahome "C:\Program Files\Java\jdk1.9.0"
FaqSuitableJvmNotFound