For the past several months, I have been working on a program in Java
that has generated a bit of interest. The program must use as little
screen real estate as possible. I wrote it as an applet, but an
re-writing everything, this time making an application.
What is the easiest way for non-programmers to run Java applications?
No one will want my proggy if they have to download a compiler and
source code.
Thanks in advance
Bryce - 14 Mar 2005 16:23 GMT
>What is the easiest way for non-programmers to run Java applications?
>No one will want my proggy if they have to download a compiler and
>source code.
>
>Thanks in advance
You'll always at least the java runtime. They will need to have the
same version (at a minimum) of the JRE that it was compiled against.
Several ways it can be launched. Batch file is one. There are several
products that will make an exe from a jar (if its in a Windows
environment).
--
now with more cowbell
socialconservative@gmail.com - 14 Mar 2005 18:39 GMT
Thanks. Are there any products that you personally recomend? I always
write applets, so this is new territory for me.
Bryce - 16 Mar 2005 23:51 GMT
>Thanks. Are there any products that you personally recomend? I always
>write applets, so this is new territory for me.
None off the top of my head. My products generally get used
internally, and they are happy with a .bat (or .sh) file.
I believe install4j is used a lot:
http://www.ej-technologies.com/products/install4j/overview.html
Can't vouch for it, never used it.
There's this too:
http://java.sun.com/products/javawebstart/
but never used it.
--
now with more cowbell
Oscar kind - 15 Mar 2005 20:14 GMT
> What is the easiest way for non-programmers to run Java applications?
> No one will want my proggy if they have to download a compiler and
> source code.
That depends on the type of application. GUI applications are easiest run
as an executable .jar file. This is accomplished by putting a Main-Class
header in the manifest. Just append this line:
Main-Class: your.package.ClassWithMainMethod
Command line applications can be run with a small script that starts java:
java -jar jarfile.jar

Signature
Oscar Kind http://home.hccnet.nl/okind/
Software Developer for contact information, see website
PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2
Roy Goodman - 15 Mar 2005 22:32 GMT
socialconservative@gmail.com wrote in news:1110771136.584133.223150
@z14g2000cwz.googlegroups.com:
> What is the easiest way for non-programmers to run Java applications?
> No one will want my proggy if they have to download a compiler and
> source code.
Have you looked into Webstart? That's how we distribute our production
application.
http://java.sun.com/products/javawebstart/index.jsp
Roy
(remove "nospa" from Email to reply)