aspose file tools
The moose likes Beginning Java and the fly likes process method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "process method" Watch "process method" New topic

process method

arjun krishna

Joined: Mar 02, 2006
Posts: 7
Can i use process contructor in a prog from Process class.
pls send me a sample prog
Henry Wong

Joined: Sep 28, 2004
Posts: 19308

The Process class is abstract. You can't instantiate one directly.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189


Welcome to JavaRanch!

Are you talking about the java.lang.Process class? You create these using the Runtime.exec() methods or the ProcessBuilder class (in JDK 1.5). Process itself is an abstract class with no code in it at all -- it could have been an interface, and probably should have been. Because it's abstract, you can't create an instance of it. But if you could, it wouldn't do anything at all; only its platform-specific subclasses will actually start a process.

[Jess in Action][AskingGoodQuestions]
arjun krishna

Joined: Mar 02, 2006
Posts: 7
Hello sir,
Thank you..
I got it.
I agree. Here's the link:
subject: process method