How to convert java project into .exe file? - exe

i created selenium webdriver java project,is it possible to convert into .exe file.If it is possible means whether it runs in all other devices without need of any specifications.

Consider Launch4J java exe wrapper: http://launch4j.sourceforge.net/
Here is the documentation: http://launch4j.sourceforge.net/docs.html

In looking for a solution to this myself I recently created an application that can generate executable launchers, with optional embedded icon, for jar files.
CStExe will compile C# scripts into Windows executables, you can write C# scripts, or edit the included example script, to launch a batch file that points to your jar files or directly launch the jar file from the C# script then use CStExe to compile the script into a Windows executable.
Personally I prefer to use the executable to launch a batch (.bat) file rather than launching the jar directly. With this method you can just edit the batch file to reflect command/argument changes over the course of your applications development without having to re-compile the executable.
You can grab CStExe from my personal site here:
http://1337atr.weebly.com/cstexe.html
P.S. One of the benefits of this method is that you have a few options in regards to how the end user has access to the Java Runtime Environment.
One of my favorites is that you can bundle the JRE with your application so that the end user doesn't have to install it at all. In this case simply include the JRE in a subdirectory of your application.
For example if you have created an executable that launches a batch file that points to your jar, instead of calling java -jar from the batch file use something like "Java\JRE_1.8.0_25\bin\java.exe -jar Jars\MyApplication.jar" without quotes. This will launch the application via the included JRE.
Conversely if you're skilled in C# you could write your C# script so that running the compiled executable will check for installed Java and if it is either not found or an incorrect version instead of trying to launch the application it launches an included JRE installer or opens a web browser to the JRE download page.

Related

How to ship an openfl desktop (windows) application

I created a haxe project using openfl. I can build and run the project on my own desktop using lime test windows.
Now how do I actually ship this project to other users?
I tried simply zipping the binary output created by running the command above. When I then unpack this zip on a different computer and start the executable file it will complain that I'm missing certain .dll files (more specifically the libstdc++-6.dll file).
Although this is not a direct answer to your question, a solution to this issue would be to compile through another software/tool, such as FlashDevelop.
For a few versions already, FlashDevelop includes an App manager feature that allows you to easily install the latest versions of Haxe, Lime & OpenFl (in an all-in-one package), and compile for all the Haxe/Lime/OpenFl targets seamlessly by just switching a value in a drop-down menu.
This allowed me to compile without any problems native C++ or Neko versions of my projects, thus embedding all the necessary files that could be zipped and sent to other computers.

bitrock installer - getting started for Linux

I have read the first few sections of "http://installbuilder.bitrock.com/docs/installbuilder-userguide/index.html" may be 3 to 4 times, but it is quite unclear to me.
I have a project/product that needs to be installed/unistalled/upgraded on user machines, so I guess I can make use of BitRock installer to accomplish the same. Having said that, below are my details:
Target system: Linux (can be 32 bit or 64 bit)
Project Developed using : Qt and C++ etc
For simplicity, if I call the name of the project directory as "Hello world" and my .pro file as "Hello world.pro" and my executable as "Hello world", how can I generate a package depending on the target system (debian or rpm based). As I said, I read the user guide but totally confused about how to integrate BitRock with my development system to generate installer, uninstaller or upgrade binaries.
All I did was download the bitrock installer for QT based Linux, changed the permission of the binary, executed it and chose the default options. Please help me with a simple example.
Btw, the most basic question is that, for me a double click on the installer "installbuilder-qt-8.6.0-linux-installer.run" does not work. No GUI comes up. I prefer to create my installer using the GUI, rather than manually writing XML files
Thanks
This may not be the answer to your question, but the what you are trying is not the standard way of deployment on Linux, instead of using .run file (hardly used) it is better to create debian and rpm packages which can be installed with a single click.
Since you are using Qt you can also try Qt installer framework, which helps you create cross-platform Window Style installers.
http://qt-project.org/wiki/Qt-Installer-Framework

How to use the JRE bundled in a JavaFX 2 self-contained application to start a runnable JAR on Mac OS X?

I created a JavaFX 2 self-contained application for Mac OS X. It works fine.
Inside the application bundle (.app), there's a PlugIns directory and inside the PlugIns directory there's a directory that contains the JRE.
How can I use that JRE to launch another Runnable Jar?
I look inside the JRE directory, but I can't find a java executable binary.
The reason is that the generated binary in your MacOS-Folder bootstraps java by using the libjvm.dylib directly. You could try copying the java-binary from your java installation into a folder bin next to jre
From http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm#A1307236:
Each self-contained application package includes the following:
A private copy of the Java and JavaFX Runtimes, to be used by this application only
So it appears that by design you are not supposed to be able to use that JRE with any other application. But I am not aware of what checks are in place to enforce this.

SWF building through API

I want to build my project by using a custom program. Does the Flash Professional CS5 give support to some API that i can use to build the FLA project from outside the IDE to build the project?
You can use JSFL scripts to send open and build commands to Flash Professional, but you'll need to have it installed, and there is no commandline compiler, each script will be run by the IDE itself.

Can a groovy code be compiled to run in JRE?

I am new to groovy and I cannot understand, if it is possible to compile a groovy program, so it runs at all computers, were the JRE is installed.
The application I am developing has to run on any computer with JRE 1.5. Is it possible to start using groovy and maintain this flexibility? With JRE 1.6?
I have heard about the library groovy-all-VERSION.jar. Is this the one required library to be shipped with my application?
The answer is yes. In fact, all groovy code compiles down to Java classes that run on the JRE. All you need is JRE 1.4 or higher and the groovy-all-*.jar on the classpath of your application.
Since you are looking to support JRE 1.5 or higher, make sure your source compatibility is set on your compiler to this level.
There are a few options for compiling your groovy code. Groovyc (Ant Task), GMaven (Maven) and Gradle are all options.
Another option you have is to 'not' compile your groovy code. The groovy distribution only requires the JRE to be installed. You can ship your application as a set of scripts that can simply be run using the groovy install. It depends on how sensitive your source code is.
The short answer is yes. How you do this depends on your build system. I do all my development in eclipse, right click my project, select export, select runnable jar file, and all the required librarys are exported in the jar file. I can then run this file on a machine with out Groovy installed. I know build systems like Maven support Groovy but don't know the details on how they do it or how good there support is. According to this question Java 1.4 or above is fine. When looking at the "Setting up your Java environment" section of the initial tutorial it looks like you need Java 1.5 installed.

Resources