I am making a program that needs some of the Java libraries installed already into the computer and also the "classpath" environment variable to be set.
I want to run the set classpath command. Can I do it through java? Or do I need to do something else? Any Example?
Runtime.getRuntime().exec("<command>")to execute commandline commands. But i'm not sure if this is really what you want to do..