I tried to install JavaEE on my computer. I already have JDK 7 and Netbeans 7.1.2.
But when I try to install it, it shows this error..
application needs version 1.6 or higher of java(TM)2 Runtime
environment.....
The JDK installer for Windows doesn't do its job entirely right. Some registry keys for the JRE are missing. The Java EE installer is relying on them. You basically need to install JRE as well which you can get from http://java.com. You don't need to uninstall the JDK. Just install JRE over it, it'll set the proper registry keys and your Java EE installer will then continue.
Note that the Java EE pack basically contains the Glassfish server and optionally also bundles the Netbeans IDE. You can alternatively also just download and install Glassfish separately from http://glassfish.java.net. Or if you happen to have installed Glassfish already or already have another server like Tomcat or JBoss AS, then you don't need the Java EE pack at all.
See also:
What exactly is Java EE?
Related
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.
I am using Eclipse Luna on Mac Maverick.
I have downloaded GlassFish and extract it.
I have downloaded the Glassfish toolkit from the marketplace.
I am using Eclipse EE.
JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin
When I try to define a new server, why isn't glassfish showing up as an option? What have I missed?
The problem is actually Eclipse. JDK 7 only works with Eclipse EE in 64 bits version. So, basically if want to make glassfish an available server: you need to:
Use Eclipse EE 64 bits version
Use JDK-7
Make sure your JAVA_HOME is set/updated
(In Mac, it usually sits under /Library/Java/JavaVirtualMachines/)
In Eclipse marketplace, download and install Glassfish-toolkit
(and restart the IDE of course)
Make sure your Eclipse EE/Project is using the correct JDK
(Preference -> Java -> Installed JREs)
I am just starting with the Oracle Java EE 7 tutorial. While I have already gained some practice with an existing Apache Tomcat Environment I wanted to get in touch with the complete tutorial to have a clear learning path and trail.
So I am currently using a Mac with OS X Mavericks. I have already installed an Oracle JDK 1.7 which is working pretty smooth. Developing is also nice so no problems with that.
Now I came to the part in order to download "Java EE 7 SDK/JDK" (http://docs.oracle.com/javaee/7/tutorial/doc/usingexamples001.htm#GEXAJ)
I have done so and run the installer. What I can see it does is installing a glassfish4 environment (which seems to be fine as the tutorial covers glassfish and I would use it in tutorial). I also ran the Update Tool to get the java-ee-7-tutorial-examples.
Anyhow adding the glassfish server to netbeans 8 I mentioned in the "Java" Tab there is just JDK 1.7 which points to me 1.7 Java JDK location on the system.
Trying to find any specific EE 7 location nothing seems to be the right location (find / -name java)
So what exactly does this installation do in other words than just installing glassfish environment?
And what is the use case of having the EE 7 SDK/JDK ? Maybe I am a bit confused but I want to have these things clear for myself in order to understand it.
GlassFish Server Open Source Edition 4 is the reference implementation of the Java EE 7 specification. So you can never download Java EE itself like you do with Java SE by downloading the JDK, but you always download an application server implementing it.
At the moment, you have JBoss WildFly 8 as alternative, but it usually takes some time after more, especially commercial application servers like Oracle's WebLogic follow.
So concerning your IDE, you add the JDK as runtime as in every other java project and GlassFish as a server and target for your deployment.
Hint: In case you experience problems when trying to get the samples via updatetool (at least it was the case when I did the Java EE 7 tutorial), just try again - java.net is so awfully slow sometimes.
I don't know if it is the right place to ask, if not tell me I will migrate my question elsewhere.
I am using OSX (Maverick) and I am trying to install the JDK 7 in order to use javaFX. So I downloaded the .dmg package from oracle and when I double click on the package, I get the error message can't found mountable file systems. In the documentation I found this alert:
If you download Java 7, you will not be able to run Java content in Chrome on Mac OS X and will need to use a 64-bit browser (such as Safari or Firefox) to run Java content within a browser. Additionally, installing Java 7 will disable the ability to use Apple Java 6 on your system.
So how can I properly install the JDK 7? and Is it dangerous to install it? Could it mess up all my settings, knowing that I only want to use the JDK 7 to run some java project ?
I believe the error message you are getting just indicated a corrupt dmg file.
Try downloading and installing it again and it should work fine.
So how can I properly install the JDK 7?
You can only install the 64bit version of Java 7, the only real downside is that it will not work with things like the crome browser, you can install it the same way as you first tried, download and install it from here: JDK Download
Is it dangerous to install it? Could it mess up all my settings
No, installing the JDK should not make any noticeable change, even if you run apps on it instead of your previous JDK/jar, they should still work. If you have older JDK's installed you can still use/select them in an IDE. If you do use crome then it should continue to work as normal using the existing/old JRE/JDK that you have installed.
knowing that I only want to use the JDK 7 to run some java project ?
The Java 7 JDK is backwards compatible, meaning it should run all existing java apps.
If you were worried about swapping between Java 6&7 then this thread may help: https://superuser.com/questions/490425/how-do-i-switch-between-java-7-and-java-6-on-os-x-10-8-2
You can download on another system. And unzip the contents to a folder. Then you can copy that onto your Mac and try. I guess that is what he meant by the folder.
I am using Ubuntu operating system with Java version 1.7.0_15 (Iced Tea). I am unable to access the Java web start application. Every time I start it I get message that Java web start requesting JRE 1.7 and then says that it is unable to install so manually install and then it failed to install the JRE. I do not know what to do.
Here is my java version
Here is few important information
1. I have validated JNLP file using JaNeLa and there is no error.
2. Ubuntu is opening Application with JRE 1.6 perfectly fine.
3. On Windows every version is running perfectly fine.
4. I have tried with deployment tool kit but the always redirect me to the Sun page to download the linux version of JRE and even after installing that it again redirect me to the download page.
Please let me know if I can provide more information.
So finally after working whole day I have found the problem with my system. I am not sure why my question got -3 but it was valid question. The problem was with the Java plugin in the Firefox browser. Although I have installed jdk 7 on my machine but the firefox plugin was still pointing to the jre6 so giving error. So I have to manually create the link for the jre 7 in my machine
ln -s /usr/lib/jvm/<<location of jre 7>>/jre/lib/i386/libnpjp2.so ~/.mozzilla/plugins
Then I restarted the browser and make sure that I have the latest plugin and it started working, So it was not the java installed but it was firefox plugin.
Just FYI, oracle has stopped it support for java plugin for linux due to some licensing so you have to install it manually. Thanks
You can check the installed plug-in by typing 'about:plugins' in your address bar of firefox
IMHO OpenJDK 7 is not a JRE 7.
You may uninstall it before install oracle jre. Otherwise you have to use sudo update-alternatives to define the default java version
See https://askubuntu.com/questions/67909/how-do-i-install-oracle-jdk-6