JavaFX application intermittently shows an empty window - java

I just started to develop an application with JavaFX and this is the first time I am using JavaFX.
My application works fine, but sometimes (happened twice) when I start the application, it only shows an empty window, without any content. When this happens, no matter what I do, I cannot get it fixed until I restart the PC. When I restart the PC, the issue automatically gets resolved.
Following are my environment details
Windows 7 64bit.
jdk1.8.0_131 (64 bit).
Build with Maven v3.2.5
Developed in IntelliJ IDEA 2017. (When issue occurs, window is empty
when opened through IDEA, and opened through
myapp-jar-with-dependencies.jar built by maven)
What could be the cause of this issue?

Related

Apache NetBeans 12.6 not opening on windows 10

I'm having an issue with NetBeans, on the first few startups everything works fine, and I even get some projects finished, but then suddenly Netbeans loads but doesn't open, and if I try to reopen it all I get is a minimized menu bar (as if you took the menu bar on the top right of your screen and only displayed that). I've tried uninstalling and reinstalling the application, changing the JDK being used, and failed at editing a config file which I saw suggested on some other threads, this happens independent of the version installed or the JDK used. I'm really lost because I don't even get an error message.

The import Javafx cannot be resolved Eclipse JDK-11.0.1

Using eclipse on windows I've begun to get error messages on Java files containing Javafx imports. Although this was never an issue before. I've tried changing the build path and ensuring I have the latest version of Java (JDK-11.0.1). Javafx is also downloaded from the Eclipse marketplace and was previously working. It appears in the preferences window also. Any help would be much appreciated I have an exam in the morning, meaning this was an awful time for the software to stop working.

Android Development/LibGDX no window opens when running

I am trying to run LibGDX through Android Stuido, I have created a project, imported the project I generated in LibGDX, created a desktop launcher and made sure that my SDK is updated. When I hit run, it thinks for 2-5 seconds and then nothing happens, even the base "Badlogic" window doesn't open. I get a message saying Compilation completed successfully in 5s 585ms and it says "Process finished with exit code -1073740791 (0xC0000409)"
I've tried a new project and uninstalling and reinstalling the whole thing, same issue.
Has anyone else come across this and a solution for it?
I've had the same error. Managed to fix it by rolling back my NVIDIA Driver to the previous version. I was on version 378.49 and switched back to 376.33 and now everything works fine. You can give that a try regardless of your graphics card.
Nvidia Geforce 378.57 Hot Fix Drivers:
Fixed crash in Minecraft and some other Java-based titles
http://www.guru3d.com/files-details/geforce-378-57-hotfix-driver-download.html

Eclipse not opening on windows 8.1

So a couple of days ago i bought a new laptop, since my old one was way to old.
It came along with windows 8.1, which was the first time i used them since i was always with 7.
I downloaded the adt bundle that i used in my old pc, and when i attempted to open eclipse, i got the usual message about JRE/SDK missing, pretty logical, since i hadn't installed java.
So i went on and downloaded the latest java version (Java 8 update 60) and after i installed it eclipse refused to open at all. Absolutely nothing appears, not even the message that appeared before installing Java.
The fan starts working, like the program was running but absolutely nothing appears, it's not even on the processes on ctrl+alt+delete.
So are there any ideas on what might be causing this? It's a brand new laptop and eclipse flat out refuses to open. No error message, nothing, just eclipse not opening at all.
tried re-installing, running as admin, restarting, nothing works.

Java 1.7 JavaFX 2.2 Troubles on Mac os x Mavericks

I am having some real trouble with JavaFX on my Mac at the moment which originated when experimenting with using the system menubar but has also lead me to discover another problem related to the built in full screen functionality.
Here is what I am doing:
Opening Netbeans and creating a new JavaFX FXML application.
I open the FXML file and add a menuBar to the scene.
I set the 'use system menu bar' property to true.
I build and run the application.
When the application is launched, no menu bar is displayed within the window (as expected) but the Mac system menu bar is still the Netbeans menubar. If I click on the desktop and then back on my application window, the system menubar is correctly displaying the menu from my JavaFX application.
I can access the menu and everything now appears to work correctly.
If I relaunch the application, the menu is incorrectly displayed as in the previous example. I use the full screen button on the right hand side of the application window to enter full screen mode. I move my mouse to the top of the screen to show the menu. My application menu is shown but is inaccessible (i.e. I am unable to interact with any of the menus on the menu bar). If i go back into windowed mode the menu bar is now displayed but is still inaccessible. If I follow the steps in the previous example everything now works as expected except for selecting the Quit Java menu option from the Java menu results in the application throwing the following exception.
Exception in thread "JavaFX Application Thread"
java.lang.NullPointerException at
com.sun.javafx.tk.quantum.GlassViewEventHandler$9.run(GlassViewEventHandler.java:738)
at
com.sun.javafx.tk.quantum.GlassViewEventHandler$9.run(GlassViewEventHandler.java:720)
at java.security.AccessController.doPrivileged(Native Method) at
com.sun.javafx.tk.quantum.GlassViewEventHandler.handleBeginTouchEvent(GlassViewEventHandler.java:720)...
System specifications:
Mac os X Mavericks 10.9.1
Java version 1.7.0_51
JavaFX version 2.2.51-b13
Netbeans 7.4
Java update tells me I am running the latest version.
Mac system update tells me there are no software updates at this time.
What I have tried
My research has led me to various discussions regarding a conflict between Java 6 and 7 on os x Mavericks, and that I should be installing the update here.
I have carried out the following:
Completely uninstalled JavaFX Scene Builder and Netbeans.
Completely uninstalled JDK 7 and JRE 7 as per the Oracle instructions here
Run the installer for the os x Java 6 update linked above.
Reinstalled the JDK (version 1.7 u51).
Reinstalled Netbeans and Scene Builder.
I was also going to try and revert to an older JDK version (update 45 or lower) but you have to sign up for an Oracle account in order to download these versions.
Update:
I have also tried installing Eclipse and using EclipseFX to create the JavaFX project but still observe the same behaviour.
Any help that anyone can offer will be greatly apreciated.
I have just downloaded Java 1.8 which was released today and it appears the problems have been fixed.

Categories