Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / March 2005

Tip: Looking for answers? Try searching our database.

Easy way to run applications?

Thread view: 
socialconservative@gmail.com - 14 Mar 2005 04:32 GMT
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)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.