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 / March 2006

Tip: Looking for answers? Try searching our database.

Java as the default application

Thread view: 
Rationem - 23 Mar 2006 21:47 GMT
Is there a way to make a JAR file the default application to load when
clicking on a certain file type on windows? On a Mac?

Thanks,
Adam
Oliver Wong - 23 Mar 2006 21:56 GMT
> Is there a way to make a JAR file the default application to load when
> clicking on a certain file type on windows? On a Mac?

   Yes. You can have the user do it "manually", or you can have your
program request to do this (though you will have to write OS specific code),
or you can use JAWS to do it automatically for you.

   - Oliver
Roedy Green - 23 Mar 2006 22:39 GMT
>Is there a way to make a JAR file the default application to load when
>clicking on a certain file type on windows?

see http://mindprod.com/jgloss/jar.html#ASSOCIATION

I think you meant making java.exe the default application when
clicking a *.jar.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Rationem - 23 Mar 2006 22:42 GMT
> >Is there a way to make a JAR file the default application to load when
> >clicking on a certain file type on windows?

> see http://mindprod.com/jgloss/jar.html#ASSOCIATION
> I think you meant making java.exe the default application when
> clicking a *.jar.
> --
> Canadian Mind Products, Roedy Green.
> http://mindprod.com Java custom programming, consulting and coaching.

No - I mean something like double clicking helloILoveJava.abc will load
JarFile.jar, much like double clicking a .doc opens it in Word.
Roedy Green - 24 Mar 2006 00:27 GMT
>No - I mean something like double clicking helloILoveJava.abc will load
>JarFile.jar, much like double clicking a .doc opens it in Word.

Ok. to do that you set up an association between *.abc and
java.exe -jar c:\somedir\xxx.jar %1
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Monique Y. Mudama - 23 Mar 2006 22:42 GMT
>>Is there a way to make a JAR file the default application to load
>>when clicking on a certain file type on windows?
[quoted text clipped - 3 lines]
> I think you meant making java.exe the default application when
> clicking a *.jar.

They might not.  Think, eg, a text editor implemented in Java.

Signature

monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html



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.