School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,138 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 3,870 people online right now. Registration is fast and FREE... Join Now!



Create EXE from java class

Create EXE from java class development of java code to .exe Rate Topic: -----

#1 bellobichi2  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 5
  • Joined: 30-December 08


Dream Kudos: 0

Posted 08 January 2009 - 04:55 AM

I am using JCreator as my java IDE, please how cant develop my java code to .exe
Tell me tha IDE that will do this work to me.
example of code
/**
 * @(#)label.java
 *
 * label application
 *
 * @author 
 * @version 1.00 2008/12/30
 */

 
	 /**
 * @(#)label.java
 *
 * label application
 *
 * @author 
 * @version 1.00 2008/12/30
 */

 import java.awt.*;
  import java.awt.event.*;
  import javax.swing.*;
public class label {
	
	public static void main(String[] args) {
		
   JFrame frame = new mainframe();
   	  frame.show();
	
	}
}
	 class mainframe extends JFrame{
	 	mainframe(){
	 		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	 		setTitle("LABEL");
	 		setLocation(25,25);
	 		setSize(400,500);
	 		setBackground(Color.green);
	 		getContentPane().add(new tempPanel());
		   	
		
	 	
	 		
	 	}
	 }
	 class tempPanel extends JPanel implements ActionListener {
	 	JLabel d;
	 	JLabel c;
	 	JTextField f;
		 JButton boton;

		JLabel l1;
	 	tempPanel(){
		
	 		d = new JLabel("enter farentheiht tempurature");
	 		f = new JTextField(5);
		 	c = new JLabel();
		 	
		l1 = new JLabel("			   ");

		boton = new JButton("boot");
		setLayout(new BorderLayout());

		add(d,BorderLayout.WEST);
	add(f,BorderLayout.EAST);
	 	addİ;
	add(l1);
		
	 	add(boton,BorderLayout.SOUTH);
		
		boton.addActionListener(this);
	 	}
			public void actionPerformed(ActionEvent event ){
	 		double fn = Double.parseDouble(f.getText());
	 		double cn = (5*(fn - 32))/9;
	 		f.setText("");
	 		c.setText("the tic" + cn);
	 	
	 	}
		
					
	 	
		  
	 	
	 }

Was This Post Helpful? 0
  • +
  • -


#2 ayman_mastermind  Icon User is offline

  • human.setType("geek");
  • Icon
  • View blog
  • Group: Greeters
  • Posts: 1,833
  • Joined: 12-December 08


Dream Kudos: 525

Posted 08 January 2009 - 05:10 AM

If you want to make an .exe out of your java program then you should use a class to exe or jar to exe program.JCreator does not create .exe files, you can create jar files. After having your java class(or jar file) compiled and ready download a jar to exe converter for example http://www.ej-techno...j/overview.html which is a very good one by the way, and then you can convert your class file or your generated jar file to a .exe file easily :) , hope this helps , good luck ;)
Was This Post Helpful? 0
  • +
  • -

#3 Jayman  Icon User is online

  • Student of Life
  • Icon
  • View blog
  • Group: Admins
  • Posts: 8,836
  • Joined: 26-December 05


Dream Kudos: 500

Expert In: Everything

Posted 08 January 2009 - 08:40 AM

Renamed title to be more descriptive of the problem.
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month