Cannot create JavaFX project in Eclipse Kepler - java

I've installed JDK 1.7.0_45.
I've got my JAVA_HOME system variable pointing to installation folder.
Typing java -version in comman line results in "java version "1.7.0_45" output.
I've got Eclipse Kepler with e(fx)clipse plugin.
In Eclipse, in "Installed JRE-s" tag I've added the new JDK and set is as default.
I clicked New -> JavaFX Project and filled Project name.
The only buttons available are "Back" and "Cancel". I don't see any errors.
The only other element available is "Configure" button in "JavaFX Runtime Configuration" section.
The section contains message saying: "currently there are no configured runtimes".
I'm confused. I don't have a separate JavaFX runtime, and when I go here: http://www.oracle.com/technetwork/java/javafx/downloads/index.html it points me to JDK 7 I've already downloaded with explanation that "JavaFX is co-bundled with JDK 7 for Windows, Mac and Linux, it contains all the latest features and security fixes."
What am I missing? How can I create a JavaFX project in Eclipse?

I've found the solution.
I've uninstalled all plugins related to JavaFX (it turned out there were two of them) and then reinstalled e(fx)clipse from update site: http://download.eclipse.org/efxclipse/updates-nightly/site.
Everything works as expected now.

You only have to add the 'jfxrt.jar' file to the path of your project. And it works! Is not necessary another plugins, just that.
P.D: It works for me on Mac OS with eclipse Kepler. In case it didn't work, install e(fx)clipse and try again.

Related

removing java.endorsed.dirs from Tomcat on Eclipse with Java 9 and Java 10

I'm using Eclipse 4.7.3a with Tomcat 9.0.4 in the IDE. I upgraded from Java 8 to Java 10. I changed my JAVA_HOME to point to the JDK 10 installation. I went into Eclipse and created a new JDK installed JRE pointing at the Java 10 JDK, and selected it. I rebuilt my project, and tried to start the Tomcat server I had. It said:
-Djava.endorsed.dirs=C:\bin\tomcat\endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
I poked around and found that in the Tomcat launch configuration in Eclipse, under the Arguments tab, there are the following VM arguments:
-Dcatalina.base="I:\work\.metadata\.plugins\org.eclipse.wst.server.core\tmp1" -Dcatalina.home="C:\bin\tomcat" -Dwtp.deploy="I:\work\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps" -Djava.endorsed.dirs="C:\bin\tomcat\endorsed"
I removed the last part, -Djava.endorsed.dirs="C:\bin\tomcat\endorsed", and hit Apply, but the changes don't "stick"; when I come back to that dialog, the value is still there, and I still can't run Tomcat.
How can I removed the java.endorsed.dirs system property from the Eclipse Tomcat configuration?
Better yet, how can I avoid the problem altogether? Isn't Eclipse and Tomcat ready for Java 9+? Will a newer version of Tomcat 9 fix the problem? Should I remove and add back the Eclipse server? How can I get to the root of the problem?
I also have this problem before and but after updating WTP plugin to the latest version (3.9.5) which is not included even in the latest Eclipse (Oxygen.3a) to solve the problem.
For me this was still occurring even in the latest Eclipse IDE 2019-12R with eclipse web tools platform release 3.16 running AdoptOpenJDK jdk-11.0.5.10-hotspot.
I did as the OP, found -Djava.endorsed.dirs in the Arguments tab under the VM arguments for Tomcat. Get there by right clicking your project, select Run As -> Run Configurations... then, search for tomcat. In my case I clicked on 'Tomcat v9.0 Server at localhost', selected the Arguments tab and found the offending entry by scrolling down in the 'VM arguments' text box. I deleted the argument and it's referenced path. I restarted Eclipse and it seems to have stuck.

Netbeans IDE Project Window not visible

The project window within Netbeans IDE is not being displayed. I tried bunch of different things, but the Project window does not open at all.
Things I already tried:
Tried with multiple version of Netbeans and JDE, currently using Netbeans IDE 8.2 on MAC.
Tried to reset windows using Reset Windows, cmd 1, open existing project,
create new project. But still the project window does not open within
Netbeans IDE.
I made a clean install on MAC with different version of Netbeans, but the issue remains in all. Any suggestion would be helpful.
Have you tried running it with java 8? If you're using java 9 or 10, you don't get a Projects window because NB 8.2 isn't compatible with them.
There's more info at How can I install Netbeans with JDK 10.
This is a known issue in Netbeans 8.2. It happened to me when I upgraded my Ubuntu from 16.04 to 18.04. The root cause is that the java version was upgraded to 11 along with the OS.
You can fix this by doing one of the following:
Change the default jdk/jre version in the OS to java 8.
Change the jdk version to 8 in Netbeans by changing its configuration (etc/netbeans.conf). The configuration name is netbeans_jdkhome
like #rocko say, (I don't have 'add comment' right yet, so answer this frame )
I encounter same problem in NB 12.0 .
DEAL) ...my action
I changed JDK1.8 → JDK 11 setting in netbeans/etc/netbeans.conf
After launch NB, then open new project.
Project tree appeared and usable again.
#netbeans_jdkhome="C:\xxx\jdk1.8.0_242"
netbeans_jdkhome="C:\xxx\jdk11.0.3_7"
Environment
win10
corretto
To see projects or files when they disappear on NetBeans, just follow the steps in the image below.

Eclipse Luna 1.7 to 1.8 errors

I was working in Eclipse Luna and tried to write a static method in an interface but it gave me an error. I moused over it and I forgot what it said but it was something like ... 1.8 JRE. So I clicked it and now there's an error on almost every line saying things like:
String cannot be resolved to a type
and
java.lang.Object cannot be resolved
How to go back to fix it?
The problem here is a confusion in your eclipse between the Installed JRE in your system and the used JRE in your project, so to resolve point to the installed JRE in your system, like this:
Open your project build path configuration:
Right click in your project, then choose properties-->Java Build Path.
2. Add a new JRE System Library:
Click the button add Library then choose JRE System Library:
3. Choose the installed JRE Library:
Click the Installed JREs... button and choose the installed JRE in your system.
Hope it helps.

Google plugin for Eclipse Luna not showing the icon

I have been around 4 hours trying to install the Google Plugin for Eclipse Luna. I followed every step of the installing guide but when i finished the Google Logo for starting a new project didnt appear as it should:
As you can see even though i have the plugins installed i cant see the icon or start a new web project.
My operating sysyem is OSx Yosemite. I tried updating to Java 8 and JDK 8 (and 7) and deleting all the files as this question recommends. Also deleted and "reinstalled" eclipse and the plugin a lot of times but didn't workout.
Anybody with the same problem? Thanks a lot.
I had the exact same problem on my new MacBook. I had to install JDK 7. I downloaded and installed the Mac OS X x64 version of 7u75 from here:
JDK 7 Downloads
After it installs make sure it's the system default by executing the following from the Terminal:
/usr/libexec/java_home
If it looks good to go then just restart eclipse and you should be good to go.
I suggest you even to delete your Eclipse_Luna:
Re-install your Eclipse and then install the GAE-plugin again.
Remember to re-start your Eclipse after you've successfully install the GAE-plugin for Eclipse_Luna.
I faced the same issue.
I installed JDK 1.7 and used 1.7 jre for eclipse as mapped and downloaded the eclpise plugin AND restarted and it worked fine.

GWT installation issue with eclipse...?

I am using os x 10.9.1
I need to install google plugin for eclipse for using google web toolkit. I have eclipse juno, so I just follow link for install it. But it not work for me, not go ahead because below issue
So, I move to install latest version of eclipse kepler and follow link for install plugins. After all installation finished with some different issues and restart eclipse kepler it shows me java version error.
And same thing show me when I check through terminal
but when I check in my java preference, it show me latest version installed on my mac.
*********************Edited from here*********************
After downloading java 7 and installing it(as per one of comment in link),again check in terminal give me new version
I restart my eclipse and starting error is not there. Just go ahead and create GWT project, and now
Stuck again...!?!
Open eclipse.ini form your eclipse folder and set the following parameter as shown in image
-vm
//your java7-dir/bin/javaw.exe (use mac javaw in your case)

Categories