GlassFish cannot be installed in Eclipse - eclipse

Tried to install glassfish4 server in eclipse oxygen. Everything is ok except that it cannot recognize the jdk. Its saying JDK required instead of JRE. I have given the right path of my JDK, but still its saying that its JRE. When I am giving "javac -version" command in the command prompt its correctly showing java version "9.0.4". Please help.

No version of GlassFish supports JDK 9 at the moment. You will need to downgrade to JDK 8.
Additionally, the GlassFish Tools for Eclipse IDE have not been formally updated to support GlassFish 5 yet. With the move of Java EE and GlassFish to the Eclipse foundation, this is likely to happen but it is hard to say when at this point.

Related

MyEclipse doesnt accept JDK for creating Runtime

I am trying to create a JBoss Runtime in Eclipse. I have added 2 JRE entries in my Eclipse - one for JDK1.7 and another for 1.8.
Still Eclipse wont identify my 1.7 entry. See screenshots attached.
P.S: I got my JDK 1.7 by extracting the MSI/Exe setup file using 7 zip. I have done regular installation of Java 1.8 and My Java_Home is set to 1.8 in the PC. I don't want to modify it to point to lower version as it will impact other projects.
Your JRE definition won't be recognized as valid for the JBoss runtime if it is not a JDK. Your extraction of the JDK may have resulted in a JRE instead. Why not just run the JDK installer and change the installation folder to something other than your Program Files folder; it won't switch your system to Java 1.7 that way (I just tried this myself to check). Then define a new JRE to point to the newly installed JDK 1.7 and you'll be able to use that for the JBoss runtime.

PyDev miss configuration with EClipse kepler

I have installed java 8 ,Eclipse Kepler and Python34.Now i have installed Pydev through EClipse>>Help>>install new software but it is not showing in File >>New Project or Windows>> Open Perspective. I have installed Pydev many time but it's not showing and i have seen also many of stack over flow but still iy's not working.
please crosecheck that Eclipse take Java 8 version only .because pydev needs Java 8 version. Even if you installed java 8 in your system. But check that the Eclipse took Java 8 version nothing else.If not then uninstall the eclipse and again install it so that it will take system java 8 version.
After this if still issue persist, then try with Eclipse Luna. I am facing the same issues.Now it is working for me.

Eclipse error 'UseStringDeduplication'

I installed a fresh Ubuntu 16.04 VM, Oracle JDK 7, and downloaded the latest Eclipse. But I am getting this error when I try to start Eclipse:
Unrecognized VM option 'UseStringDeduplication'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Why am I getting this error on a fresh install? And is it a bad idea to remove that VM option?
Latest version of Eclipse (Neon) requires Java 8 runtime, and the Eclipse website obnoxiously neglects to mention it anywhere from the homepage to the download link for Eclipse, not even a version warning at runtime for Eclipse.
Same error for me in Kubuntu 14.04, eclipse Neon,
I Removed -XX:+UseStringDeduplication from .ini file, it works for me
I know, i'm little to late to the party. I got this issue lately on my Mac. I updated my eclipse (from Mars to Oxygen) all of the sudden i couldn't start my old project. First i thought, this must have something to do with the new eclipse, which wasn't all wrong. Because eclipse.ini file of Oxygen expected java-1.8.
I updated my java to latest (jdk1.8.0_152.jdk), but the problem remained, than i removed these parameters from the eclipse.ini, still was the same, i checked the "Run Configurations" and basically removed the same parameters from the arguments list. Now my projects seem to work just fine. I also needed to restore the platform, since Oxygen use e.4-platform.
Remove these parameters from eclipse.ini file
Select the project and go to "Run As"->"Run Configurations..."-> "Arguments" check the old configurations under "VM arguments" (it can be a product in case of an RCP-project)
removed the VM-option(s)(actually, they can be more) not recognized and "Apply"-> "Run".
I got the same error when I have installed Java 8 and Java 9 in my Ubuntu 16.04. My eclipse version was Neon. As https://wiki.eclipse.org/Eclipse/Installation#Eclipse_4.6_.28Neon.29 describes to start specific eclipse ide you need relevant JDK. For neon, it was Java 8. Since I installed Java 9 using apt-get it was the default JDK. so I have to change the default JDK to Java 8.
You can check which java version used in system-wide with
java -version
`If you want to see which are the versions of JDK installed in Ubuntu then run below command in shell.
sudo update-java-alternatives --list
Then choose which version you want to set. After that run below command.
sudo update-java-alternatives --set [JDK/JRE name e.g. java-8-oracle]
Now run again Eclipse. if the version was the reason to conflict, it will run now. Referred by http://menukanows.com/how-to-set-a-default-jdk-version-in-ubuntu/
String Deduplication – A new feature in Java 8 Update 20
It means you should nt java 1.8 updated later or equal 20.
I faced the same issue on Eclipse Oxygen in Ubuntu.
Tried:
Checking java version (It was already at 1.8.0 so according to the accepted answer, it should work.)
Removing -XX:+UseStringDeduplication from .ini file
Still didn't solve the problem. Then I saw #simgineer's comment:
In my case this was for eclipse oxygen. I had an older version of java
8 installed (jdk1.8.0_05) when I upgraded to the latest (jdk1.8.0_151)
and updated my eclipse.ini to point to the latest as well (since it is
recorded in there during installation) eclipse oxygen started working.
Solution:
Updated JDK from 1.8.0 to jdk1.8.0_231 and it got resolved.
Voila! I didn't have to update anything in my eclipse.ini .

NullPointerException when Starting Glassfish 4.0 in Eclipse on OSX Mavericks

I am using Mac 10.9 OSX Mavericks and Eclipse IDE for Java EE Developers(kepler).
I've installed Glassfish 4.0 using the 'new server' option in eclipse and the latest JDK - Java SE 7 [1.7.0_55].
but when trying to start the server, I get this error -
An internal error occurred during: "Starting GlassFish 4.0 at localhost".
java.lang.NullPointerException
Is there anything wrong with my setup? Any advice is much appreciated!
Open eclipse.ini file which is located in your eclipse installation directory (in the same folder with eclipse.exe).
Add -Duser.language=en in the bottom of your eclipse.ini.
Restart eclipse.
I installed Eclipse IDE for Java EE Developers(juno) instead of kepler and it works!
I am not sure what the problem with kepler is but this is a solution that worked for me.
I had the same problem while using Windows 8.1, jdk1.8.0_20, & Eclipse Luna.
I deleted the glassfish server, then re-installed, and it was all fine!
Note:
Remember to delete the server from the installation location.
Also in eclipse when you do a new installation, remember to go to "Configure Runtime Variable" (In the New Server Window), delete the existing config for Glassfish. then when you click next you will be prompted to select the JDK where you can select the correct version of the JDK. If you don't see the correct version of the jdk or no jdk version at all, then you will find above JDK a link called "Installed JRE Preferences" add the right version from there!
I had the same problem using Win7,jdk1.7.0_67, Eclipse Luna, glassfish 4.
As I suspected there is something wrong with the JDK settings, so I checked the Servers config in Preferences and in runtime environments my glassfish server got the problem: invalid JRE.
So I tried to set the JDK but the Finish button just isn't working.
I deleted that server and created a new with the same settings, and it's working.
I'm not sure though what caused this problem.

Installing JDK for JBoss but not Glassfish

I'm trying to get an environment set up to match a client. They're using JBoss 4.0.5. The installation docs indicate I need to install the JDK 5.0 separately. As far as I can tell, the JDK installation is tied to the GlassFish app server--installing the JDK gets me GF and uninstalling GF removes the JDK. Is there a way to get just the JDK?
The JDK can be installed and used separately from any other application and you can have multiple versions running on the same machine. (Which is usually the case when working with different clients/projects).
If your JDK installation is tied to the GlassFish application server, you probably used the "Java EE SDK" installer ( http://www.oracle.com/technetwork/java/javaee/downloads/index.html ). This bundles everything you need for starting up development on JavaEE.
You can get the normal, JDK-only installer at http://www.oracle.com/technetwork/java/javase/downloads/index.html (go to Previous Releases for JDK 5) with which you can install only the JDK at a separate location on your computer.
After installing JDK 5, you just have to tell JBoss to use that one instead of the GlassFish/System Java version. For this only setting the JAVA_HOME path to desired JDK for the JBoss startup scripts should be enough.
You can have as many JDK/JRE installations on your computer as you need. Just be sure that for each application which requires a specific version you configure its JAVA_HOME correctly.