Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How to create a excute file

Reply
Thread Tools

How to create a excute file

 
 
HS1
Guest
Posts: n/a
 
      11-15-2004
Hello all



I want to create an execute file (only one .exe file for Windows) for my
project. This project uses some available component such as JFree for
creating report or mysql-connector to connect to a mySQL database)... . So
when I want to create the file, do I have to add all of those libraries into
this file?



Thank you for your help

S.H1


 
Reply With Quote
 
 
 
 
Ferenc Hechler
Guest
Posts: n/a
 
      11-15-2004
Hello S.H1,

if you use Eclipse you can use my Plug-In "Fat-Jar" to build "executable"
jars ( http://fjep.sourceforge.net/ ).
Basically it packs all classes and jars together into one jar and sets the
Main-Class attribute,
so that this jar can be executed with "java -jar <myexecutable>.jar".
If you have installed the JRE under windows there is a file-association with
".jar" which allows you
to execute your application by simply doubleclicking the
<myexecutable>.jar-file.

Best regards,

feri


"HS1" <> schrieb im Newsbeitrag
news:1100494440.903456@ftpsrv1...
> Hello all
>
>
>
> I want to create an execute file (only one .exe file for Windows) for my
> project. This project uses some available component such as JFree for
> creating report or mysql-connector to connect to a mySQL database)... . So
> when I want to create the file, do I have to add all of those libraries
> into
> this file?
>
>
>
> Thank you for your help
>
> S.H1
>
>



 
Reply With Quote
 
 
 
 
b3ny
Guest
Posts: n/a
 
      11-16-2004
> > I want to create an execute file (only one .exe file for Windows) for my
> > project.

use jsmooth, a freeware exe wrapper tool -> http://jsmooth.sourceforge.net
but java needs to be installed on the target machine

else you can use exelsior jet, a powerful native compiler,
but the programs compiled with the free version work only on the machine
on wich u created them... and the full version is fu**** expensive...


> > This project uses some available component such as JFree for
> > creating report or mysql-connector to connect to a mySQL database)... . So
> > when I want to create the file, do I have to add all of those libraries
> > into

no prop wir jsmooth, u only need to include the jar packages of JFree ...


peace beny
 
Reply With Quote
 
Gerbrand van Dieijen
Guest
Posts: n/a
 
      11-17-2004
On Mon, 15 Nov 2004 17:53:44 +1300, HS1 wrote:
>Hello all
>
>
>
>I want to create an execute file (only one .exe file for Windows) for my
>project. This project uses some available component such as JFree for
>creating report or mysql-connector to connect to a mySQL database)... . So
>when I want to create the file, do I have to add all of those libraries into
>this file?
>


I use Exe4j for that, which works very fine. You still need an JVM, but
you can simple include the folder JRE as subfolder in your applications
directory (which can be packed/installed with it).

--
Gerbrand van Dieijen

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
excute programme on tree view ? HAK Java 0 03-02-2006 08:02 PM
how to excute exe Yoshitha ASP .Net 4 06-28-2005 09:42 AM
I must rebuild when I excute project news C++ 1 11-25-2003 10:15 AM
Re: Very Good network Question For all, Excute file remotely °Mike° Computer Support 0 06-21-2003 09:55 PM
Re: Very Good network Question For all, Excute file remotely He who doth Slump a lot Computer Support 0 06-21-2003 09:43 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57