cannot launch program, java error
all i want to do is replace some textures in a map for a joke mod (repaint?), but for some reason this stupid program wont even launch
the same issue. why?
Did you follow the instructions at https://github.com/ata4/bspsrc#running-bspsource? If so at what step did you encounter this error?
Mine doesnt even launch at all, even with both Java 8 and Java 21 installed. Tried using the command prompt pointing to Java 21's javaw.exe files to launch it, still nothing. Even the bspsrc-jar-only.zip version didn't work either.
1.4.3 still works just fine however.
Mine doesnt even launch at all, even with both Java 8 and Java 21 installed. Tried using the command prompt pointing to Java 21's
javaw.exefiles to launch it, still nothing. Even the bspsrc-jar-only.zip version didn't work either.1.4.3 still works just fine however.
If you want to manually launch bspsrc you need to use the following command javaw.exe -jar <path_to_bspsrc>. Yours is missing the -jar parameter. The reason you are not getting any error is because javaw simply doesn't display them. If you want to see them, use java instead.
However normally you shouldn't need to manually run the application. Did you follow the instruction at https://github.com/ata4/bspsrc#running-bspsource? If so, which step didn't work for you?
Mine doesnt even launch at all, even with both Java 8 and Java 21 installed. Tried using the command prompt pointing to Java 21's
javaw.exefiles to launch it, still nothing. Even the bspsrc-jar-only.zip version didn't work either.1.4.3 still works just fine however.
If you want to manually launch bspsrc you need to use the following command
javaw.exe -jar <path_to_bspsrc>. Yours is missing the-jarparameter. The reason you are not getting any error is becausejavawsimply doesn't display them. If you want to see them, usejavainstead.However normally you shouldn't need to manually run the application. Did you follow the instruction at https://github.com/ata4/bspsrc#running-bspsource? If so, which step didn't work for you?
Tried to run with that (javaw.exe -jar <path_to_bspsrc> command), still nothing, running through WinDbg produces some errors about Access violation. On the other hand, my other PC appears to launch BSPSrc 1.4.4 just fine with the "bspsrc-windows.zip" version (but my main PC won't with both the "bspsrc-windows.zip" and the "bspsrc-jar-only.zip" running through Java 21). Also I already followed the https://github.com/ata4/bspsrc#running-bspsource instruction (and it's the last one that didnt work on both zip version).
Heres another one with the "bspsrc-windows.zip" version, running on Java 19 bundled in that zip, but running with java.exe instead of javaw.exe:
And trying to run it normally through CMD and "java.exe", aswell as git bash:
Thanks for the detailed response! It seems like there is a bug in Java itself, which crashes when instantiating a File Chooser dialog. It seems(?) to be related to special characters in file paths, but I really have no more idea than what is described at https://bugs.openjdk.org/browse/JDK-8305072.
I've create a new issue for this bug for now , but I'm not sure if this is really fixable as the bug stems from Java itself and its quite hard to work around.
