The Artima Developer Community
Sponsored Link

Java Answers Forum
How to run command on operating within java

5 replies on 1 page. Most recent reply: Jul 10, 2002 4:42 PM by mansoor

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 5 replies on 1 page
mansoor

Posts: 7
Nickname: mansoor
Registered: Jul, 2002

How to run command on operating within java Posted: Jul 9, 2002 11:02 PM
Reply to this message Reply
Advertisement
Hi,
Could u tell me how can one run system command within a java program? I m talking about something simialar to C++ System function


akim

Posts: 12
Nickname: akim
Registered: Jul, 2002

answer Posted: Jul 10, 2002 1:36 AM
Reply to this message Reply
java script

akim

Posts: 12
Nickname: akim
Registered: Jul, 2002

answer Posted: Jul 10, 2002 1:37 AM
Reply to this message Reply
by using java script actually

akim

Posts: 12
Nickname: akim
Registered: Jul, 2002

answer Posted: Jul 10, 2002 1:37 AM
Reply to this message Reply
by using java script actually

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: answer Posted: Jul 10, 2002 11:11 AM
Reply to this message Reply
What is this nonsense about JavaScript? Just do this:
System.getRuntime().exec( "sol" );

mansoor

Posts: 7
Nickname: mansoor
Registered: Jul, 2002

Re: How to run command on operating within java Posted: Jul 10, 2002 4:42 PM
Reply to this message Reply
Thank you for answering. Your help is much appreciated :-)

Flat View: This topic has 5 replies on 1 page
Topic: how can I set up a JTable so that the user cannot move the columns around? Previous Topic   Next Topic Topic: Java trigger exe file?

Sponsored Links



Google
  Web Artima.com   

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