I'm having problems with Apache Netbeans IDE - java

So, I've recently started to learn Java, and downloaded Netbeans to write the codes in it. I've been using it for at least 4 days now. However, as I write this, I'm having problems whith it. Now, everytime I open it it only shows this:
It only opens a blank frame instead of the Netbeans homepage. Does anyone know how to fix it?

Related

Export a JavaFX project in eclipse to a runable jar

I need to send a project made by JavaFX SDK 16 and Java SE-15 using Eclipse to my friends, but when I try to export it, i'm getting surprised that Eclipse doesn't insert the VM arguments to the exported file :
and as you know since JavaFX SDK 10, JavaFX libraries are not anymore part of the Java SE, so we need to tell Eclipse where to find them by VM arguments, in short words, these VM arguments are really important to run my program.
I already know that I can insert those arguments while using prompt command to open it, but is there a more simple way? just by clicking on the exported file ?
Your main problem is that you are trying to do something that does not make any sense. Runnable jars are not a proper distribution format for JavaFX applications for various technical reasons. The way to go is having a look at jpackage. That's the proper way of dealing with distribution nowadays. Otherwise your are just banging your head against a wall.
Here is a good summary of all the options you have: https://stackoverflow.com/a/68823040/4262407
I have this problem 5 years ago (I use netbeans IDE, so I don't know if it works in eclipse, but I think yes), and I cant find a good way to do this.
Instead, I created one Swing application, and put all code of JavaFX inside.
You could see how I do in
this link from Oracle.

Netbeans: Unable to create new Java Application

Since I remember I've always been able to create a Java Application in Netbeans doing File->New Project->Java->Java Application. Today I turned on my computer and the Java field "disappeared". The only thing I did in the past days is to begin working with Java FX. I checked the Plugins and everything seems fine.
I did some quick research but couldn't find anything similar.
Thanks for the help in advance

Embedding Java Applet into Google Sites Error

Normally I don't ask questions but I've been stuck on this for three days now and can't seem to find the answer anywhere.
I've created a small program in netbeans that's been very useful, it runs fine in netbeans and works the way it's supposed to. However I can't seem to get it to embed properly into a Google site. I've searched everywhere but have been mainly following this tutorial: https://sites.google.com/site/ruslancray/lab/projects/how-to-embed-java-applet-onto-your-google-site
It seems like it should work however I keep getting the same error: ClassFormatError Incompatible magic value 1011373133. I've tried just about everything but it always comes back to that same error. I also tried opening the class file in a hex editor and it does indeed have CA FE BA BE as the first four bytes.
Any help is greatly appreciated.
I don't have a java program on my website but , I think you can deploy java Web application on the Google Sites with Appengine.
https://cloud.google.com/products/app-engine/
I think it's possible with this.

JOGL in Eclipse for Mac

Im trying to get JOGL to work in Eclipse on my Mac but im having some issues; just to clarify I have never used JOGL before in my entire life so this whole thing is very new to me. Ive tried looking for some tutorials but they are all outdated/use different files on every website I go to.
So, I have downloaded the latest build from the JOGL site (jogamp-all-platforms.7z) and I have extracted it. I have a new project in Eclipse which I have just created, when I select 'Add JARs...' in User Libraries im only given the choice of '.classpath' or '.project' which doesn't seem to be an issue on any of the tutorials written. I was just wondering if im doing something wrong at this point?
It's explained
here in the official JogAmp wiki.

Eclipse and JavaFX? is it just me?

I'm looking at learning JavaFX.
I've tried setting Eclipse to develop a small app and I've downloaded the Eclipse plugin.
Eclipse JavaFX plugin
BUT... it just seems, well, flakey.
So I have 3 questions...
1: Is there a better plugin?
2: Or is there some great set of tutorials out there that I'm missing?
3: finally, is it meant to be easy to call Java code from FX? I'm stuggling, it there a good example somewhere?
On questions 1 & 2, Eclipse underlines code in red that just shouln't be. For example..
see this image... alt text http://www.qenet.co.uk/fx.jpg
Why does it underline bit of imports in red?
I know this is little of an open ended question. So I guess my main question is this...
Is my experiance of JavaFX and Eclipse the best I can hope for? Or am I missing something ?
(and I'm not looking for a Yes/No response) :-)
Just looking for a discussion on how best to learn/develop JavaFx.
This kind of thing is not unusual. A lot of Eclipse plugin editors have problems dealing with error tags and the like. For example,
I find that the XML and HTML file editors often fail to clear error and warning markers, and the only way to get rid of the markers it is close and reopen the file.
Even the Java viewer gets it wrong in some circumstances, though the problem goes away when the relevant files are saved.
When you update a spelling dictionary, the spelling checker is not rerun and the spelling error markers are not updated. In fact, you have to restart Eclipse for this to happen.
I suggest that you try saving files, and closing/reopening editors to see if that makes the bogus error markers go away. Then decide whether Eclipse is the right IDE for this task.
I've never used NetBeans (at all), but you would expect that it would do a better job supporting JavaFX. After all NetBeans and JavaFX are both high profile Sun products at the moment.
Netbeans is really the only way to go at the moment for JavaFX development. They are both Sun products and Sun has made sure the two work very well together. Before long Eclipse and others will catch up but for the moment that's how it is.
There is another JavaFX plug-in for Eclipse from Exadel. You can download it here: http://exadel.org/javafxplugin. Give it a try.
I have similar problems but funnily only under Linux, not Windows. Hope they change that soon.
To me this has happened when I wronlgy installed javafx sdk 1.2.3....This plugin works only with 1.2.1... :/

Categories