The Artima Developer Community
Sponsored Link

Java Answers Forum
Java details question

3 replies on 1 page. Most recent reply: Aug 5, 2003 10:20 AM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
shon

Posts: 42
Nickname: shon
Registered: Apr, 2003

Java details question Posted: Aug 4, 2003 6:10 AM
Reply to this message Reply
Advertisement
How to used java to call a program to open.
For example: if the java program need to call ABC.exe to open, how this can be possible ?

Thanks for answering


Mik Lernout

Posts: 10
Nickname: miklernout
Registered: Jan, 2003

Re: Java details question Posted: Aug 4, 2003 10:50 AM
Reply to this message Reply
Depends a bit on whet you call 'opening', but you can start a native process by calling:

Runtime.getRuntime().exec("ABC.exe");


Have a look at the following javadoc for more information: http://java.sun.com/j2se/1.3/docs/api/java/lang/Runtime.html

shon

Posts: 42
Nickname: shon
Registered: Apr, 2003

Re: Java details question Posted: Aug 5, 2003 7:42 AM
Reply to this message Reply
Thanks for ur help .. i m very appretiate it

Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Java details question Posted: Aug 5, 2003 10:20 AM
Reply to this message Reply
Runtime demo program at:
http://www.quantumhyperspace.com/SourceBank/viewCode.jsp?javaFile=RuntimeDemo.java

Flat View: This topic has 3 replies on 1 page
Topic: Regarding Applets Previous Topic   Next Topic Topic: Got this null pointer exception problem

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use