Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 22nd, 2007, 11:20 AM
Authorized User
 
Join Date: Nov 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do I turn a java program into a download


I am successfully making and thoroughly debugged various java programs using Jbuilder 2005 and I am hoping to turn this into a business by selling my compiled programs over the net as downloads. But what I don’t know is what I must do to a compiled java program so that it is made into an executable form of a download that can be sent over the net.

A client must be able to download my application from the net (from a website I have yet to set up) to their desktop and then when they double click the icon for it on their desktop, just like when you double click any other icon on your desktop, this simply automatically causes the application to open and run. But I have no idea of how the desktop ’knows’ what program it must run when an icon is double-clicked. Obviously I don’t want a client to have to open any IDE like Jbuilder to run it nor do I want the client to have to run it by explicitly using any command prompt.

Aren’t many applications sold over the internet as downloads written in java byte-code? If so, surely it must be possible for me to make such a download, isn’t it? If any one give me a few pointers (or even websites) on how to do this I would be most grateful.

        AndrewH:)

 
Old April 23rd, 2007, 11:33 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,
JBuilder has an option to make a java application into an executable application [exe] or in to an executable jar file, user just need to double click on it. If you go through the JBuilder help, you will find how to do it.

Regards,
Rakesh
 
Old April 25th, 2007, 09:02 AM
Authorized User
 
Join Date: Nov 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default


I went to help|help topics|deployment in Jbuilder. I look under the deployment section and I found what is says very difficult to understand. I am new to this and I didn’t know what a jar file was until I looked it up I a book. I am not sure what I am doing but I tried to make a jar file of a project called jarDownload by making this the current project and then by going to file| new…|archive in Jbuilder. I then select one of the archive types to make an archive. The archive type I chose was ‘Application’ -is this the correct choice for my purpose?
I then kept clicking ‘next’ without changing any default properties and then I finally clicked ‘finish’ and a new symbol appeared in the top-left pane of Jbuilder named ‘Application’ so I assumed that I had succeeded in making a jar file. But then when I did a search on the hard disk for a file called jarDownload .jar , according to the search , no such file exists! But even if I found such a jar file, I would not know what I should do with it. What would the next step be? Can anyone tell me the proper way to make jar files for my purpose?

            AndrewH:)

 
Old May 1st, 2007, 04:42 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

you can find step by step instructions on how to make an executable jar file using JBuilder at the following link

http://info.borland.com/techpubs/jbu...y_archive.html

Regards,
Rakesh
 
Old May 2nd, 2007, 05:53 AM
Authorized User
 
Join Date: Nov 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for that.
I now will perform some long and very careful reading of this link.

    AndrewH:)






Similar Threads
Thread Thread Starter Forum Replies Last Post
java program help chris1012 Java Basics 3 November 8th, 2007 09:35 AM
how to complie java program fafa Apache Tomcat 1 June 15th, 2006 05:10 AM
java program todeepak_g JSP Basics 0 January 25th, 2006 06:04 AM
java program todeepak_g JSP Basics 0 January 25th, 2006 06:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.