Getting eclipse to use Java 1.7 - java

I'm running Mac OS X 10.9.1 (Mavericks). I was having a problem getting eclipse kepler to recognize Java 1.7 (u45), which I installed from the Oracle site. System Preferences clearly pointed to this version but eclipse couldn't find it.
I reinstalled Mavericks then installed the latest version of Java (051) from Oracle. Then started kepler and got the following popup:
After searching for a solution and not finding one, I tried a backup version of eclipse: juno. Now I get his popup:
Which takes me to Apple software update, which runs successfully.
Now juno starts ok but with kepler, I get:
And I'm back where I started.
How do I get out of this loop?

My first guess is that installing the Apple Java messed up the Oracle installation. Try reinstalling that one.
Secondly you probably need to get Eclipse to use Oracle's JDK at startup. You can do that from the command line using the "-vm" parameter or patch the JDK's Info.plist as described in this post Eclipse Kepler for OS X Mavericks request Java SE 6.

So I went for the nuclear option. I trashed kepler and got a fresh download. Then installed the Google jdks and plugin. Eclipse now recognized my java 1.7 install and Google plugin happily deploys my code.
I'm glad to be back up an running but disappointed that I didn't learn what went wrong in the first place.

Related

I just installed latest Java SDK/JRE from Adoptium (version 17.0.1)... Where's the IDE?

First time ever using Java. I successfully installed the latest version from Adoptium, which is 17.0.1. I ran the HelloWorld program from the Windows 10 prompt without a hitch. Isn't there some type of IDE or something in the SDK? There's nothing on the windows start menu, and I can't find a JDK executable in the installed directory. What am I missing? Sorry for being such a noob!!

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.

WebSphere Developer Tools 8.0 Not able to start server in modern Eclipse

I am trying to run Eclipse WebSphere Developer Tools with a local WebSphere 8.0.x installation. I also installed IBM's WebSphere Dev server and am having trouble successfully starting each server.
This is because the instructions say that the eclipse.ini should be updated to point to the IBM/WAS/AppServer/jre so that they match up. If you do not do this, the server will start but will spin at 100% because Eclipse can't get confirmation it started correctly. Eclipse warns you about not having the Eclipse JRE match the server JRE version.
I am using Eclipse Oxygen, which is Java 1.8. I installed WebSphere Developer Tools 8.0.x. WAS 8 is java 1.6, as such the server JRE/JDK is 1.6. Why would they make this tool for Eclipse Mars, Neon, Oxygen if you can't ever complete their instructions and make the Eclipse JRE align with the server JRE? Is there a way to get around this? I am wondering what I missed.
Eclipse Oxygen only supports Java 8 and above. You can get the JDK 8 from WebSphere Application Server v9 to run WDT in Oxygen. If you can point me to the instructions that you were following, we can review (and update if needed) to make sure the instructions are clear.

Installing NetBeans 8.0.2 with JDK 9.0.1

When I try to install NetBeans 8.0.2 on my PC (Win10-64bit) I get the error message:
despite that I already installed JDK 9.0.1, as evident in the command prompt:
My path variables are set as follows:
AFAIK Netbeans which supports JDK 9 is yet to release (i.e, Netbeans 9.0 which is in development mode).
And the documentation states this.
By: jkovalsky, 09 Oct 2017
If you have downloaded JDK 9 recently and try to convince your NetBeans 8.2 IDE to run on top of it we will probably disappoint you, because 8.2 version is not designed to work with JDK 9.
In order to use JDK 9 happily you will need to download a NetBeans 9.0 development build from Apache Incubator. For more information please read Geertjan Wielenga's post on Using Apache NetBeans IDE.
Thank you!
NetBeans team
I've also faced the same issue with Netbeans 8.2 (but you're trying with Netbeans 8.0.2). So, I installed JDK 8 and the Netbeans installation went fine.
Still if you want to use JDK 9 you can install it alongside with JDK 8. But you need to set JDK path as JDK 8 in the system path (like you did for JDK 9). While installing Netbeans select JDK 8 installation path as JDK for Netbeans.
I hope it'll be helpful.
As mentioned, you are getting error when trying to install NetBeans, in that case you can specify the JDK at command line
<netbeans_installer>.exe --javahome "C:\Program Files\Java\jdk1.9.0"
FaqSuitableJvmNotFound

OSX Yosemite - JVM Shared library does not contain the JNI_CreateJavaVM symbol

Downloaded OS X Yosemite Beta 3 and I'm trying to run some eclipse based IDE's, namely Titanium Studio and Aptana Studio.
Running into this error message when I try to start the apps. Didn't work on boot, so I downloaded JDK 1.8.0_40, still no dice. It's looking in the proper location, the file exists and it's using the correct java version. Not sure what the issue is, any help would be appreciated.
Download the newest version of Java for OS X 2014-001 from Apple. http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US
I encountered the same error this morning and this was a quick and easy fix.
I got this problem when I try to lunch AptanaStudio 3.1 on OSX yosemite.
I google this problem for quite a lot and found that JDK1.8(64-bit) version just does not support the Aptana Studio(3.1), maybe also not working on some other IDE which based on the same skeleton of Eclipse.
The only solution I can came out is to install an older version of JDK, and I found that the link #ChancePance provide just worked for me.
Why I am answering this question is just to specify that it's OK to install this version of JDK(which is version 1.6.0_65, 64-bit when I download the package) alongside with the J2SE 1.8(provided by Oracle). So you don't have to worry about there is any conflicts while installing two version of JDK.
I need the JDK1.8 for some of the new features of the latest version of Oracle's J2SE. And I need Aptana Studio at the same time. I am quite worried about there might be some conflicts.
Below is what I have done on OSX Yosemite to solve the problem of AptanaStudio3.1:
Download and install the package: JavaForOSX.
Found the file "AptanaStidio3.ini", the file by default located under the the directory here: /Applications/Aptana Studio 3/AptanaStudio3.app/Contents/MacOS
Add "-vm" argument to specify the java which will be used to lunch Aptana Studio.
-vm
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
Hope this will help you guys who got the same problem.
I ran into this problem as well. Apparently Aptana Studio is 32-bit, while the java I have installed is 64-bit.
I didn't want to revert to Java6 as the accepted answer suggested, so I solved it another way.
I downloaded a 64-bit version of Eclipse and installed the plugin version of Aptana Studio.
I was also experiencing this problem because I had a 64 bit JDK 1.7 installed (the standard Oracle version - not the Apple version indicated in the other answers) and had mistakenly downloaded a 32 bit version of Eclipse. Doh!!
I removed the 32 bit version and downloaded the 64 bit version of Eclipse and everything works great now.
Simply downloading the newest Java for OSX worked the charm. I clicked and downloaded the file from the link above -> http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US <
Open "/Applications/BonitaBPMCommunity-6.5.0/BonitaBPMCommunity.app/Contents/MacOS/BonitaBPMCommunity.ini"
Obtain the location of the JRE / JDK on your system by executing in a terminal:
/usr/libexec/java_home
Add 2 lines after adapting the ...jdk1.8.0... to your system as found out above
-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java
in between the following lines:
-clearPersistedState
-vmargs

Categories

Resources