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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "process method" Watch "process method" New topic
Author

process method

arjun krishna
Greenhorn

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
author
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40

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

Henry


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

Joined: Jul 08, 2003
Posts: 24187
    
  34

Hi,

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
Greenhorn

Joined: Mar 02, 2006
Posts: 7
Hello sir,
Thank you..
I got it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: process method