Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Glassfish server adapter not shown in list in Eclipse

I successfully installed Glassfish Tools for Kepler. However besides Apache, Basic, JBoss and ObjectWeb I do not see an entry for GlassFish in server wizard (File->New->Other->Server).

I tried to install Glassfish Tools both from Eclipse Marketplace and from server wizard's "Download additional server adapters".

Glassfish Tools plugin is installed Glassfish Tools plugin is installed

Not shown in server type list Not shown in server type list

jre is fine ($JAVA_HOME set to the default value) jre is fine ($JAVA_HOME set to the default value)

Similar questions didn't help: Glassfish adapter in Eclipse Juno missing

like image 444
kolobok Avatar asked Jul 15 '14 12:07

kolobok


People also ask

How do I get Glassfish server in eclipse?

Installing Glassfish toolsOpen Eclipse Marketplace from Help-> Eclipse Marketplace menu. Type Glassfish in the search box to filter Glassfish plugins. In the search result, find Glassfish tools , click the Install button to install it. After it is installed, restart Eclipse IDE to apply the plugin.

Does Eclipse support Glassfish 6?

Glassfish 6 are not supported in eclipse (Eclipse support for Glassfish 6) Save this question.


2 Answers

In my case I solved this issue by using Eclipse Marketplace.Type "glassfish" in the search box then install it.That's all.

like image 97
Emrah Denizer Avatar answered Sep 16 '22 16:09

Emrah Denizer


I tried to install several components from Oracle Enterprise Pack for Eclipse Kepler (no matter which, because I deleted all of them afterwards!) http://marketplace.eclipse.org/content/oracle-enterprise-pack-eclipse-kepler#.U8Ul03WSy00

After installing, the dialog with warning "Oracle Enterprise Pack for Eclipse requires Java 7 or higher. Continue to configure a compatible Java VM." appeared. I specified path to jdk (same as in picture above, same as my $JAVA_HOME) and restarted Eclipse. After this everything works.

UPDATED. As I found out, the key is in eclipse.ini file. If this file starts from

-vm
/usr/local/jdk1.7.0_40/bin

(well, depending on your jdk path) Glassfish is shown in server adapter list. If not - Glassfish is not shown.

like image 27
kolobok Avatar answered Sep 19 '22 16:09

kolobok