how do you get a jre installed in eclipse/springsource toolsuite? - eclipse

For some reason, when I go to add a JRE to eclipse/sts and give it the location of the JDK 1.6.0_22, it says:
Target is not a JDK root. System library was not found.
I am giving it this folder, which is accurate and works for everything else:
/opt/jdk1.6.0_22
But it is the jdk root. IDEA thinks so. Every other APP on the planet thinks so too. Aside: God, I really hate eclipse. This is why I never use it, because nothing works like it's supposed to. I just want to try Spring Insight out, so that's why I am using STS...
I am on Ubuntu 10.10 if that makes any difference.
Please help. I think I can finally get this to work if I can just get STS/Eclipse to stop being stupid :/

Are you sure you are pointing to the JDK folder and not the JRE folder ?
You must select the root folder of the JDK installation.

On Ubuntu (10.04, Lucid Lynx) I ran into this same problem. I was pointing at a directory that was a symbolic link (logical) to the actual JDK directory. I got around it by pointing directly at the physical JDK directory (this is going to be an issue when Java upgrades, but its the best I could figure out).

On a default install of Ubuntu, even though there was a JDK folder, I noticed it didn't have the right stuff.
I had to install the JDK using apt-get as follows
apt-get install openjdk-7-jdk

Related

Mac OS: can't install Eclipse [duplicate]

I have formatted my Mac due to some storage issues. Before this, I used Eclipse in a proper way. Now i have installed the JDK
Then, i have installed Java
Until now everything seems to be correct but when I open the Eclipse installer...
What can I do to fix this? I need to work with this the soon as possible.
Thanks
Eclipse on macOS will not start with Java 14 installed, this is being tracked in Eclipse bug 561273.
Installing Java 8 as well does not help. You need to remove the Java 14 install. You could use the Java 13.0.2 release instead.
Eclipse have determined that the root cause of this issue is a change in Java 14 which is described in this bug report JDK-8238225. The fix for this should be in Java 14.0.1
Update: Eclipse runs fine with Oracle Java 14.0.1 so the issue has been fixed.
I also asked this question which was closed, that's why I answer what I have found out: Eclipse will not install on Mac OS Catalina 10.15.4, saying the above error message
Failed to create the Java Virtual Machine.
Deinstalling jdk and install an older one wouldn't help on its own because Eclipse is refusing to install in the first place (as mentioned above). What I have done:
i´ve installed an JDK with boost (you can try several, mine worked with Version 13)
I edited the installer:
Download the dmg file
convert the dmg-file with "hdiutil convert /dev/disk3s1 -format UDRW -o devimage"
mount the converted dmg-file with: "hdiutil attach -owners on devimage.dmg -shadow"
Edit the /Volumes/Eclipse/Eclipse.app/Contents/Info.plist: there is a section which is commented and there you can try the jdk version. You have to give the full path to the java executable, for example:
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/bin/java</string>
Then my eclipse started from the (already) mounted Eclipse image without complaining
I had the same issue myself a while back. In your Eclipsepedia it provided an example of what the eclipse.ini file looks like when your trying to specify a JVM. So just change the eclipse.ini file and then make sure that you have all of the correct documents in that path to match the example.

Netbeans 7.2 not starting

I recently installed Netbeans 7.2 beta and it worked fine. Then I installed Netbeans 7.2 final release on top of beta and during the installation, Netbeans 7.1 and Netbeans 7.12 were there. Now when I launch Netbeans, it does not go beyond "loading modules" stage. Simply the Netbeans screen disappear few seconds after the launch. Then I did the following.
Uninstalled all the Netbeans versions and re-installed Netbeans 7.2
Deleted AppData/Netbeans folder
Deleted User/.nbi folder
Searched the registry and deleted Netbeans related entries. (But only one entry was found)
Deleted Netbeans Folder in Program Files folder.
Uninstalled and Re-installed in a separate drive.
Uninstalled and Re-installed under another user account.
None of the above worked, the only thing I did not try was to re-install the Windows XP operating system.
It there any option to try before re-installing the operating system?
I was having the same problem .... with netbeans 7.2 ,go to user/appdata/roaming/7.2/modules/ and delete all the jar files except docs,ext,locale folders ... and start the ide again... basically the problem betides when u update the ide after update when u start the ide it stuck to the loading module phase.
First of all, you need to check proper version of JDK is installed.
Netbeans 7.2 requires JDK 1.7, not 1.8.
You can check {Netbeans Install Path}/etc/netbeans.conf. There find netbeans_jdkhome and its value. Make sure you install JDK1.7 and this line netbeans_jdkhome="C:\Program Files\Java\jdk1.7.0_25" for example.
If not, change the value to proper installation path.
That's some stability issue with NetBeans 7.2
Just Kill and Restart the IDE and it should be fine.
Make sure that right JDK directory chosen in the installation wizard if you not sure you can change it from
C:\Program Files\NetBeans {netbeans version}\etc
you will see a file which is
netbeans.conf
edit it(I am using Notepad++ for that)
At the bottom of the file, you will see a line
netbeans_jdkhome="C:\Program Files\Java\{jdk directory you want}"
make sure it is valid JDK and it is JDK, not JRE
I had the same problem, make sure you have the required JDK version configured during the installation process.
First tried everything to no avail, finally I had to uninstall NetBeans 7, then install NetBeans 8, which also aligned with my JDK 8. This resolved the issue for me. Hope this helps others.
Ah, finally this worked with me on version 11.3, delete this folder, then run the program again
C:\Users\Dell\AppData\Roaming\NetBeans
here my main username is Dell, yours can be different ofcourse
I found out in my Windows installation of Apache Netbeans 12.4, the file 'tctracker.properties' in 'C:\Users\user\AppData\Roaming\NetBeans\12.4\config\Preferences\org\netbeans\core\windows' was filled with null values. I fixed the issue with letting netbeans generate a new file by moving this '12.4' directory to somewhere else on the disk, starting Netbeans, letting it generate a new 'tctracker.properties'-file, stop it, replace the corrupt file in with this newly generated file and put the '12.4' directory back in place.

Pydev missing after upgrading Eclipse on FreeBSD

I recently updated my ports on my FreeBSD 9.0 release machine and I think eclipse was upgraded due to a port upstream forced Eclipse to be rebuilt. Now Pydev is gone. I tried uninstalling then reinstalling Eclipse, then installing Pydev using pydev.org/updates inside Eclipse. It appears to install ok but I can't create a Pydev project or use the Pydev view. I tried removing my ~/.eclipse folder to force the creation of a new one, and reinstalling Eclipse and Pydev to no avail. What am I doing wrong? I'm running Eclipse Indigo version 3.7.1 build id: R3_7_1
This question was most similar to mine, but the solution didn't work for me. I also tried pointing my install site as: http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml per another question on StackOverflow, to no avail.
After some more testing I finally got the newest FreeBSD port to work. I had to launch and install the plugins as root. It didn't work another time I ran it but, this great troubleshooting document helped out. I methodically went through each step one by one, and the logs indicated there was an error on my /usr/local/lib file it was trying to unzip. My user doesn't have write access to that directory but root does. I don't know why it didn't work the last time I ran it as root, perhaps I didn't install the plug-in as root. It works now, so I'm happy. Thanks Fabio, for your input.
I'm not sure how FreeBSD packages things, so, maybe an easy way out would be getting Eclipse from Eclipse.org and installing PyDev on that fresh install (or if you're also doing web stuff, I'd suggest grabbing Aptana Studio 3, which comes with PyDev preinstalled, so, you don't have to worry about configuring it).
See: http://pydev.org/download.html for details

Mac OS X Java Update: where is my jdk?

I've installed on my iMac (Mac OS X 10.6.6) the Java update which contains the version 1.6.0_24 of the jdk. I think this update has changed the directory structure of the jdk, so now I'm not able to configure it on eclipse.
Before the update my eclipse were linked to this path: /System/Library/Frameworks/JavaVM.Framework/Versions/Current/Home which actually seems wrong.
Now I'm not able to link my eclipse to the jdk. Maybe this is the right path: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home, but 1.6.0.jdk isn't a directory, so I'm not able to choose it in eclipse.
Has anyone experienced this problem? How can I solve it?
For me following jdk link is working fine on Eclipse:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
It was my fault. I had also a jdk 1.5 manually installed and the update moved it away.
Probably I made a mistake restoring my jdk-1.5 to its correct location.
To solve my issue I just had to restore the symbolic links /System/Library/Frameworks/JavaVM.Framework/Versions/CurrentJDK, which has to point to /System/Library/Frameworks/JavaVM.Framework/Version.
the follow directory works:
/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home
without "System"
Execute /usr/libexec/java_home on the terminal shell.
It will display a list of all your installed JDKs
On MacOSX 10.10, jdk 1.8 with IntelliJ, I use:
/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/
I was missing CurrentJDK folder as well, but I'm running Mac OS El Capitan.
In El Capitan it's not possible to modify the folder /System/Library/Frameworks/JavaVM.framework/Versions, since it is under the /System folder and SIP is protecting it (you can disable SIP, but I do not recommend), a custom CurrentJDK soft link is not allowed.
I got some legacy software which was searching for CurrentJDK, and there was no way to update the path. To solve it I had to install Java for OS X 2015-001 provided by apple (it's Java 1.6), which fixed the Versions subfolder structure by pointing to the old Java 1.6. Not the best, but it fixed my error!

In Netbeans 6.8 cant find org.netbeans package

I have netbeans 6.8 with java ME platform setup on my ubuntu 9.10.
My code requires the package org.netbeans.microedition.lcdui which is either not installed or not in the path.
Surprising this runs perfectly in netbeans 6.8 on windows on my friend's pc.
Is there any java ME plugin I need to install?
Can somebody help me out with this?
Thanks in advance.
Sounds like netbeans_midp_components_basic.jar is missing from your NB install for some reason.
Try get netbeans_midp_components_basic.jar off your friend's PC (under [NetBeansRoot]/mobility8/modules/ext) and put it in your own install in the same path. Or add it to your project's build path.
If the file netbeans_midp_components_basic.jar is missing, some others might be missing too which will cause problems down the line. So a better way I'd suggest a reinstall, double checking that you get the NB6.8 that's bundled with the mobility pack.