How to create exe file

In one of my project, I need to create an exe file that can call swing application. I know this can be done is C++. ANy idea or suggestion to achieve this using java.regards,Ranjan
[201 byte] By [ranjanbaisaka] at [2007-10-2 20:21:20]
# 1
Google, forum search.
es5f2000a at 2007-7-13 23:03:50 > top of Java-index,Desktop,Developing for the Desktop...
# 2
You can create executable jar filecommand in windows:c:\>jar -cmf myjar.mft myjar.jarcomtent of myjar.mftMain-Class: <class name>
Karthikeyan_Vaithilingama at 2007-7-13 23:03:50 > top of Java-index,Desktop,Developing for the Desktop...
# 3
How do I create a .mft file.....
sharad@javaa at 2007-7-13 23:03:50 > top of Java-index,Desktop,Developing for the Desktop...
# 4

It is a normal text file u can use notepad to create it and save with mft extention

Sample.mft

Main-Class: Sample

Sample.java

import javax.swing.*;

public class Sample extends JFrame

{

public Sample(){

super("Sample");

}

public static void main(String args[]){

Sample s = new Sample();

s.setSize(400,400);

s.setVisible(true);

}

}

Command

jar -cmf Sample.mft *.class

Karthikeyan_Vaithilingama at 2007-7-13 23:03:50 > top of Java-index,Desktop,Developing for the Desktop...
# 5

> In one of my project, I need to create an exe file

> that can call swing application. I know this can be

> done is C++. ANy idea or suggestion to achieve this

> using java.

Why do you need to? EXE files are Windows specific. Java is platform independent. My suggestion would be to reexamine your requirements.

SoulTech2012a at 2007-7-13 23:03:50 > top of Java-index,Desktop,Developing for the Desktop...
# 6
Launch4j can create exe file from a jar file.. it's excellent, you should check it out. http://sourceforge.net/projects/launch4j/
_maxmkleea at 2007-7-13 23:03:50 > top of Java-index,Desktop,Developing for the Desktop...
# 7
There is a tool named "exe4j". download it and it will help you create the exe file for java applications.
Dev@nanoa at 2007-7-13 23:03:50 > top of Java-index,Desktop,Developing for the Desktop...