473,382 Members | 1,362 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

source code of process.java

Hi...

I was unable to find the implementation of process.java. What i need is the implementation of waitFor() method of process.java. but at every place what i find is the abstract class. could any of you send me an implementation code of the process.java

thnkx...
Jan 31 '08 #1
6 2427
r035198x
13,262 8TB
Hi...

I was unable to find the implementation of process.java. What i need is the implementation of waitFor() method of process.java. but at every place what i find is the abstract class. could any of you send me an implementation code of the process.java

thnkx...
Check your JDK installation directory. There's usually a zipped file containing the sources of the standard Java classes.
Jan 31 '08 #2
JosAH
11,448 Expert 8TB
Check your JDK installation directory. There's usually a zipped file containing the sources of the standard Java classes.
The source of that part isn't there: when you drill down the Process class you'll
end up in the ProcessImpl class that has a native 'create()' method that actually
creates another process for you through a 'priviledged' action. It's all C and/or
C++ down there (which doesn't surprise me).

kind regards,

Jos
Jan 31 '08 #3
r035198x
13,262 8TB
The source of that part isn't there: when you drill down the Process class you'll
end up in the ProcessImpl class that has a native 'create()' method that actually
creates another process for you through a 'priviledged' action. It's all C and/or
C++ down there (which doesn't surprise me).

kind regards,

Jos
How did you get to the ProcessImpl class?
Jan 31 '08 #4
JosAH
11,448 Expert 8TB
How did you get to the ProcessImpl class?
I took this route: Runtime.exec() calls a ProcessBuilder which calls a ProcessImpl.

kind regards,

Jos
Jan 31 '08 #5
r035198x
13,262 8TB
I took this route: Runtime.exec() calls a ProcessBuilder which calls a ProcessImpl.

kind regards,

Jos
And that indeed is it.Hopefully the OP won't ask us where to get the C/C++ codes for that.
Jan 31 '08 #6
BigDaddyLH
1,216 Expert 1GB
Why do you need to see the implementation? Isn't consulting the API enough?
Jan 31 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: FISH | last post by:
Ever have one of those days when you're not sure if it's you who's gone mad, or the rest of the world? I have an Open Source project on SourceForge for communication with YSMG - Yahoo's IM...
0
by: Lane Friesen | last post by:
I've developed a new form of client-based, secure 'Web Memory' that uses the JAVA or dotNET VM to launch a 'terminate and stay resident' program fragment that maintains persistence between web...
1
by: Roberto Nunnari | last post by:
Hi all. I announce that there's a brand new, free FSM Generator in the Open Source arena: NunniFSMGen - release 1.0-RC1 http://nunnifsmgen.nunnisoft.ch NunniFSMGen is a java tool that...
8
by: Dhanvi | last post by:
Hi Everyone, I am working on an application at my workplace that is a classical example of an applciation that would need middleware to connect various applications.. but I was looking for open...
4
by: melanie_23 | last post by:
Hello! At my company, we are in the process of deciding which programming language to take between JSP and ASP.NET to produce dynamic web sites for our clients. By now, all the major advantages...
158
by: Giovanni Bajo | last post by:
Hello, I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the "PSF infrastracture committee", after weeks of evaluation, recommends...
1
by: tactech | last post by:
Hello Can somebody help me and tell me why I can’t change the background color of the second PN2 panel. I get this error about unknown source Exception in thread "AWT-EventQueue-1"...
0
by: Richard Jones | last post by:
Call for Papers --------------- Open Source Developers' Conference 2007 - Brisbane, Australia "Success in Development & Business" OSDC is a grass-roots conference providing Open Source...
4
by: Quill_Patricia | last post by:
I have a Python script which is used to load data into a database. Up to now this script has been run by customers from the Windows command prompt using "python edg_loader.pyc". Any error messages...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.