• Post Reply Bookmark Topic Watch Topic
  • New Topic

creating applications  RSS feed

 
kelly devon
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
am not sure where this should go but after writting a program how do
u get to run the apllication on another system wat steps are involved
pls someone put me through
thx
 
Joe Ess
Bartender
Posts: 9443
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest thing to do is just copy the class files over to the other computer and change that computer's CLASSPATH. Of course, you may misplace one and render your program inoperable or your users may be sensitive about you changing their environment settings, so Java has an easy-to-use archive format: JAR. Here are the basics on using the jar program and here is how to make a jar archive "executable".
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Java In General (Intermediate)
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll want to make sure the other system has a compatible JRE, too.

Are you looking to make a commercial product, share it with friends, deploy it within a company or something else? The target audience makes a lot of difference. You can ask some people to install a JRE and unzip your application while others want a lot more automation.

I have a medium complex program that I have distributed to friends in one zip file. It contains the program, a ton of data, a JRE (huge, sorry) and a batch file that modifies the path and classpath (all relative paths) and starts the program. So my audience has to be comfortable with unzipping and launching a batch file. And they have to run Windows.

I've done several others with everything but the JRE. Those users have to be comfortable setting up a compatible JRE.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!