473,804 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java to executable

Hi,

I'm looking for a tool that converts a jar into an executable program (or
something like that). I guess there are a couple of options:
1) Convert the jar into a real executable that runs natively on
the operating system (or similar)
2) Pack a jar file and JRE into one file, and make it look
like an executable file (or similar)
3) any other possibilities welcome

The point is that when I distribute my java program, I don't
want to let my users install JRE if they don't have it.

Is there any good web site that summarizes these techniques?
And also, I appreciate if anyone could recommend tools to
do (1) or (2). It doesn't matter if it is free or payware.

My main platform is Windows, but if the tool supports both
Windows and linux, it's better.
(I'm using JDK 1.4.x, and using JNI, too)

Thank you for your help,

--jaques
Jul 17 '05 #1
3 6024
ja**********@ya hoo.de (Jaques) wrote in message news:<56******* *************** ****@posting.go ogle.com>...
I'm looking for a tool that converts a jar into an executable program (or
something like that). I guess there are a couple of options:
1) Convert the jar into a real executable that runs natively on
the operating system (or similar)
2) Pack a jar file and JRE into one file, and make it look
like an executable file (or similar)
3) any other possibilities welcome

--jaques


hi
there are lot of tools available for this (i havebt used any so i
would not refer to any but theres a wide choice)

as far as your second option goes
i have written a small program in c which runs .class / . jar files
just like any normal file by double clicking it
when you first time click any .class file , your system will ask you
as default viewer is not associated with it (remove any if it is) ,
choose this program & you are done
then you can simply double click any .class file & if you have jre &
..class has main method your file will run as if you manually invoked
java.exe from command prompt

it can be supplied command line arguments , java -switches
i shall mail you if you want

regards
amey
Jul 17 '05 #2
Jaques wrote:
Hi,

I'm looking for a tool that converts a jar into an executable program (or
something like that). I guess there are a couple of options:
1) Convert the jar into a real executable that runs natively on
the operating system (or similar)
2) Pack a jar file and JRE into one file, and make it look
like an executable file (or similar)
3) any other possibilities welcome

The point is that when I distribute my java program, I don't
want to let my users install JRE if they don't have it.

Is there any good web site that summarizes these techniques?
And also, I appreciate if anyone could recommend tools to
do (1) or (2). It doesn't matter if it is free or payware.

My main platform is Windows, but if the tool supports both
Windows and linux, it's better.
(I'm using JDK 1.4.x, and using JNI, too)

Thank you for your help,

--jaques

Hi Jacques,
have a look at this :

http://www.ej-technologies.com/produ.../overview.html)
or http://www.yoda.arachsys.com/java/javaexe.html
or http://www.geocities.com/marcoschmid...mp.html#native

Hope this helps,
brgds Herman

--
Suse Linux Professional 8.1 on Athlon 1.1 Ghz 512 Mb
Anti Spam = remove the "dot" and the "at"
Registered Linux User #264690
Jul 17 '05 #3
ja**********@ya hoo.de (Jaques) wrote in
news:56******** *************** ***@posting.goo gle.com:
Hi,

I'm looking for a tool that converts a jar into an executable program
(or something like that). I guess there are a couple of options:
1) Convert the jar into a real executable that runs natively on
the operating system (or similar)
2) Pack a jar file and JRE into one file, and make it look
like an executable file (or similar)
3) any other possibilities welcome

The point is that when I distribute my java program, I don't
want to let my users install JRE if they don't have it.

Is there any good web site that summarizes these techniques?
And also, I appreciate if anyone could recommend tools to
do (1) or (2). It doesn't matter if it is free or payware.

My main platform is Windows, but if the tool supports both
Windows and linux, it's better.
(I'm using JDK 1.4.x, and using JNI, too)

Thank you for your help,

--jaques


Hi,

I recently found this tool:

http://jsmooth.sourceforge.net/

It wraps your jar into a windows exe. You can specify what JRE is
required for your app and the tool will check if it exists on the user
machine. If the required JRE is not found it will direct the user to
download a suitable JRE. I've used several tools for deploying on
Windows and I have found this one to be most flexible.

Robert
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
28936
by: QQ June | last post by:
Hello, I have some java classes. But, I don't want my users to type "java my_java_program" every time they run the java class ? How do I pack them together into one executable file, like myprogram.exe. ? Any tools can do this for me ?? Thanks & regards, June
114
9898
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
8
1702
by: Beatrice Rutger | last post by:
Hi, I am a previous Micro$oft desertee (moved from VB/VC++ to Java before this whole DOTNET thing) because I had several issues with Micro$oft. I am not completely in love with Windoze, but I have to say that Java SWING sucks BIG TIME for developing and deploying desktop applications (especially on Windoze). Unfortunately, I have been dragged kicking and screaming back to my old haunts - but the landscape has changed somewhat and I...
235
11821
by: napi | last post by:
I think you would agree with me that a C compiler that directly produces Java Byte Code to be run on any JVM is something that is missing to software programmers so far. With such a tool one could stay with C and still be able to produce Java byte code for platform independent apps. Also, old programs (with some tweaking) could be re-compiled and ported to the JVM. We have been developing such a tool over the last 2 years and currently...
6
9136
by: David | last post by:
Hi, I am writing a C# program and want to run a java application and pass it a filename as a parameter. I want to be able to write a method in C# that will run this Java app for me. Eg. I want to run the following command: java MyApplication filename.extension Can anyone help me?
2
2338
Nert
by: Nert | last post by:
Hi.., i have build a simple program which is done few days ago.., it's just a simple chatroom. Now my problem is how can i make my java program executable? i want to run it on the other computer without installing the java and run it like this way (c:\ java mychatroom). any suggestion would be greatly appreciated. thanks in advance. --nert (^_^)
2
1588
by: somyav | last post by:
Hi, I need some guidance on how to turn in the java programs as a executable. My requirement is this: I have a package(with .java and .class files) that I am sending it to my clients. They want the file to be sent as JAR. They need a makefile in it so that they can invoke make command to compile the project. To run the project, they want to give a name project1. Also this project1 should be able to be invoked from any directory. Can anybody...
5
6300
by: r035198x | last post by:
Setting up. Getting started To get started with java, one must download and install a version of Sun's JDK (Java Development Kit). The newest release at the time of writting this article is JDK 6 downloadable from http://java.sun.com/javase/downloads/index.jsp. I will be using JDK 5(update 8)
3
2108
ThatThatGuy
by: ThatThatGuy | last post by:
hello.... having coded in java for a sometime i was wondering how would we create a executable for a java application... i know you can create a jar executable for a java application.... and also there are tools which convert jar to exe.... but that requires JRE on the client machine.... and i think eclipse runs entirely on JVM and not on JRE.... something like that
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10354
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10359
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9177
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3005
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.