Glassfish on Eclipse on Mac - java

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)

Related

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.

Have Java 8 for Luna and Java 7 for Juno

I want to use both Eclipse Juno and Eclipse Luna simultaneously in my machine, for different projects.
My machine has Java 8 installed. This works perfect with Luna since the projects I have in Luna are exclusive to Java 8.
My projects in Juno need Java 7 strictly. It seems I have a build path issue (I guess it is because I don't have Java 7 in my system).
I downloaded JRE 7 and tried to install it. However, it tells me that I already have Java 8 installed in my machine.
What do I do then? How can I have Java 7 for my Juno projects?
Mac OSX Mavericks.
You can specify in the eclipse.ini file which JVM you want to use.
The JVM does not even need to be installed, it is enough to unzip it to some folder.
Simply create an entry like this:
-vm
C:\Java\JDK\1.6\bin\javaw.exe
See also:
https://wiki.eclipse.org/Eclipse.ini
In Eclipse you can add the JVMs without having them installed as well:
Windows / Preferences / Java > Installed JREs
If you would be doing development with Java 7, you need the JDK as opposed to the JRE.
In Eclipse, you make your project FACETED, then right click on your Java 7 project and go Properties. From there, you can select Project Facets and then you can modify the Java version you would be using for that particular project.
I have multiple Java versions (JDKs) installed and this is how i control the version i am using in my projects.
Hope this helps!

Netbeans Platform installer target platform

I've a problem with the application installers generated by Netbeans. I have a Netbeans application project with one module. The Java target platform is set to 1.7. The development system is Netbeans 8.0.1 on Mac OS. I generate the installers with "Package as" => "Installers".
When i try to run the installer on an Ubuntu with JRE 1.7 installed it fails with an UnsupportetClassVersionError. When I run the ZIP-packaged application it works fine.
It seems that the class version of the installer is not compatible to 1.7.
So, my question is: Is there any way to configure the Java version of the installer itself?
Try to run NetBeans using JDK 1.7. See the file NetBeans 8.0.1/etc/netbeans.conf - there is a property netbeans_jdkhome - change it to point to a JDK 1.7 home and restart NetBeans IDE.

Netbeans 6.9.1 not working on windows 8

I want to make Java Desktop Application but Netbeans 6.9.1 is not working on windows 8.1 (it crashes on double click to run). I have installed JDK8 along with Jre7 (both 32 and 64 bit). How to make it run, Netbeans 8 is working properly.
Netbeans 6.9.1 is not working on windows 8.1
You must have JDK 6.0 on your system to install and run NetBeans IDE 6.9.1.
Source NetBeans IDE 6.9.1 Release Notes.
To make Netbeans run on JDK 6, if you have more than one JDK do this:
You can change the JDK for Netbeans by modifying the config file:
Open netbeans.conf file available under etc folder inside the NetBeans
installation. Modify the netbeans_jdkhome variable to point to new JDK
path, and then Restart your Netbeans.
Sample
# Default location of JDK, can be overridden by using --jdkhome <dir>:
#netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_45"
netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_45"
mainly the problem is that your netbeans and jdk are not compatible. you should download lastest jdk 8 and netbeans which you can from here.
DONT FORGET TO SET PATH.
I got a Solution
You must have JDK 6.0 on your system.
Then SET PATH at time of installation to JDK 6.0 .

Cant install JavaEE in my computer

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?

Categories

Resources