No javadoc for Java API in Netbeans - java

All my javadoc/method description information in Netbeans has suddenly dissapeared,
I'm not able to find any other cases on Stack Overflow of other people having this issue, but has anyone else maybe had this problem and figured it out, or know what's going on?
Thanks

I had this problem in Eclipse today so hopefully this helps out.
If you go to Tools - Java Platforms, what does it show? It should show your current Java JDK. If not:
1) Verify that you have a JDK installed under C:\Program Files\Java\ or C:\Program Files (x86)
2) If so, select Add Platform and add the JDK folder (e.g. jdk1.8.0_25) back to your platform list
3) If not, re-download and install the JDK and do step 2
Also, you should be able to right click on your Java Project, go to Libraries, and see the current JDK (Java Platform) that is being used.

Related

Everything looks perfect, but Eclipse installer can't install it for a reason that it can't find the JDK

I've tried to install eclipse, but it's connected to the web page displaying the following error and I couldn't install it.
Unfortunately the Java version needed to run Eclipse Installer couldn't be found on your system. You need the following version or a higher version: Java 1.8.0 (64 Bit)
But my JDK version is Aleady 1.8.0_231(64Bit) and i completed setting up the environment variable.
(JAVA_HOME, and Path as System Variable)
Normally, using a different IDE like InteliJ(and it works normally on my computer) can be a solution but it's not possible because I have to submit it as a university assignment using eclipse.
What should I do?
This is my CMD Screenshot with checking JDK version
For anybody else (especially other Koreans) who may be struggling with Eclipse installation, turns out that the installer won't work if your account user name is in Korean. Specifically referring to the name that shows when you run your command prompt (as shown in the poster's image hyperlink) or at C:\Users -- if that name is in Korean, that it turns out that Eclipse installer will not work even if most recent Java is installed and paths are set correctly.
Easy way to get around this issue then is to create another local account with only English characters, and run the installer. Not sure why this happens, but it seems to be a common pattern I noticed with the most recent version of Eclipse installer.
It seems installing Eclipse on the account with English characters only still does not allow Eclipse to run, so I have to be signed into that account if I'm using the laptop. Maybe someone who can deal with this issue in a more efficient way can help us out?
I had a similar problem with AdoptOpenJDK 13 (The PATH and JAVA_HOME variables were correct).
The way I fixed that was simple. I created a eclipse.ini with the following contents in the same directory as the eclipse installer:
-vm
C:\Program Files\AdoptOpenJDK\jdk-13.0.0.33-hotspot\bin\javaw.exe
After doing that, the installer stopped complaining and I could install eclipse.

Configuring SDK in IntelliJ

I have a problem getting my SDK to intelliJ idea, i have downloaded Java SE newest edition, and put it in a seperate folder on my desktop. Whenever i chose it from intellij it just shows an error, Anybody knows a fix?
Check if you have there really the JDK home. If you click to the arrow on the left of your Java SE, it should look something like this (my jdk1.8.0_152 is the proper home folder of a JDK):
Also your Java SE\bin folder should contain the javac.exe file - notice the c at the end of the file name :)
I always download the full installer from Oracle (just search google for oracle java SE JDK download) and then run it. You may specify the destination folder where you want it to be installed, or you rather leave the default (I strongly recommend that).

Java: Getting a "Requires JDK 5.0 or later" error in Eclipse

I have just installed the JDK1.8.0 32 bit version on my computer and that all seemed to work nicely. I then followed the instructions on this stackoverflow page to add tools.jar to the Eclipse (although, to be honest, I'm not quite sure what that means?). I'm still getting the error: "Requires JDK 5.0 or later. Please download it from http://java.sun.com/j2se/1.5/".
Could someone please help me understand what the problem is? Also, please let me know if I haven't given enough information, this is my first attempt at using Eclipse and I don't know if you need any other info.
Thanks
Mike
The Oracle JDK installation does not install Java in the location where Eclipse by default looks for it.
I would suggest that you go to http://java.com/en/download/installed.jsp and follow instructions to get a default Java installation on your system.
Eclipse will then use that to run itself. You can then tell Eclipse about your Java 8 JDK in Preferences -> Java -> Installed JRE's and that it is to be used by default by the projects you write.
Note that there is not full support for the new Java 8 facilities in Eclipse yet. That will most likely come in Eclipse 4.4 scheduled for June (http://wiki.eclipse.org/Simultaneous_Release)
When you make a new project, make sure it's using the JRE you want. You may have to change it from default to "use project specific JRE", and then select the 1.8.

Android SDK and Java

Android SDK Manager complains "WARNING: Java not found in your path".
Instead of using the information from Windows registry, the software tries to search Java in the default installation folders, and fails (I don't install software in program files because I don't like space characters in my paths). Of course I know how to modify the %PATH% environment variable. The question is — which Java does it need?
After installing the latest JDK, I’ve got 4 distinct versions of java.exe file, in the following 4 folders: system32, jre6\bin, jdk1.6.0_26\bin, and jdk1.6.0_26\jre\bin. Size ranges from 145184 to 171808. All of them print version “1.6.0_26” when launched with the “-version” argument. The one in system32 has .exe version “6.0.250.6”, the rest of them is “6.0.260.3”. All 4 files are different (I’ve calculated the MD5 checksums).
Q1. Which folder should I add to %PATH% to make the Android SDK happy?
Q2. Why does Oracle build that many variants of java.exe of the same version for the same platform?
Thanks in advance!
P.S. I'm using Windows 7 SP1 x64 home premium, and downloaded the 64-bit version of JDK, jdk-6u26-windows-x64.exe.
jre6\bin should work. That's what I put in %PATH%.
JRE is the Java Runtime Environmen and JDK is the Java Development Kit).
jre6\bin comes from JRE.
jdk1.6.0_26\bin has the development kit binary files
jdk1.6.0_26\jre\bin has an implementation of the Java Runtime Environment for use by the JDK
Please see Contents of the JDK for more info
Try setting JAVA_HOME pointing to the jdk1.6.0_26 directory. See this post.
Actually I got stuck in this same problem, and although that the above answer should work properly... it didn't work for me.
The only solution that fixed this problem for me is copying the installed jdk folder to folder C:\Program Files\ ... and name that folder Java!
I know that this doesn't make any sense! but that what solved my problem after it make me go crazy.
I hope the normal solutions would help your problem, otherwise; you might think of my ugly solution and I hope your problem gets fixed soon.
Thanks,
Mohamed A.Karim.
What helped me was changing one of Enviroment Variables (right-click on "my computer" then "Advanced system settings" or similar) named PATH. Using function "edit" i added this:
C:\Program Files\Java;C:\Program Files\Java\;C:\Program
Files\Java\jdk1.6.0_29;C:\Program Files\Java\jdk1.6.0_29\;C:\Program
Files\Java\jdk1.6.0_29\bin;C:\Program Files\Java\jdk1.6.0_29\bin\
(one of those is sufficient, but I don't know which).
I have Windows Vista 32bit.
replace "program files' with "progra~1" in your path
I have the same problem, maybe because I installed JDK on E: instead of C:
Solved by creating a run.bat file with these:
set JAVA_HOME="E:\Program Files\Java\jdk1.6.0_26"
set PATH=%PATH%;"E:\Program Files\Java\jdk1.6.0_26\bin"
call "sdk manager.exe"
Works perfectly
Perhaps the path did what I needed

download jdk1.5.0_18 source code

I'm looking for the JDK source code for Java 1.5 update 18 (on win XP). I don't want to install a JDK, I don't want the source code for the entire VM, just the source for the JDK libs, so that when I navigate to a Java class in Eclipse, it opens up the source code.
Is it possible to download just src.zip (or a zip that contains src.zip)? I don't want to install a new JDK/JRE just to get access to src.zip as I'm concerned that this will have undesirable side-effects such as modifying JAVA_HOME.
Thanks,
Don
The best place to go to get old versions of Java stuff is the Archive page. JDK 1.5.0_18 is there.
However, I don't think it is possible to download just the source code ZIP file. But hey, you could always get a friend to download the relevant JDK and copy it onto a CD/DVD for you.
EDIT re your concern about environment variables being changed.
Installing a JDK does not modify the JAVA_HOME environment variable or any other environment variable. Indeed, the JDK / JRE installation instructions explain that you need to update JAVA_HOME and PATH manually.
Sun have always been careful to allow you to install multiple JDK/JREs side-by-side. The only thing of that nature that gets changed by the installer is the version of Java used by your browser's Java plugin. And that only changes if you give the installer permission to change it!!
Below is the source for the latest JDK 1.5 but it seems difficult to find update 18 specifically, at least there is no obvious link :-(
http://java.sun.com/j2se/jrl_download.html
Only place I know of that you can get them is with the JDK. You can grab it here
Installing it shouldn't modify JAVA_HOME
http://download.java.net/jdk6/source/
Is that what you want?
Download the JDK for the release you want to use, and install it.
Then start Eclipse and go to Window -> Preferences -> Java -> Installed JREs, and Add the JDK you just installed, and ensure it has the checkmark!
That should do it (and it doesn't mess with the default java versions and JAVA_HOME and all)

Categories