Can't install NetBeans on MacOS Big Sur - java

Trying to install NetBeans 12.0 on MacOS. I have JDK 11 installed through SDKman. Several answers on this site alluded to checking if JAVA_HOME variable is set, and entering echo $JAVA_HOME gives the output /Users/demon/.sdkman/candidates/java/current, meaning I do have the JDK installed, however both the CLI and GUI installer show the error :
*The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
installer: Error - NetBeans IDE cannot be installed. This software can be installed with Java 8 or newer. Please download and install the latest update of Java 8 from http://www.oracle.com/technetwork/java/javase/downloads/index.html and restart NetBeans installation.*
How do I resolve this?

Related

NetBeans Installation

Is it true that just JDK version 7 could be used to install NetBeans IDE 8.0.2?
On my device, I have been installed the last version of JDK, but while I am installing Netbeans, a message appeared to tell that I have to install JDK. In other words, Netbeans didn't recognize that there is already a JDK and successfully installed !!
NetBeans 8.0 runs just fine with Java 8.
If NetBeans doesn't detect or find your JDK, you can always provide the location on the command line when starting NetBeans, e.g.:
netbeans64.exe --jdkhome c:\Java8
I have never used the NetBeans installer, but I think you can pass that parameter to the installer as well.
Once, installed, you can also edit conf/netbeans.conf and un-comment the line #netbeans_jdkhome="/path/to/jdk" and make it point to your JDK:
netbeans_jdkhome="c:\Java8"
The Java SE Development Kit (JDK) 7 Update 10 (or later) or JDK 8 is required to install NetBeans IDE.
As seen on NetBeans 8.0.2 Installation Instructions it seems you really have to be on JDK 7 or 8.
While installing one of those versions, remind yourself to set the PATH variable.

Can't download JDK 8

I'm trying to setup Unity to build for Android. But I can't get the Java Development Kit. Can't download it and can't find it either.
In this answer, the guy says
To ensure JDK is installed, just go through the following :
press Win + R
type 'cmd' in the popup and press button OK.
in the console which has opened, type javac -version and press enter.
You should see as an output :
javac 1.8.0_XX
If so SDK is installed.
I did that and I got "javac 1.8.0_XX", and so I assumed I had the JDK, so I went to Unity > External Tools > JDK and tried linking the following path: "C:\Program Files\Java\jre1.8.0", and got the error message: "The path you specified does not look like a valid JDK installation. Android development requires at least JDK(1.7), having JRE only is not enough. Please make sure you are selecting a suitable JDK home directory or download and install the latest JDK: link"
I clicked the download link for windows x64 and it never loads and eventually says there's no connection. I tried the x86 as well.
In this SO question How do I find where JDK is installed on my windows machine?
Answer: For windows, in the command prompt:
c:\> for %i in (java.exe) do #echo. %~$PATH:i
And so I did that and got the path "C:\ProgramData\Oracle\Java\javapath\java.exe"
When I try linking via Unity > External tools > JDK it doesn't find any files.
I'm a bit clueless now.
#RealAnyOne, you have installed Java with JRE only installation i.e., without out a JDK that’s what you see only one folder and this is why it also showing version in the command line since it won’t check for JDK. JRE is Java Runtime Environment, JDK is Java Development Kit which contains many essential libraries. So Ideally there should be two folders JRE and JDK. This is the reason you are getting this issue with Unity.
To Fix::
Uninstall old Java 8
Download Java 8 from the oracle website
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Install it. Now you should have two folders. Then point your Unity to it.

Tizen Install on Windows 10 will not recognize JDK 9 installed

I am attempting to install the 64-bit version of Tizen SDK on my Win10 Home Laptop. However, every time I get the error that I either don't have java 8+ installed or that the JAVA_HOME environmental variable isn't set right.
Now I've read other questions on this, and I've set the JDK directory as first in the "Path" environmental variable. I've added the JAVA_HOME environ. var and pointed it at my JDK directory. I've rebooted twice throughout this (just in case).
I tried to install the 32-bit version of Tizen SDK, but immediately got the error that I'm not on a 32-bit OS.
I have d/l and installed Java 9 SDK and JRE. They're in
C:\Program Files\Java\jdk-9 &
C:\Program Files\Java\jre-9 respectively.
Here's my Path variable:
Path Variable Image
Any help would be mucho appreciated!
Response on Oct, 2017:
** So far Tizen studio installer can't recognize new version of Java. **
You need to install Oracle Java 8 for now.
Additional Checklist:
[✔] Tizen developers site states "Do not install OpenJDK". Make sure you are using OracleJDK instead of OpenJDK. Related links you might see:
Forum Post
[✔] There's a Tip&Tech document on Tizen Developers
Community called 'Guide for Setting JDK'. As you are having Issues, You may check it out.
Tizen: Guide for Setting JDK
[✔] I expect you are using the Latest Tizen Studio 2.0.
Latest Tizen Studio Download Link
Cause history says, Java compatibility Defers with IDE versions:
Tizen-sdk-for-wearable-setup Installation issue because of JAVA HOME
Edit on March, 2019:
Tizen-Studio now supports OpenJDK 10
To use Tizen Studio install Oracle Java Development Kit (JDK) 8, JDK 9, or OpenJDK 10 .
Prerequisites for the Tizen Studio
OpenJDK 10 and OpenJFX Installation Guideline on Tizen Developers Site
I was stuck there for a while, too. In addition to setting JAVA_HOME to C:\Program Files\Java\jdk-12.0.1 (no bin at the end), I also added C:\Program Files\Java\jdk-12.0.1\bin to the beginning of PATH; then it worked.
I've had the same problem, therefore i installed JDK8 from oracle website and the installer works fine. (no need to reboot) If you don't need specific JDK9 stuff, go with 8 and you will be good to go. Don't forget to update JAVA_HOME and Path to point to JDK8.
I have set as user variables CLASSPATH set to C:\Program Files\Java\jre1.8.0_144\lib, JAVA_HOME set to C:\Program Files\Java\jdk1.8.0_144
As system variables i've added to the existing Path this value C:\Program Files\Java\jdk1.8.0_144\bin and JAVA_HOME the same as above (even though i'm not sure the latter one is required).
PS. I have both JDK8 and 9 installed and Windows 10 64bit. I tried installing Tizen on debian using JDK9 and i got the same error, i'm sure that using JDK8 will work (need to check installation on OSX though)
Cheers!
On my M1 Mac with macOS 12, I was having trouble getting the Tizen package manager to run. It kept giving me:
Java Development Kit (JDK) was not found on your computer. To use the Tizen Studio, you need to install the JDK 8 or later. Please go to http://www.oracle.com/technetwork/java/javase/downloads and download a JDK.
Deleting ~/.package-manager solved the issue.
In my case adding "C:\Program Files\Java\jdk-12.0.2\bin" (with the quotes) to the PATH did the trick, i.e. the installer run successfully
Information on the tizen website is incomplete. On Windows 10 using OpenJDK follow the article and you need to enter another environment and system parameters after adding Java_home.
Parameter is "PATH" value is "%JAVA_HOME%\bin" otherwise Tizen Studio installation wont recognize it.
I download the IDE of version 3.2 and install the open jdk10, IDE can load successfully, but load the emulator failed when click the tools -> emulator manager.
error: could not create the java virtual machine.
my setting:
path: %JAVA_HOME%\bin
JAVA_PATH: c\jdk-10
what's the problem here? please give some suggestions.
The only thing that worked for me in the end was:
Uninstall the recent Java version and install Java SE 8u231.
After that, I tried Tizen 1.3, and it worked.
I don't know if the newer versions works, but the above worked for me for now.

Issue installing Netbeans in Windows 10: Java SE Development Kit (JDK) was not found on this computer [duplicate]

This question already has answers here:
How can I install Netbeans with JDK 10
(3 answers)
Closed 3 years ago.
I'm trying to install the TMC Netbeans version on Windows 10. I'm getting this error:
Java SE Development Kit (JDK) was not found on this computer
JDK 7 is required for installing Netbeans with TMC 1.1.8. Make sure that the JDK is properly installed and run installer again. You can specify valid JDK location using --javahome installer argument.
I got the same error using the regular version of Netbeans. I know it is installed correctly because I got IntelliJ to work just fine. How do I fix this issue? I've been searching for answers, but I haven't found anything for Windows 10?
Also, I have JDK 9 installed.
Download and install jdk-8u181.exe for Netbeans 8.2 to install properly. Its a requirement under the Netbeans 8.2 installation instructions
Netbeans with JDK
https://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-3413139-esa.html
Open cmd > Change directory to wherever your netbeans executable installer is present > type {name of the netbeans executable installer}.exe --javahome"C:\Program Files\Java\{name of the jdk folder}
This worked for me.
Took me some time to overcome this. This is what I did:
1.During installation of JDK change the path from jdk-9.x.x to jdk
2.open netbeans installer location in command prompt and type:
netbeans.exe --javahome "C:\Program Files\Java\jdk"
Just install java 8. because java 10 is not work properly with netbeans
I think you setting Environment variables for java wrong. You should check Environment variables for java installation
JAVAHOME : C:\Program Files\Java\jdk-9.0.4
path : C:\Program Files\Java\jdk-9.0.4\bin
On Win10 I tried this and it works:
1. jdk-8u181-windows-x64.exe
2. netbeans-8.2-windows.exe
This works.
Else, with JDK 10, I got everytime the error message listed in this Topic.
Just install java 8. Because java 10 is not work properly with netbeans.
Download and install jdk-8u181.exe for Netbeans 8.2 to install properly.
I just had the same error.
I downloaded the netbeans IDE then downloaded the JDK, still had the error.
I restarted my computer and tried the installer again and it worked.
Download and install:
a. jdk-10.0.2_windows-x64_bin;
b. jre-8u181-windows-x64
c. netbeans-8.2-windows.

How to install Netbeans 7.4 on mac os mavericks (with jdk 7 update 45 already installed)?

I am trying to install Netbeans 7.4 on my mavericks mac os system but I get this very strange message at the start of installation :
No JDK found
NetBeans IDE cannot be installed.
Java (JRE) found on your computer but JDK 7 update 10 or newer is required.
Please download and install the latest update of JDK 7 from http://www.oracle.com/technetwork/java/javase/downloads/index.html and restart NetBeans installation.
What is so strange here is that I have already installed jdk 7 update 45 on my system, since I use it to work on projects made with IntelliJ Idea, the other IDE that I use.
Update1 : Here is what java -version gives
Update2 : System Preferences --> Java
Are you sure that you are not confusing jre with Java development tool kit a.k.a JDK. You may have jre but may not have JDK.
Try this and let us know the JDK version .
Open the terminal in OSX and type this -
java -version

Categories

Resources