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 / First Aid / January 2005

Tip: Looking for answers? Try searching our database.

Calling the shell from within a class

Thread view: 
Jean-Benoit MORLA - 30 Jan 2005 18:15 GMT
Hi,
I'm working on oracle 10g on windows XP Pro and I need to sequentially
run four different programs to get a database up and to connect to it.
I thought maybe I can compile a Java executable. I managed it with a
jar manifest.
Then I searched the packages list on the Sun site for Java 1.4.2 but I
don't find one that deals with calling a Window executable from within
a class.
The call should look like:

public class OracleStart()
.
.
  shell( oracle.exe );
.
.

Maybe it does not exist because it would not be portable across
platforms?
Many thanks
Paul - 30 Jan 2005 18:39 GMT
Check out java.lang.Runtime.exec()
There are a few overloads, and maybe some other methods in that class that
could be useful to you.
--Paul

> Hi,
> I'm working on oracle 10g on windows XP Pro and I need to sequentially
[quoted text clipped - 16 lines]
> platforms?
> Many thanks
Big Jim - 30 Jan 2005 18:44 GMT
> Hi,
> I'm working on oracle 10g on windows XP Pro and I need to sequentially
[quoted text clipped - 16 lines]
> platforms?
> Many thanks

Have a look at Runtime.exec()


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.