Glassfish Tools not Installing on Eclipse Mars - java

I installed Glassfish tools using Eclipse Mars on Windows 7 64 bit. I am getting an error "The specified directory is not a valid GlassFish installation", mostly because I can't find the actual installation root. After installing it through the Marketplace it doesn't seem to be on my hard drive.
This link suggests it should be on the top level of my C: drive, but it isn't there.
I tried to search for it, but searching my entire drive I only find C:\Program Files\eclipse\features\oracle.eclipse.tools.glassfish_8.6.1.201603011333 which doesn't seem to be what I'm looking for and Eclipse agrees.
I found this work around, but that is for Java EE 7. Mars requires Java EE 8.
Some tutorials show a step in Eclipse where the server is installed in a folder of my creation, but that step never comes up.
Not sure where to go from here. Any suggestions?

Related

Migrate to new eclipse version on Mac gives No class found error

I upgraded to the newest Mac Pro running Big Sur (11.4) from my 12 year old Mac Pro running Mojave (10.14.6). The old version of Eclipse was version was Kepler service release 2. When I installed the Mac and restored from backup, Eclipse flat out would not run, so I deleted it and downloaded and installed the latest version 2021-03 (4.19.0). I also updated JAVA SE to version 16.0.1 from Java version SE 7.
When I tried to run/compile a previous working project, I get:
I then decided to update the libraries found in the Java Build Path properties to the latest I could find:
to see if that made any difference. It didn't. I'm probably missing something very basic but I don't know what, since I use Eclipse only rarely.
I decided to go down the rabbit hole and download the missing jars in the error log, one after another. It just kept getting deeper and deeper with no end in sight. Just didn't quite pass the smell test.
Hmmm. I originally downloaded eclipse from the main elcipse.org page and went to the downloads button and installed it. Turns out the eclipse directory was only 21.2 MB. Plugin directory was basically empty. Hmmm.
I stumbled on the download file eclipse-SDK-4.19-macosx-cocoa-x86_64.dmg after looking for a SWT download. This file was the eclipse version that was 295.4MB in size. Double hmmm. So I ran it. Needless to say I was startled when my project compiled and ran right off the bat. Gee, thanks eclipse. Can you make it any more difficult for your Mac users? Anyway after a wasted day of head banging... problem solved.

Eclipse not showing javadocs for jdk10

I have JDK 10 and eclipse Photon installed on my windows 10 system.
Both of them are working fine and eclipse is very well compiling my Java apps and running them as well.
But when I roll-over my cursor on syntax, then it is not showing its description.
It says :
This element has no attached source and the Javadoc could not be found in the attached Javadoc.
for every element. I could not find anything useful on the google and also the similar post from StackOverFlow is old about jdk 7.
Now, since the jdk folder doesnt have JRE anymore, the eclipse is linked to the jre folder outside the jdk. However, I tried all jars in lib of jdk and still no luck.
What is the problem?

Java EE 7 tutorial, netbeans can't find glassfish

The instructions for the Java EE tutorial specify to download and install the following :
Java SE SDK
Java EE SDK
Netbeans
I downloaded SE 8, EE 7 & Netbeans 8.0.2
Installed SE ok, and EE ok - it's essentially glassfish4. While installing Netbeans I'm instructed in the tutorial to NOT install glassfish and, when done with Netbeans to add glassfish to the Netbeans installation.
When I do so, I get the following message (I'm pointing # c:\glassfish4\glassfish which is the correct path AFAIK)
Not a valid GlassFish Server installation.
I've seen another person in the last week with this same error, I looked into that problem and it said that there should be a file in a directory to solve the problem (C:\glassfish4\glassfish\config\glassfish.container). That file does exist on my system.
How does netbeans determine a valid Glassfish installation?
ETA: I followed zapl's advice below, reinstalled Netbeans with it's default Glassfish and, when I right click on Glassfish 4.1 Server, all options are greyed except Refresh and Remove (so, no start/stop, no view of Admin Console, Server Log or Update Center)
I ran into the same problem. It is a known Netbeans-Bug: https://netbeans.org/bugzilla/show_bug.cgi?id=253008
There appear to be two solutions:
Use a nightly Build Netbeans Version equal or higher than 201506180001
In /glassfish/lib/install/applications/__admingui/WEB-INF/lib link (or copy) console-core-4.2-SNAPSHOT.jar to console-core-4.1.jar. After that netbeans is able to find the JAR file and add Glassfish nightly as a Glassfish 4.1 server.
I renamed the JAR as in solution 2 and now it works fine...
Hope this helps!

Download and install JavaFX for Eclipse

I'm an experienced (Java, Eclipse & Maven) developer, and have used a couple of frameworks thus far. Every time I'm trying to start with something new, it seems like there are about a zillion configuration possible for downloading and installing it.
I've looked here for instructions, and all the near pages, but they seem out dated, the Eclipse plugin path is invalid, and when I install the latest version I've found no the site (2.0.2), it says that I have a newer version installed.
Also, the Maven setup in most posts I've read seems obscure.
I'm using:
Windows 7
Eclipse x64 Indigo
JDK x64 1.6.0.24
Maven 3.0.3
And I don't recall installing the JavaFX.
What an I missing? Where can I read about the setup in order to start working with this framework?
JavaFX gets installed if you install the latest JDK 7 from Oracle (co-bundled).
You can find the Eclipse plugin here:
http://efxclipse.org/
If your're interested in Maven builds: I've recently released an initial version of Drombler FX, a modular RCP for JavaFX based on OSGi and Maven (POM-first):
http://puces-blog.blogspot.ch/2012/12/drombler-fx-building-modular-javafx.html
http://wiki.drombler.org/GettingStarted
I did tried efxclipse but it was not enough for me. I have also tried to give the path of javafx jar file to efxclipse
Window->Prefrences->javafx->"The path to javafx jar which is
jfxrt.jar"
. But nothing worked for me I don't know what was going wrong.
Then I just add the jfxrt.jar file to my Library and everything worked fine :-
1. Right click your JRE System Library
2. Build Path
3. Configure Build Path
4. Add External Jars
5. "The path to jfxrt.jar"
You can download jfxrt.jar file from this link.
Or
If you have already downloaded the latest oracle JAVA JDK you will find in this path
Extracted_oracle_jdk_folder/jre/lib/ext/jfxrt.jar
That's it everything should work fine.
Try e(fx)clipse at http://efxclipse.org/. I'm a netbeans developer, but heard a lot of good stuff about that plugin from my eclipse using friends.

Eclipse & web development

I'm trying to learn servlets and JSP and would like to do this with Eclipse. When I click about in my current version, I get this info:
Eclipse IDE for Java Developers
Version: Helios Service Release 2
After searching a bit, it seems you cannot access these features with this version - you need "Eclipse IDE for Java EE Developers".
I've found a tutorial to install these plugings in your Eclipse installation, but I'm just getting a "failed"-message with no error message. After this, I decided to just download a new version (the EE one ofcourse) from the Eclipse website. The old installation is in c:\program files (x86)\eclipse, the new one in c:\program files (x86)\eclipse2.
The old one still works fine, but when I try to run the new one, I get this:
I have no clue what is wrong here. Am I doing something wrong? The only thing I want is to use Eclipse for JSP and Servlet Development (soon also EJB).
Thanks
Eclipse cannot find your JRE/JDK. Put the JRE/JDK folder in your PATH variable. My JDK is located here:
C:\Program Files\Java\jdk1.6.0_24
Should be a similar path for you. Add that to your PATH variable.
Have look at this tutorial to find out how.
Make sure a Java 6 JDK is installed. If it is then you should be able to type javac -v on a command prompt and see output like this 'javac 1.6.0_26'
Once you have this correctly eclipse should start with no issues.

Categories