954,545 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to make .exe file for my java prg

Hi all,
I want to know how to give an .exe file for my java prg.
pla help me.

datta.saru@gmai
Newbie Poster
4 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 

NativeJ is a program that can make an exe for your jar files for Windows users

Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51
 
DavidRyan
Posting Whiz in Training
229 posts since Jul 2006
Reputation Points: 22
Solved Threads: 11
 

Thanks for your prompt reply, but can you give me some code how i go about it?
give me a small java prg for adding 2 numbers and code for developing .exe.

Thanks a lot

datta.saru@gmai
Newbie Poster
4 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 
import java.io.*;
class add
{
	public static void main(String arg[])
	{
		float c,a,b;
		try
		{	
			DataInputStream x=new DataInputStream(System.in);
			System.out.println("Enter two numbers");
			a=Float.parseFloat(x.readLine());
			b=Float.parseFloat(x.readLine());
			c=a+b;
			System.out.println("sum="+c);
		}
		catch(Exception e)
		{
		}
	}
}
sarath_p_j
Newbie Poster
1 post since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

I didn't see the dates at all. Sorry. @sarath_p_j: The OP has long gone.

verruckt24
Posting Shark
952 posts since Nov 2008
Reputation Points: 485
Solved Threads: 89
 

what is the easiest way to make .exe in java.
i am a beginner, PL help me with full guide

anurag barua
Newbie Poster
1 post since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

Next time, please make a new thread. This thread is very old.

If you are absolutely sure you want an .exe, and there are many reasons not to, try some of the links above or just searching the terms yourself.

coil
Posting Whiz in Training
273 posts since Aug 2010
Reputation Points: 27
Solved Threads: 56
 

And for reference you can't make a .exe from source code you implement in java.
Only .jar and then you can use a 3rd party program to package it in .exe.

yasuodancez
Newbie Poster
23 posts since Aug 2010
Reputation Points: 7
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You