javafx Eclipse Mars install - eclipse

I have just installed eclipse Mars (4.5) and I have a problem with one old JavaFx project. Before installing Mars, I was using Luna and got no problem with my JavaFx projects, now I have the following problem with one project, all the javafx code are underlined with a similar error:
Access restriction: The type 'LineChart' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_45\lib\ext\jfxrt.jar')
I do not know what it means, I tried to refresh the project and reboot Eclipse but the errors do not disappear, I can run my application without any problem though. I have other JavaFx project but none got this error.
I am using the latest JDK 1.8 update 45.

I solved my problem by removing JavaFX SDK from the build path and adding it again. I don't understand why it did not work the first time.

Related

Binary built with Eclipse CDT visible only inside the IDE but nowhere to be found outside,What Is Happening?

I am using latest Eclipse version with cmake4eclipse add-on on my Debian machine. I am a noob at using Eclipse and already there is a problem! The very strange problem is that after building a project the explorer tab of IDE shows the built binary but I can not actually find it using my usual file manager. When I try to run the binary from IDE, Eclipse complaints a nullpointer exception has occurred. What is happening here?

Why won't Netbeans 9.0 show any error markers?

I recently had to install Netbeans 9.0 to work on a gradle project at work, but unfortunately the editor won't show any error markers as i write code. Compilation errors are shown once i run, but i don't visualize them in the editor, even with obvious errors like not closing up a class with }. I also have netbeans 8.0.2 that i've installed through the installer, and error markers are shown correctly there. Has anyone encountered this problem, or knows how to fix it?
If you are using Java, please install nb-javac plugin.
I had same problem with NetBeans 11.2. It resolved after I installed this plugin and restarted the IDE.

Eclipse Mars 1.0 Build Path Missing From Properties Menu

I have just reinstalled my OS and made a clean install of Eclipse.
I want to import my previous projects made on a previous version of Eclipse and that is no problem. However when I try to run it then it says: "The selection cannot be run on any server".
I read around I need to go into Properties => Build Path and do something there.
Only problem is my Properties menu does not have a Build Path option. I have searched around Eclipse for a long time now to find Build Path but stil no luck.
Does anyone now where og why my Build Path is no where to be found?
By Chance i found the solution myself.
I originally installed the Eclipse Php Mars version of Eclipse which i still can't get to work. But install the Eclipse Jee Mars (Java EE IDE) version instead solves the problem.
First time you run the code though you might have to run it through the main menu in the top and not by the convenient Run icon botton.
I have no clue why this is but now i can continue my work.

Eclipse Luna crashes on new project in Ubuntu

I'm having some trouble getting Eclipse Luna to work. I downloaded the tar.gz from the eclipse site and I downloaded the tar.gz for the Java JDK. I extracted everything and Eclipse opens properly, but when I try to make a new project, it crashes on me. In the terminal I ran java -version and it tells me I have version 1.8.0_25 so I don't think I have an issue with java. Now, this happens if I try to make any kind of project. Eclipse opens the wizard for creating a new project of a particular type and then the whole application crashes. When I started doing this, I installed it under the KDE desktop. When Eclipse crashes, I get the message java: /build/buildd/gtk2-engines-oxygen-1.4.5/src/animations/oxygencomboboxdata.cpp:87‌​: void Oxygen::ComboBoxData::setButton(GtkWidget*): Assertion '!_button._widget' failed. So, I decided to install the xfce desktop to get around it, since oxygen is a KDE theme. I uninstalled eclipse and reinstalled it under xfce and I have the same behavior and the same errors. When I run eclipse from the command line, I get this exception on startup:
java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
at org.eclipse.m2e.logback.configuration.LogHelper.logJavaProperties(LogHelper.java:26)
at org.eclipse.m2e.logback.configuration.LogPlugin.loadConfiguration(LogPlugin.java:189)
at org.eclipse.m2e.logback.configuration.LogPlugin.configureLogback(LogPlugin.java:144)
at org.eclipse.m2e.logback.configuration.LogPlugin.access$2(LogPlugin.java:107)
at org.eclipse.m2e.logback.configuration.LogPlugin$1.run(LogPlugin.java:62)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Does anyone have any ideas on what else to try?
According to comment 20 in this bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=440660#c20
This seems to be a bug in GTK according to
https://bugs.launchpad.net/ubuntu/+source/gtk2-engines-oxygen/+bug/1242801
(there a similar problem for Meld was reported).
Another workaround mentioned there is for Oxygen, edit the normally already existing file
/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc and change
`GtkComboBox::appears-as-list = 1`
into
`GtkComboBox::appears-as-list = 0`
This workaround is working for me.
I have resolved this issue by installing package gtk2-engines-oxygen built for Ubuntu Vivid Vervet (version 1.4.6):
http://packages.ubuntu.com/vivid/gtk2-engines-oxygen

Debugging JavaFx project with Eclipse

I'm running Eclipse Kepler, JRE 1.7, with the e(fx)clipse plugin. Whenever I try to debug a JavaFx project, I receive the "source not found" stating the systemproperties class belong to the JavaFX sdk and doesn't allow modifications. I have tried to add this class to the step filter in eclipse with no luck. I have been unable I can find source code for JavaFX from Oracle. Is there any way to get past this and debug JavaFX in Eclipse?
There's never been a source zip of JavaFX2.2 released by Oracle because it was opensourced only partially.
I'd advice to use JDK8 which comes with the source code.