Unable to access modules in netbeans; says I need to download JDK - java

I have been doing a java course from https://java-programming.mooc.fi/ using net beans and the application called tmcbeans it made me download. However, a couple days ago I updated my MAC software to Mac OS Big Sur and I have been getting an error that says
"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"
I tried going to the website listed but I was unable to find a link to download the full JDK and I tried downloading through https://netbeans.apache.org/ but I am still recieving the same errror.
Any feedback is helpful, I am very new to coding and would like to get back to it as soon as I can.
Thank you!
Below is an image of the error I recieve

Related

Eclipse not working on Mac, Java application is missing somehow

so here is the thing, I accidentally deleted Xcode completely and honestly, I don't know if this has to do anything with my problem.
Today I tried to launch Eclipse but then I got an alert saying "failed to create the java virtual machine". I checked my applications and I found out that Java application is missing.
I did install Java again and launched Eclipse, this time eclipse worked but right away two problems occurred (see the attached photos)enter image description hereenter image description here.
Can someone PLEASE tell me what is going on and how to fix such a thing?
Read the Eclipse bug report and upgrade to the latest version of Eclipse.

Unable to install JDK - malformed configuration file

I have thouroughly scoured the internet for anyone who has encountered the same error as me but to no success. I also checked this website for any previous threads asking a similar question and found nothing helpful.
I want to install a Java Development Kit (JDK) which I need to do in order to program a mod for Minecraft. I've downloaded: 'jdk-8u5-windows-x64' from the official Oracle website as I was instructed to by a person's tutorial. The guy said that installing the JDK is "pretty straight-forward" and that all you have to do is "download the executable and run it, and it will install everything for you".
Here's the problem/error. When I open the exe. for the JDK installer I get the following error:
https://i.stack.imgur.com/Exqxj.png
And when I go to the directory I see this:
https://i.stack.imgur.com/2sSB0.png
Notes that may be of interest:
I have previously installed and uninstalled versions of Java in the past.
I'm using this JDK for the program 'Eclipse' which I have recently re-installed.
I have no idea what I'm doing.
Thank you all very much, it's fixed now. I found a folder with a previous version of JDK that I had installed in the past and deleted that. I then navigated to the directory that it gave and deleted the configuration file it was complaining about.
Deleting the file allows it to be regenerated but the error is telling you the actual issue.
If you look at line 1 in your java.settings.cfg, you will see that it doesn't match the Oracle flags. How this happens I don't know but I noticed it installing Java 9 JDK on a new machine.
On an installation of java 8, I had the settings line 1 as "AUTOUPDATE=0"
But if you check the config guidelines.
You will see the actual pair should have 'AUTO_UPDATE not AUTOUPDATE'.
You can delete the file but you are deleting your configuration and hoping it rebuilds correctly.
I had similar issue... I went to that directory it is complaining about in your screenshot.. and I deleted that file. After that, the installer worked. The directory won't show up -- so you have to type it to navigate to it. https://i.stack.imgur.com/Exqxj.png

JAVA_HOME issue. JDK Seemed to not be installed correctly

I am trying to get Android Studio installed on Cent OS 6.5. I have downloaded and unzipped the package to /usr/share/applications/Android-studio/.
I have installed jdk 8 in /usr/share/applications/ (as I understand you just unpack it there, no need to compile or execute anything...?)
I have appended /etc/profile with "JAVA_HOME=/usr/share/applications/jdk1.8.0_1118"
When I execute the studio.sh file the app begins to run (I see some Java messages in the shell) then I get the error:
"JDK Required: 'tools.jar' seems to be not in Studio classpath.
Please ensure JAVA_HOME points to JDK rather than JRE".
I think this means something is wrong with my JDK files but I don't know what. I have followed multiple tutorials online about how to fix this error including the guides on Android studio and Oracle's websites and as far as I can tell I've done everything correctly, but I am still getting this error. What am I missing?
Thank you for your help.
After looking through some answers to similar questions (that didn't receive any votes so I had overlooked them previously) I solved the issue. I had to copy the 'tools.jar' file from /usr/share/applications/jdk1.8.0_1118/lib to /usr/share/applications/android-studio/lib. That did it. It is up and running. Apparently this file is missing from the package downloaded from the android studio website. I hope they fix that soon and save future users hassle.

Unable to install jdk-8u101-windows-x64 in system

After uninstalled the java in my computer, i have downloaded latest version jdk-8u101-windows-x64.exe and tried to install it. but unfortunately at end of installation i got the error code as,
Error message which i got during installation
I have followed the steps as described in the java help site. but nothing gives me the solution. Because of this i cant even launch the Eclipse to code.
From Oracle site,
This is a known issue.
Error 1603: Java Update did not complete.
WORKAROUND This is a known issue, and we are still investigating the
root cause. Meanwhile you can try the following to install Java.
Workarounds:
Option 1: Restart your system and uninstall old versions
Option 2: Disable Java content through the Java Control Panel
You can follow more detailed steps from this official link.
Follow the link, it is an issue with Java it is under investigation
https://www.java.com/en/download/help/error_1603.xml

Error could not find Java SE Runtime Environment / Start from scratch

I wanted to develop an android app a few months ago, so I followed all the steps from here-> https://developer.android.com/training/basics/firstapp/index.html?hl=p and I believe I downloaded all the tools I needed. I never got around to developing anything, so I tried starting again a few days ago. When I went to the above mentioned website, it said download the new versions of this and that, so I did. I tried following the steps, but now when I try to open eclipse, I get an error saying:
"Error could not find Java SE Runtime Environment".
My questions are:
How do I delete everything and start from scratch? I wan't to delete eclipse, sdk manager, sdk folder, everything. I want to follow the download instructions all over again and see what happens because it did seem to work the first time i tried a few months back.
Do I just delete some programs from control panel?
If this is not easy, how can I fix the error I'm getting when trying to open eclipse?
Edit: windows 7, 64-bit OS, if that helps
That sounds more like a problem of a corrupted Java installation. Check the JAVA_HOME environment variable. If this is empty fix this and try again.
To delete eclipse and the sdk just delete them from where you installed them.
SUGGESTIONS:
0) I assume you're running Windows. Please specify if you're on a different platform.
1) Delete Eclipse.
If you're not using Eclipse for anything else yet, I would strongly encourage you to delete it.
2) Uninstall your Java JDK (from Control Panel).
Download and install the JDK from Oracle: http://java.oracle.com.
3) Download and install the "ADT Bundle for Windows": https://developer.android.com/sdk/
In earlier versions of Android, you had to install Eclipse, the Android Plugins, and the Android SDK separately. I believe this is the procedure your link describes.
The newer "ADT Bundle" saves you this trouble. If Android is the only thing you're using Eclipse for (at least for now), you definitely want the ADT bundle. And you can probably ignore most of the instructions in your link.
'Hope that helps..

Categories

Resources