Without using something like InstallAnywhere, I usually wrap the java
application in a batch file that sets classpath and anything else that it
needs to run.  If it is a command line application I also use dos 'shell'
arguments and pass those as well.  So that the program executes from
anywhere I have a 'batch' directory in my 'path' that these go into.  Swing
apps are easier because I create a link to the batch file and then add
icons, etc and put them into my start menus etc.  Since I've been writing
mostly web apps lately I haven't had time to experiment with other things
like Web Start but looks interesting.  Some time ago I was experimenting
with Borland's native compiler and had some success creating .exe files.
Regards,
Ron


                                                                                       
         
                    "Tim                                                               
         
                    Nicholson"           To:     "JDJList" 
<[EMAIL PROTECTED]>        
                    <tim80               cc:                                           
         
                    @bigpond.com>        Subject:     [jdjlist] getting a java program 
to be    
                                         "standalone" ????                             
         
                    10/01/2002                                                         
         
                    07:15 AM                                                           
         
                    Please                                                             
         
                    respond to                                                         
         
                    "JDJList"                                                          
         
                                                                                       
         
                                                                                       
         




Ok,

I have gotten a few replies on the question of as to how one can get a java
written program to run without having constantly to be tied up to the
software that compiles it.

I should admit, I haven't had the time as yet to read some of the longer
web
pages that I was referred to on this subject yet. So please forgive me for
that.

I am just wanting to know breifly the following :-

we all presumably write programs predominantly in java code, but I guess it
could be written in C, C++ or perhaps Delphi. And we write these programs
presumably for some company to solve a business problem. Like for example,
we might find that we need to write a program in java code that is to
co-ordinate a travel agent business let's say...maybe
for FlightCentre ??? So we come to the point where we have to write the
code
for the system that will document custiomers of FlightCentre and we want to
set this software up in the FlightCentre head office in Sydney let's say.

How do all of you get the software for this example system ready for the
client ?

Assuming you have written all the code in java, how do you get it so that
it
is ready for the client ? I assume that the client is not going to have to
compile the code each time so that they can use it to run their business ?

>From what I know, when you compile the java program, it becomes a different
sort of file as a result of the process ? What file does it become ?

The reason why I mentioned  ".exe" files is because, it appears that this
sort of file is ready to go. In the old DOS system, you would just type in
the name of the file and push enter and teh file would run.

So basically I am talking about the situation where the file or in fact the
whole system which you finished writing in java code for example, is "ready
to go". Now some of you have said that it is perhaps a "bad idea" to make a
jav file into an "executable" or a "native executable" , perhaps the
biggest
reason being because that it makes the resulting file a much bigger one.

So then I would take it that usually this is not the way that all of you
get
the file you have written to be ready for the client ? I only mentioned the
".exe" part because I was trying to get across the idea that I am wanting
to
know what happens when you have completed writing your program/system for
the client in java code and now you want to get it so that the user (your
customer) is able, through the easiest way possible, and through the way
that you all normally do this (ie if you don't normally make java files
into
.exe files for this then don't mention that) to run the program on their
computers and just get it to open ?

Like I suppose in a Windows operating system that usually how it works is
that you open Windows Explorer or perhaps you have an icon for this
particualr program that you have written in java, and either way you just
double click on the file that your arrow is on and that gets the file to
run.

So how do you get a java written program so that it is ready to run and
ready for the client to use ?
In what form does the java written file need to be so that it is ready for
the client to use after you have finished writing it ?

I have not been taught yet how to do this, but it is a question that I'm
sure is very important in the software development process.

I have recieved a few emails from people on my previous email yesterday on
the subject of ".exe" files, but it would appear from some of the replies
that I got, that this is not the usual way people
go about getting the programs they have written ready for their customer.

So then how do you do this ?

And how would you do it if the program had been written in a different
language like C or C++ ?





____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________




____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to