wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 18500
    
  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: 24183
    
  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.
 
Consider Paul's rocket mass heater.
 
subject: process method
 
Similar Threads
Java certication
Java certication
Kathy's book available in India
Running C++ exe files
Killing a Process ..Please Help