JavaFX white-screen: No content showing in Pane on Run - java

I was working just fine on my JavaFX project till I installed netbeans-7.4beta-windows this morning. I then uninstalled it and tried to revert back to netbeans-7.2.1-ml-windows since 7.4beta was showing me code errors I wasn't getting with 7.2.1.
Now, unfortunately, when I try to run my project, I very sadly get the following pop-up error:
UnsatisfiedLinkError:
com.sun.deploy.config.WinPlatformUserHome()Ljava/lang/String;
When I click on "OK" my project window shows, but with nothing but a white window: no borders, just nothing. Not even the text and forms I coded in.
What could be the problem. Will trully appreciate any help.

It seems this has something to do with the way JavaFX builds projects. If you look at the bug report here, it discusses the same problem that you maybe having.
Try creating a new project, move all the files over to the new project and run it.
Have you tried refreshing your current project?

I agree with Little Child. However, I have had the same problem in the past. Create a new Netbeans project (or javafx project), transfer all the class files on to it, delete the original. Build the new project and it should work!

Related

IntelliJ Crashes on opening Gradle project, why?

So I have been using IntelliJ with Gradle perfectly fine for the past few days. I tried to create a second Gradle project in the same workspace and since, IntelliJ crashes when i open it. The start screen appears, the project opens then a few seconds later it just closes. There is a crash report that appears, which is attached.
I tried deleting the new project and just opening the old one but it made no difference. It seems to be happening permanently now. I even tried reinstalling IntelliJ but it had the same problem the moment I created a second project.
Does anyone know how to fix this? Thanks.
Log File
After having a look around and being very close to contacting support, I found a post (I cannot find where) that suggested these errors are to do with my JDK version. After following this tutorial, the problem was fixed. Hope this helps someone else with the same issues!

Netbeans do not provide sync facility in javafx project

I just started with javafx about 2 days ago I experienced many weaknesses between javafx and Netbeans. One of them is netbeans do not sync project files. It do not simply work as swing application as when we save or run file in swing the changing effect sync all over the project and application do not show any error and show appropriate result.
But in javafx when we change anything we have to clean and build the project to make it work. Is this happening to others too or there is something I have to do in my project?
In my case a single change in any file do not take effect unless I clean and build my project. If something wrong guide me what to do.
Edit: Moreover how you import something in fxml file I'm unable to import anything with alt+enter.
Thanks

Netbeans stuck at startup

I was working with a big project on Netbeans.
I attached some source code on third party library and all went smooth.
Today I have the following popup message (I already had seen before obviously):
The file [...] cannot be safely opened with encoding windows-1252. Do you want to continue opening it?
The two buttons, yes and no, are not responsive. If I close the popup with the red cross it does nothing after a 1 sec loading.
Is there a way to "clean" the open file in the netbeans workspace to avoid this error?
SO Windows 8.1, Netbeans 8.0.2
Thanks.
One general solution to this kind of problem can be to clear the netbeans cache.
Quit NetBeans and find the cache folder - mine is at C:\Users\OldCurmudgeon\AppData\Local\NetBeans\Cache. Delete the whole folder - this can take a while as there can be a lot of files in there.
Netbeans will create a new one on next start.
Note that this will slow down netbeans for a while but it won't be long before it is back up to speed again.
Quit NetBeans.
go to the last Project folder then remove the project from the folder.
Open NetBeans.
I had a similar situation which started happening after I added a new project yesterday. I deleted the cache as someone recommended, but was still having the same issue. The solution was to rename the new project so it wouldn't be found. Everything worked splendidly after that.

Source not found Error in Java Eclipse

I'm fairly new to Eclipse and I'm using Kepler with EGit right now but I ran into a problem every time I compile my Java application. I've searched this forum to find a solution for my problem but I am still very confused as to what I can do to fix it. The application worked flawlessly yesterday morning and it works fine on my project partner's laptop but after syncing the project with 4 new commits from my project partner today, I keep getting a Source not found error every time I try to run the application. I get a button saying Edit Source Lookup Path and when I click on it and expand the folders, I get something that looks like this:
There are a bunch of .jar files above what you see and maTKProject is the name of my project.
If anyone could give some insight on how to fix this problem, I would greatly appreciate it!
When running the application in debug mode make sure that there aren't any breakpoints that shouldn't be there. Go to Window -> Show View -> Breakpoints and remove as necessary!

Issue in accessing R. resources in Android 2.2

I am very new to Android application development.
I successfully added some backgrounds to several layouts. And added media files to play. However when I rename a file in the folder structure, it shows an error that the resource does not exist.
But I can see those files in gen-><mypackage>->R.java->drawable.
Now my background pictures and resources do not appear in code.
R.layout.splashforproduct1 it shows an error for splashforproduct1.
not only splashforproduct1 but this issue is the same for R.raw.media.mp4
This is not first time I have got this issues. Please help me.
I am using Android 2.2 with eclipse.
If cleaning your project doesn't work try this: Scroll up to the top of the file and delete the import lines. Then wait for Eclipse to detect your changes and let it work out what you need to import and accept its suggestions.
I guess you just need to clean your project.
In Eclipse you do it clicking:
Project -> Clean and then you choose your android project.

Categories