I am building a desktop application using JavaFX, and have installed scene builder integrated with NetBeans. Now I am trying to install fx experience tool on my windows platform but getting some JRE problem.
All my NetBeans and Scene Builder with JDK 8 environment working fine only error with installing FX Experience Tool.
** Log File Link **
Since you didn't specify the name of the tool, I initially assumed you were referring to ScenicView.
But you are using fxetools, I was able to install and run it on Java 1.7.0_71 under Windows 8.1.
Here's what you do:
In the directory that contains fxetools, there is a jre directory that is included (1.6.0_30).
RENAME this directory from jre to jre6.
NOW, when you start fxetools, it should look to your currently installed jre, or at least, to the jre specified by JAVA_HOME. I don't know whether the application is fully functional, but at least it should run for you now as it did for me. See http://i.stack.imgur.com/HO7n8.jpg
Related
We have deployed a Java based application for MacOS and Windows. We have now the issue that some users don't have Java installed and seem to be unable to figure out the error message and install Java on their own. This is only the problem for MacOS users, as we used Lauch4J for Windows, which redirects directly to Oracle in case Java is not yet installed. Is there any possibility to do this also for MacOS?
The alternative would be to ship the application directly with JRE or make it runnable without JRE at all. What are the alternatives and which is the easiest?
Thanks in advance!
It's not that you don't need JRE it's that you need to package the application with it. Look into Launch4j and jpackage or javapacker for java 8.
I am following JavaFX tutorial found at
http://code.makery.ch/java/javafx-8-tutorial-part7/
which describes how to create native installer with 'Inno Setup'.
I am using e(fx)clipse 4.4 with java 8 JRE installed only and 1.8 compiler
and i do it for windows (exe).
Everything works fine, but when i install exported native application it create folders for JRE
runtime/jre8/
program wont start and says
jvm.dll is not found in bundled runtime.
if i change manualy runtime/jre8/ to runtime/jre/ - it start without any problem.
I did not found any settings in project for specifing runtime path.
How do i make my native installer make right path for runtime?
Solved. Just noticed that i was using standalone jre for project c:\dev\java\jre8 but supposed to use jre from jdk package c:\dev\java\jdk1.8.0_05\jre.
Now installer creates proper path for runtime - runtime/jre/
I had JDK 1.7.0_25 and Netbeans 7.3.1 as well as Javafx + Scenebuilder 1.1 installed on Window 7 64-bit. All worked fine. Now that a newer JAVA is out, I uninstalled everything then downloaded and installed the Netbeans 7.3.1 + JDK 1.7.0_40 bundle and installed Scene builder 1.1. Supposedly, this should have JAVAFX included. I've also changed the PATH variable to point to C:\Program files\Java\jdk1.7.0_40\bin. Java projects compile fine. However, JAVAFX projects fail with the message:
java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.7.0_25\bin\java"
The java platforms all point to JDK 1.7.0_40.
Is there some other place which might still be pointing to jdk1.7.0_25?
Any help is much appreciated!
Many thanks!
It sounds a lot like you need to edit your project settings and set the project's build and run SDKs to the right location. If these are set, they'll be overriding the PATH variable.
I'd like to install Eclipse on Ubuntu for Java development. I'm happy to trade having the newest version for steady updates via package management.
I've done the usual sudo apt-get install eclipse eclipse-jdt (java-7-openjdk-i386 is installed and working)
However, when I start Eclipse, there seems to be almost nothing available - no Java editing (not even 'Installed JREs' is present under Window/Preferences). I've tried adding various update sites, installing Marketplace client, WTP, Java EE etc. but just can't get a working install. Oddly, I have it running fine on another machine I set up about a year ago (with the help of How do I install Eclipse Marketplace in Eclipse Classic?)
I've given up and reverted to a manual install (along the lines of Eclipse 3.6 Helios for Ubuntu 10.10) but wanted to ask:
Am I missing something obvious?
I strongly recommend you not to install Eclipse in that way, it is not really useful and you will get just the Eclipse with the Java Standard Perspective. What I recommend you is to download the tar.gz file from the page (including the Java EE perspective). Copy the tar file in a directory where you want all your development tools, like /home/user/dev/eclipse and start from there. You can create a launcher in your desktop to get a faster access to the IDE. When I started with Ubuntu, I used to install the way you had installed (sudo apt-get...) but I can tell you that the best way to do is to install it manually. If the JDK is well installed, you will not have any problem launching your Eclipse. Best regards.
How can i make up am installer for my java application (jar file) . The same as that of windows installer which proceeds by clicking next and installs the application. What i want with my java app is, the open source library xuggler to get installed if it is not already present in the system.Then i want JRE to get installed if it is not already present in the system.
If the user does not have xuggler or JRE installed , installer should automatically install the xuggler and JRE. Or it should tell the user to get that version of libraries from the given URL and then continue.
Your question is similar to this one:
how to package a java application
Advanced Installer has a separate edition especially for creating installers for Java apps, so this might be what you are looking for. I would recommend other tools but since they're scriptable, they're a hassle to work with, lots of things can go wrong.
Hope this helps
If your app. has a GUI, use deployJava.js for the JRE and then Java Web Start to install/launch the app.
An installer-desc can be specified in the JNLP file to install Xuggle. JWS can partition the download between OS.
JWS is supplied by the makers of J2SE JREs for desktop PCs (e.g. running Mac OSX, *nix or Windows).
NullSoft have a very good scriptable, opensource installer called NSIS.
http://nsis.sourceforge.net/Main_Page
I'm not aware of a cross platform way to do this. In the Windows world, you can use Wix to generate an MSI file, and in that file you can specify dependencies such as the JRE. In the Linux world you can generate a file with the dependencies read by the package manager, a deb file for Debian based releases for example. It's a bit of a faff to set things like this up separately, but once it's done you can just integrate it into your ant script and build everything automatically.