I have a JavaFX Application which is built in Eclipse IDE and runs fine in my Environment since I also have the JAVA FX SDK connected to the environment. How can I have my Application run on any computer. I want to know how or is it possible for a JAVA FX Application to run on any computer even without the JAVA FX SDK. I have made my project into a JAR File however I can only run my program using Command Prompt since I run the Jar File, also having to include the VM Environments to have the program run. What steps can I take to have my Application to turn in an application which a normal user can run on their computer. I have looked over this Stack Overflow Question which uses a Launch 4j to turn a jar into a .exe. What is the significance that the file being a .exe? Will it run on a computer without Java FX? My question is mainly on how will my program usability be affected since it uses JAVA FX?
Try jpackage to generate native bundle if you are using java module system.
Or jlink to generate a custom jre and write a start script.
Related
I developed an application made of three scripts calling each other and that generates a basic GUI with gWidgetsand uses lot of libraries.
I was wondering how to deploy this and make sure that the libraries are installed on the client machine.
Thanks
I have a shared host server, I have no root privileges on it, I can't write in system files, so I can't configure Java_Home.
I am searching for a solution to deploy my java application on the server.
I have a runnable jar.
can't I transform it to a machine language that doesn't require java?
As far as I am aware, there is no simple way to compile an entire an entire Java executable JAR into native binaries. If the machine does not have a JVM, this is quite a difficult problem.
If the machine is windows based, you might have success with Launch4j, a free executable wrapping tool.
If not, I would recommend trying packr, a similar tool supporting packaging for any system.
I need to run a GUI application as part of BuildMaster deploy. Currently I added a PowerShell action that launches that application. The problem is the process is started but there is no GUI. I guess it is caused by the fact BuildMaster agent (that executes the PowerShell script) is a Windows Service. Is there any way to resolve it?
A Windows Service cannot launch applications with a GUI (as of Windows Vista / Server 2008 and newer at least), as they run in session 0 and will never be seen by an actual user. You might be able to hack around this by setting the "Interact With Desktop" flag, but that isn't really recommended at this point.
Is it possible to re-architect the application that has to be run into something that doesn't present a GUI and instead accepts command-line arguments?
Fitnesse download page only has option for standalone.jar and this is also what the instructions are for. Is it somehow possible to install FitNesse on a separate app server, such as Tomcat? There's not directly any war/ear to download, but can I bundle one somehow?
I'm experimenting with acceptance testing frameworks and need to run the tests on a very specific test environment, and thus require a possibility for installing on an already running app container where the tests are executed. Changes for getting even java executable from command line in this environment are slim, and if possible, the process would take probably months to realize.
I do not believe it is possible, but even if you were to get the wiki running inside an app server, a test run would still try to start a new java process (by starting the java executable) so you still need access to that executable.
But does the test environment really need to be in the app server? I usually use FitNesse to test an application from the outside: the test framework makes remote (http) calls to an application running in an app server, but it does not run in that same app server itself.
I develop Flex-Java applications which is running under Apache Tomcat. I use Flex Builder plug-in for Eclipse as my IDE. My application consists of several libraries and modules. I manage all of them as a small maven (flex-mojos) projects.
Does anybody can share some ideas how to setup robust debuging enviroment?
I use Maven & Flexmojos from the command line and the Flash builder 4 plugin inside of Eclipse. In my project I also have a Java/BlazeDS backend I like to debug at the same time as the Flex client on occasion.
Here's what I do:
1) I used cargo to startup an instance of my Java backend that DOES NOT have the SWF or HTML wrapper in it.
2) I've created a "Web Application" debug launch configuration where the launch URL just points to a file (e.g. "/path/to/my/flash-builder/bin/myapp-wrapper.html").
3) When I launch this debug configuration from within Eclipse the Flex debugger Just Works. As soon as a stop point it opened the Flex Debugger perspective automatically opens.
By launching a debug configuration directly from Eclipse I don't have to rebuild and redeploy a WAR file after each change made to the Flex app. In fact, after I shut down the Flex client I just leave the Java server running and reconnect with the next debugging launch.
In order debug the Java side, I start the application server with the JVM debugger command line arguments and launch a Remote Java Debugger debug launch configuration. Eclipse has no problem running both debuggers at the same time.
The only problem with this setup happens when I need to run the Flex web app from an http:// URL (for example to get flashvars to retrieve URL query parameters). In this case it is a long round-trip to get maven to created the WAR and deploy it, then to launch the debugger...after every Flex client source edit. I posted a question on how to make that case better (http://stackoverflow.com/questions/4426053/quickly-debug-flex-java-web-application-from-eclipse).
This is an area of interest to me so let me know what you are looking for and I can probably help more.