How do I make system calls in Java? I could do it in C but I'm not sure how to do it in Java. Thanks!!

Recommended Answers

All 3 Replies

What are you trying to do? You can use the System class but there is little reason you should ever do so. The only reason I can think that I ever use it is because of System.out.println() for output.

use java.lang.Runtime.exec() method.

Well thats just cat's pyjamas! Thank you both! I gave the Runtime a go and it worked!

I love C.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.