How to develop JavaFX applications with Openjdk? - netbeans

On Netbeans every time I choose a new JavaFx Application project it will ask me to "add a platform" unless I add the Oracle Java JDK I will be stuck there. Is there a way to use Openjdk to get around the problem?

Just build a self-contained application/installer with the Oracle JDK and you are done. What's the problem?
(By someone who doesn't care about the deep religious aspects of free software :-)

Hummm... Either I'm missing something or I don't understand. :( You will need the JDK to program Java applications.As far as building Java GUI, Have you given JavaFX scene builder a shot? check it out here: Java FX scenbuilder. If I'm missing something please let me know. Seems like I am...

You may want to check this answer to a similar question : https://stackoverflow.com/a/19529820/4773709
Basicly, it says that you can build an openJDK version which includes JavaFX (OpenJFX) following the instructions given here .
But there are no linux distribution that offer a JavaFX package, meaning, if you develop an application using JavaFX, the OpenJDK users won't be able to use it unless they've also built their OpenJDK themselves.

Related

SWT project on Creme jvm, windows mobile 6.5

I am starting a java SWT project with creme 4.12 jvm for a windows mobile 6.5 pocket pc.
I really dont know where to start. could not google out any good documentation or example, just a few questions in forums.
I would like to know:
Is there any good docs around that i was unable to find?
Do i have to put any extra configuration on eclipse or i can create and build a simple java project, with sdk 1.3.
I have included the swt-32.dll as native library in swt.jar
i have tried to run it on the device but it crashes before running.
Sorry for the long question, but i really dont know what to do.
I have not that much experience with CrEme although I know that some large WM installs use that.
I can do an AWT app in netbeans and run it successfully on a device.
Look for the netbeans mobility pack to start with CrEme and netbeans.
OTOH you can go on with eclipse. Where did you get the swt files from? I found one source here http://davy.preuveneers.be/phoneme/?q=node/15.
Here is one source I found for an intro to SWT on WM: http://www.eclipse.org/articles/Article-small-cup-of-swt/pocket-PC.html

Failed to create javafx flatform in netbeans

I got this error when I'm trying to create a Java Swing Application, by using Netbeans.
I really don't know how to fix this error. Internet did't give me a really good answer.
I Unistalled Netbeans & then reInstalled. but It doesn't work.
How can I fix this error. Thank you.
I don't have a NetBeans installation at hand, but have a look at your Java installations configured in NetBeans ("Java Platform Manager" in Tools menu?). Select the Java version you are using. There should be a JavaFX tab. I think you can disable it there, if you don't need it.
Note: If you're using the latest Java version from Oracle, then JavaFX should automatically be configured correctly, since JavaFX is now shipped with the JDK.

Setup GWT and eclipse on windows

I am looking to build a website in GWT top replace a couple of desktop apps we have here at work, I programmed in java 12 years ago so the code should not be a problem.
I am having problems with installation GET and Eclipse.
I seem that when you use the latest version of Eclipse (Juno 4.2) and try to use the GWt Plug in the installer process fail looking for very specific versions of libaries.
My question is "Is there a recommended version of eclipse and GWT that is not on the cutting edge and I can get to work with relative ease"
I hope this will help you for using GWT in Eclipse
Use this. Get the newest Eclipse "Juno" and choose the standard java version.
Now you need to use the proper link for the plug in. For Juno it is 4.2. If the guide in the link doesn't work, check your firewall.
Found the problem I used the standard and java versions of eclipse.. if you using the J2EE version everything runs as normal

How to build a stand-alone scala executable

I am trying to create a standalone .exe file (or something equivalent) from a scala project I have started. I need to create this in such a way thet the person using the application has to do the least amount of work possible (double-click an installer or just the .exe file). What are my options?
Have a look one OneJar. There is also a sbt plugin here
Take a look at ej-technologies the creators of JProfiler, they have a couple of products that might be useful to you, quoting from their product page:
install4j A cross platform Java installer
that generates native installers and application launchers for your
Java applications.
exe4j A Java exe maker that helps you integrate your Java applications into the Windows operating environment.
These are both commercial products and although I haven't used them, I have used JProfiler for many years.
I've heard of this one: Lauch4j.
According to the site:
It's possible to wrap applications on Windows, Linux, Mac OS X and
Solaris
IzPack plugin for SBT might be useful.
Even scala itself uses it: They use IzPack

NetBeans Platform 6.7 does not run on Java 1.5

I have also posted this question on the netbeans forums - hoping for maximum exposure.
I am developing an application using NetBeans RELEASE67 and maven-nbm plugin.
I use Java WebStart to deploy.
My users have a mixture of java 1.6 and java 1.5
My java 1.5 users are unable to use the software;
on startup the software calls TopComponent.findInstance()
and this results in
java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
I can see that javax.swing.GroupLayout is new to java 1.6+, and am stumped that the basic TopComponent code is so tied to java 1.6.
How can I get a NetBeans platform app to run under Java 1.5?
I will try to rewind to RELEASE65 in the hope this will solve the problem.
Any suggestions?
Thanks alot.
Are you including swing-layout.jar in your deployment? You'll need that for running on pre-Java 6 platforms.
Apologies for the slow response.
My problem was that I was running the IDE under Java 6, and Matisse had created all the layouts using the java6 only class javax.swing.GroupLayout.
I didn't notice the problem until I had to run the software on the minoritiy of my clients who are stuck on Java 1.5
This is easily fixed using the following procedure
Open the TopComponent in the 'Inspector' window
Right-click on the root node (Form TopComponent). Select the 'Properties Windo
In the properties window there is a line about 'Layout Generation Style'. The choice is between
Standard Java 6 Code
Swing Layout Extensions Library
Select the latter option.
Rebuild