Per request, I have pasted the full command I'm trying to run. Why does Java not run this correctly as opposed to entering the same command into a terminal? FWIW, ProcessExplorer shows that the process I tried to start does have the correct arguments, but clearly something is different. Why does this code cause Minecraft to not display a window of any kind? Using ProcessExplorer, I can see that the process was created and spun off but, as opposed to pasting the command in a terminal, never shows the game window or any sort of indication it's running. I have passed my command and arguments the same way as demonstrated. Runtime.getRuntime().exec(command).waitFor() *ProcessBuilder procbuilder = new ProcessBuilder(processArgs) However, I feel the non-tech-savvy people would have a hard time with this so I'm trying to make my program launch the game itself. The launcher gives you a command to paste back into Powershell ISE (the only unblocked terminal) to start the game. exe files but have Java installed, I wrote my own launch system that I can use instead of the regular Minecraft launcher. Since my school computers blocks unknown apps or.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |