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 / General / October 2007

Tip: Looking for answers? Try searching our database.

How to change my applet into a double-clickable JAR file?

Thread view: 
Randyl - 13 Oct 2007 03:31 GMT
Re: How to change my applet into a double-clickable JAR file?

Greetings:

Recently I developed a Java program that initially was projected to be
available on a web site as an applet. Very late in the development
process, however, it was discovered that Java applets are not allowed
to either read from or write to the user's disk drive. This discovery
prompts a change in strategy. Some time ago I downloaded a Java
application that was contained in a JAR file and when double-clicked
it presented a dialog box and ran the application whenever the
appropriate button was selected. It is this type of application that I
would like to change my program to but I am not quite sure what to do
and is the reason I am asking for your help.

If anyone has a sample program, or can point to such a sample program
on the web somewhere, that demonstrates a full-fledged Java
application packaged as a JAR file, preferably with one or more
ResourceBundle files, since my program is localized, I would be very
grateful.

Best regards,
Randyl Kent Plampin
Andrew Thompson - 13 Oct 2007 04:08 GMT
>Re: How to change my applet into a double-clickable JAR file?

I've got a better idea.  Launch the applet using Java
Web Start.  JWS can..

>Recently I developed a Java program that initially was projected to be
>available on a web site as an applet.

1) Launch applets.
<http://www.physci.org/jws/#jtest>

>..Very late in the development
>process, however, it was discovered that Java applets are not allowed
>to either read from or write to the user's disk drive.

They are, if signed (and the 'grace of the Gods'
favours them at that moment). But..

2) Allow access to the local disks, via the FileContents class.
<http://www.physci.org/jws/#fs>

...
>If anyone has a sample program, or can point to such a sample program
>on the web somewhere, that demonstrates a full-fledged Java
>application packaged as a JAR file, preferably with one or more
>ResourceBundle files, since my program is localized, I would be very
>grateful.

3) Makes localisation easy.  (I don't have an example of that, yet)

Signature

Andrew Thompson
http://www.athompson.info/andrew/



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.