Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 08-10-2009
Member
 
Join Date: Aug 2009
Posts: 12
Can I create .exe file in java?

Hi,

I am not sure about the , .exe files & i want to know how can I create an .exe file in java & execute it or If I can execute an .exe file stored on my hdd?

Please help me with .exe files. I know these are executable files but want to know how to create them & execute them in java?
Reply With Quote
  #2  
Old 08-10-2009
Member
 
Join Date: Apr 2008
Posts: 43
Re: Can I create .exe file in java?

Well one thing that you must know is that Java is platform independent language.
The exe files are executable files which run on microsoft windows whioch do not require compilers or interpreters for execution.
Its possible to create an exe file in java but its not a good idea & not recommended.
Reply With Quote
  #3  
Old 08-10-2009
Member
 
Join Date: May 2008
Posts: 33
Re: Can I create .exe file in java?

Hi I think you need to read this :
Convert Java to EXE -
How do I make an .EXE file from my Java application
Need help converting jar to exe
Is it possible to create a Windows executable using Java

Please go through this too.
Packaging Programs in JAR Files
Reply With Quote
  #4  
Old 08-10-2009
Member
 
Join Date: May 2008
Posts: 32
Re: Can I create .exe file in java?

You can't make exe file of the Java class, I heard there are some third party tools which may help you but its against javas fundamental rule 'write once execute anywhere',
but u can create executable jar of java file , can do like this
jar -cf Customer.jar META-INF -C C:\build files
Customer.jar is what is going to create & meta-inf directory contains your dd files and files is the file which u need to be get it in to jar.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Can I create .exe file in java?"
Thread Thread Starter Forum Replies Last Post
Driver error: Cannot create a file when that file already exists Nickason Windows XP Support 1 21-03-2013 03:52 PM
Windows 7: Unable to create file with File system error (65535) TheHibiscus Operating Systems 4 23-01-2011 07:07 PM
Create Zip File in Java Kushan Software Development 3 08-12-2009 01:04 PM
How to create XML file in Java Suzane Software Development 3 27-04-2009 06:00 PM


All times are GMT +5.5. The time now is 02:24 AM.