IT Community - Software Programming, Web Development and Technical Support

exe file for java applications?

This is a discussion on exe file for java applications? within the Java Programming forums, part of the Software Development category; how can i make exe files for java applications?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Java Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-21-2008, 03:11 AM
saravanan saravanan is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 181
saravanan is on a distinguished road
Default exe file for java applications?

how can i make exe files for java applications?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-26-2008, 01:28 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 320
amansundar is on a distinguished road
Default Re: exe file for java applications?

This is the sort of thing that scripting languages are used for.

Creating an EXE file for Java sources is generally bad attempt. Java is
designed to be completely platform independent .your .class files are able
to run on any OS and hardware platform. As soon as you package them
into an EXE file, however, you've now locked your code to run on ONE OS
on ONE hardware platform.

Instead of doing this, package your classes into a runnable JAR file.
Then create a script that will launch it for the user.
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-26-2008, 02:35 AM
saravanan saravanan is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 181
saravanan is on a distinguished road
Default Re: exe file for java applications?

Quote:
Originally Posted by amansundar View Post
This is the sort of thing that scripting languages are used for.

Creating an EXE file for Java sources is generally bad attempt. Java is
designed to be completely platform independent .your .class files are able
to run on any OS and hardware platform. As soon as you package them
into an EXE file, however, you've now locked your code to run on ONE OS
on ONE hardware platform.

Instead of doing this, package your classes into a runnable JAR file.
Then create a script that will launch it for the user.
hi!

thanks for your intrest

but i need to package my application with all supporting files and class files. i need to make it as a single installer to run on client machine. now i am using jar files but i need to install jre to run the jar. totally i need to install the back end then the jdk then my package. please refer me a single process to do all the process.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-26-2008, 05:14 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 320
amansundar is on a distinguished road
Default Re: exe file for java applications?

hi saravanan,
other than converting all the class file into jar file..i think there is no other way..since EXE file which is AFAIK is meant for windows os(may be working on mac too..correct me if am wrong) you cant make it out in your client machine which is operating through linux os....
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
play mp3 file using java application? saravanan Java Programming 1 03-26-2008 01:15 AM
File extension of the code file & object repository file in QTP vigneshgets Testing Tools 1 01-16-2008 10:43 PM
How to list the content of jar file in java? oxygen Java Programming 2 09-13-2007 11:46 PM
convert Excel file to CSV(or text) file using java mobilegeek Java Programming 2 09-06-2007 05:42 AM
How to create a ZIP File in Java? bluesky Java Programming 1 07-25-2007 05:03 AM


All times are GMT -7. The time now is 09:18 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0