Hey, i'm writing a simple program that uses a JFileChooser to select a .java file, copies it to the C:/java directory, then compiles it into a .jar file. I'm having problems launching command.bat and running the commands. My code currently looks like: (My mainClass.txt is already in the target directory)
People seem to think these things happen overnight or something. It'd take at least 3-5 years, if not more, to spin up a factory to make these things, and even then, it'd mostly, if not fully, be automated. The actual hands on human jobs it'd have would be limited in number in the end.
There's also the fact that, sure you could try to build them locally, but guess what? The actual raw materials will still need to be sourced from outside the US. China has a stranglehold on the rare earth minerals needed to build all this fancy tech and they're already starting to use it as a threat in any trade war/negotiations.
So not only would you have to move the factories, you'd have to find new sources of the REMs you need to actually build things.
Question
Juts
Hey, i'm writing a simple program that uses a JFileChooser to select a .java file, copies it to the C:/java directory, then compiles it into a .jar file. I'm having problems launching command.bat and running the commands. My code currently looks like: (My mainClass.txt is already in the target directory)
Link to comment
https://www.neowin.net/forum/topic/620450-java-runtimegetruntimeexec-help/Share on other sites
14 answers to this question
Recommended Posts