How to make .exe

V

viru4linux

i have make a web browser in java and also make tha jar file of
that ..
so prob is that how i make a .exe file
 
R

Roedy Green

i have make a web browser in java and also make tha jar file of
that ..
so prob is that how i make a .exe file

see http://mindprod.com/jgloss/nativecompiler.html
--
Roedy Green Canadian Mind Products
http://mindprod.com

"Here is a point of no return after which warming becomes unstoppable
and we are probably going to sail right through it.
It is the point at which anthropogenic (human-caused) warming triggers
huge releases of carbon dioxide from warming oceans, or similar releases
of both carbon dioxide and methane from melting permafrost, or both.
Most climate scientists think that point lies not far beyond 2°C (4°F) C hotter."
~ Gwynne Dyer
 
D

Donkey Hottie

i have make a web browser in java and also make tha jar file of
that ..
so prob is that how i make a .exe file

A simple wrapper in C

----------------------------------------------------------

#include <stdlib.h>

int main(int argc, char **argv)
{
return system("javaw -jar browser.jar");
}

----------------------------------------------------------
 
Joined
Feb 11, 2009
Messages
12
Reaction score
0
Why cant we use an executable jar file?
Sorry, I am not able to understand the need for exe
 
A

Arne Vajhøj

viru4linux said:
i have make a web browser in java and also make tha jar file of
that ..
so prob is that how i make a .exe file

You don't.

You just distribute the jar file as an executable jar
(Main-Class directive in manifest).

Arne
 
A

Arne Vajhøj

Donkey said:
A simple wrapper in C

----------------------------------------------------------

#include <stdlib.h>

int main(int argc, char **argv)
{
return system("javaw -jar browser.jar");
}

----------------------------------------------------------

I admin that it takes a few more lines to do it with
JNI, but I think that is the right way instead of
spawning a subprocess.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top