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

Tip: Looking for answers? Try searching our database.

executing a "file"

Thread view: 
Raous - 02 Feb 2006 06:03 GMT
Hi,

Is there a command to execute a "file"?

Such registered file types as .doc and .html
have their default executor such as Internet Explorer and MS-Word.

So my question is,
is there any way to execute the files with
their default executor?
Roedy Green - 02 Feb 2006 07:03 GMT
>Is there a command to execute a "file"?
>
>Such registered file types as .doc and .html
>have their default executor such as Internet Explorer and MS-Word.

sort of.  see http://mindprod.com/jgloss/exec.html

You must spawn the local command processor whatever it is called pass
it parameters that will get it to look up the proper handler.

Unfortunately this code is platform specific. I figure Sun did not
want to appear biased in selecting a default command processor for
each platform.
Signature

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

Ranganath Kini - 03 Feb 2006 15:57 GMT
The answer to your problem is Java Desktop Intergration Components or
JDIC project which is a set of APIs allowing you to integrate your
Java-based applications with the desktop system in a platform
independant way. Read more about JDIC here:

http://javadesktop.org/articles/jdic/index.html

And here is a link to some examples of JDIC put to use:

https://jdic.dev.java.net/documentation/Examples.html

Hope it helps!


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



©2009 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.