Click to See Complete Forum and Search --> : how to create .exe & jar using j2sdk1.4.0?


@n!e
08-03-2003, 03:23 PM
hi, i would like to know how to create .exe & .jar file. i got two major part of java codes; For example:

- 1st of all i need to compile the server.java into 1 .exe/jar file.
- 2nd is to compile the client.java(which is the 2nd main part of my
codes),chatdialog.java, & chatconstants.java into 1 .exe/jar file.

What are the basic n simple steps that i need to follow in order to compile the above provided codes? I'm not very expert on java, can tell me step by step on creating both type of file?
Thanks in advance.

:confused:

bwkaz
08-06-2003, 07:36 PM
.exe's don't exist on Linux.

Binaries are what it has instead -- they aren't identified by file extension (almost nothing is), but rather a magic number in the file near the beginning.

I don't know of any way to turn Java .class files into real Linux binaries, either. On Windows, you can run them through one of Microsoft's compilers to get a .exe, but that is hardly portable.

dimitrylevin
08-12-2003, 09:39 PM
For native binaries (like .exe on windows and .bin on linux), you might want to try a program called InstallAnywhere - it lets you create graphical installers for java programs.

For .jar's, jEdit has a plugin called JarMaker that lets you create jar files. The plugin uses a visual interface to make creating jar's easy.

andysimmons
08-12-2003, 10:05 PM
If your kernel was compiled with Java support, you can just chmod +x whatever.class and execute it just like a binary.