How do I stop NetBeans from "popping up "invalid jdkhome specified" window - java

I previously had JDK 9 installed. Because of the issue NetBeans has with JDK 9, I deleted JDK 9 from my computer and installed JDK 8.
Now, Netbeans doesn't have any issue anymore, except that it pops up this window whenever I open NetBeans. If I click yes on window, everything works fine. It just bothers me I have to click it every time I open NetBeans.

As the link in the OP comment points out, the cause of the problem is almost certainly an invalid value for netbeans_jdkhome in file netbeans.conf:
netbeans_jdkhome="C:\Java\jdk1.8.0_161"
Make sure that the string value references a valid JDK8 installation. (File netbeans.conf resides in the etc directory directory directly under the NetBeans installation directory.)
However, there are also a couple of other configuration settings worth checking:
Select Tools > Java Platforms and verify that the Platform Folder is valid:
Select Tools > NetBeans Platforms and verify that the Platform Folder is valid:
As a related issue, although NetBeans 8.x does not support Java 9, you can download a beta version of Apache's NetBeans 9, which supports both Java 9 and Java 10, from the Apache NetBeans site. Note that:
Installing NetBeans 9 has no impact on your NetBeans 8.x installation.
You can safely run NetBeans 8.x and NetBeans 9 concurrently.
Update:
Try the following if you get an "access denied" error when updating netbeans.conf on Windows:
Close NetBeans, then open netbeans.conf in Notepad.
Make your changes and then save the file to any temporary location such as C:\temp.
In Windows File Explorer move that file you just created to the NetBeans 8.x target directory (e.g. C:\Program Files\NetBeans\etc) to overwrite the existing version of netbeans.conf.
Restart NetBeans.

Related

Cannot detect and install the selected platform. The java or javac may not be executable

I have recently installed netbeans 11. And open an existing maven project which is run properly on netbeans 8.2.That project runs on jdk1.7.In netbeans select manage platforms and I want to add jdk 1.7, there is error like that
Cannot detect and install the selected platform. The java or javac may not be executable.
I was facing same issue , was not able to add jdk 8 on netbeans 12.2.
In windows normally user do not have write access on "Program Files" folder , make sure if your netbeans is installed in Program Files directory run it as Adminstrator and then try to add new platform it will work.

Using the correct JDK or changing default in Netbeans on Linux OS

Disclaimer: I am new to Java, new to Linux, and new to Netbeans - apologies for any over/under explanation - please ask and I will add/remove info.
I have a model written in Java in Netbeans 8.2 that has been successfully running in NetBeans 8.2 on Mac OS. This version of NetBeans was downloaded with JDK8u171 (JDK/Java package).
All components of the model have successfully transferred through FTP (filezilla) to a remote Linux machine.
The Linux machine has a copy of Netbeans 8.2 and has java/1.8.0-oracle (and 1.6.0 and 1.7.0), and has java/1.8.0-openjdk (similarly, 1.6.0 and 1.7.0 also).
I am assuming that 1.8.0-oracle is the equivalent of JDK8u171 but I may well be wrong.
When I load netbeans using
module load java/1.8.0-oracle
module load netbeans
netbeans
The program opens (via remote desktop - x2goclient), and I can search for the project and open it.
Once open, I see:
'myprojectitle (broken)' in the project window on the left of the NetBeans GUI
right click -> resolve problems
...opens a screen saying
'The JDK is missing and is required to run some NetBeans modules Please use the --jdkhome command line option to specify a JDK installation or see http://wiki.netbeans.org/FaqRunningOnJre for more information.'
Does this mean I am using the wrong jdk/java package?
Or is the jdk package configured incorrectly in Netbeans, if so how can I reconfigure?
Any help would be greatly appreciated.
The solution to this was found at
The JDK is missing and is required to run some NetBeans modules
Whereby, java/1.8.0_171 needed to be installed and then netbeans needed to be opened as follows:
netbeans --jdkhome /path/java/1.8.0_171
Apologies for a repeat, but hopefully this answer can either redirect or offer a solution

Netbeans: JVM Creation fails after changing default JDK

I have installed Netbeans 7.1 and its default JDK is version 1.6. Since I want to change it to version 1.7, I changed the following code in etc/netbeans.conf file
netbeans_jdkhome="C:\Program Files (x86)\Java\jdk1.6.0_06"
to
netbeans_jdkhome="C:\Program Files (x86)\Java\jdk1.7.0"
since JDK 1.7 file name is jdk1.7.0
After changing the file path when I reopen Netbeans, an error message will print as "JVM Creation failed". So I changed the file path back to the previous one and Netbeans started without giving an error message.
How can I change the default JDK version of Netbeans to 1.7?
Right click on the project, go to properties, go to libraries option, click on the manage platforms button, if you don't have Java 7 add it or else select the platform.

Clicking on Eclipse Icon in Launchpad (Mac) doesn't launch it

I'm new to Mac OS and I would like you to help me a bit with Eclipse Kepler 4.3 IDE
I drag the eclipse folder after having uncompressed it inside of the Applications folder. The icon appears in the Launchpad but when I click on it, nothing happens.
I had removed the Java v 1.6 that Eclipse needed at the first installation because I had already installed Java v 1.7 (JDK). At the second installation, it didn't ask for anything in Java but the icon still doesn't work.
The only way I can launch Eclipse is by clicking on the eclipse alias in the eclipse folder.
Do you know how to help me ?
The problem here is that you uninstalled Java 6. When you installed Eclipse, the .app file was configured to run on Java 6, and when that is gone, it won't work. The solution is to reinstall Eclipse.

windows xp 32-bit netbeans issues

I currently have a windows xp 32-bit with JDK 7 installed. I previously had installed netbeans IDE 7.1.3 Java SE kit, but deleted it so that I could download the full version. However, every time I have tried to download any version of the netbeans IDE, it says that either all the programs are already installed or that it just simply couldn't download the programs. I have searched around through my programs and found nothing netbeans-related, except in the add or remove programs, where it shows the netbeans IDE 7.3.1. I've tried several times to delete it, but it consistently fails. I'm fairly new to programming, so any help would be much appreciated.
NetBeans also installs to the AppData folder, on Windows XP it's located in:
C:\Documents and Settings\[[UserName]]\AppData\Roaming\NetBeans
And on Vista and later for others with this problem:
C:\Users\[[UserName]]\AppData\Roaming\NetBeans
Replacing [[UserName]] with your current User profile name. This folder must be removed to completely reinstall NetBeans.

Categories

Resources