Welcome to our forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Forum Statistics

  • Forum Members:
  • Total Threads:
  • Total Posts: 4
There are 1 users currently browsing forums.
Java Programming Created by Sun Microsystems, Java remains to be one of the most powerful, cross-platform languages of choice by professionals everywhere. Capable of creating advanced desktop applications and web services, Java is tough to master, so ask your questions here.

Reply
  #1  
Old 06-13-2009
Toddler
 
Join Date: Jun 2009
Posts: 12
Rep Power: 0
dunker is on a distinguished road
Make an executable file..(Question)

Hey,

I have written a program with java codes..

I want to do my abc.java as an executable ..

How can i do this ?

if solution has given, sorry about this thread. ( i have searched but i cant find anything for my problem.)

Thanks for respondings.
Reply With Quote
  #2  
Old 06-14-2009
Bipolarcat's Avatar
Owned much?
 
Join Date: Nov 2008
Location: The Virgo Supercluster
Posts: 78
Rep Power: 2
Bipolarcat is on a distinguished road
Re: Make an executable file..(Question)

If you have BlueJ, it looks quite simple. (I'm assuming you have Windows XP, because that's all I know how to teach.

Link - Tutorial

Link - BlueJ Website


Once you have your JAR file created, you must make Windows recognize JAR files and know what to open them with. Once you double-click your new .jar file, a window will come up and tell you that it doesn't know what to open the file with. Click browse.

Go into your Program Files directory and find Java. Click the folder containing the latest version of Java, then the "bin" directory, then select Javaw. Select "Always use the selected program to open this kind of file."

If it still doesn't work, then go into any folder in Windows explorer and click Tools -> Folder Options. Select the File Types tab. Find the .jar extension, click it, and click Advanced. Under the "Actions" list, click "open."

Edit this action, and go to the end of the application path and type "-jar "%1""

EXAMPLE:

Code:
"C:\Program Files\Java\jre1.6.0_07\bin\javaw.exe" -jar "%1"

Last edited by Bipolarcat; 06-14-2009 at 07:26 AM.
Reply With Quote
  #3  
Old 06-14-2009
Toddler
 
Join Date: Jun 2009
Posts: 12
Rep Power: 0
dunker is on a distinguished road
Re: Make an executable file..(Question)

Thanks for detailed information.

By the way, i'm using Windows Vista x86 and the editor which is called Eclipse but i hope it resembles to BlueJ .
Reply With Quote
  #4  
Old 09-18-2009
m_t m_t is offline
Toddler
 
Join Date: Aug 2009
Posts: 8
Rep Power: 0
m_t is on a distinguished road
Re: Make an executable file..(Question)

Bibolarcat thanks for your good information it really helped a lot.
Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

BB 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
fread & fwrite help waheedahmed C and C++ Programming 7 07-17-2006 05:34 AM
ASP Global.asa File wizard General Web Programming 0 01-02-2005 08:55 AM
Simple Config File Vio-Bear PHP Articles 0 09-04-2004 05:34 AM