bspsrc icon indicating copy to clipboard operation
bspsrc copied to clipboard

cannot launch program, java error

Open scarletshadowzz opened this issue 1 year ago • 6 comments

image 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

scarletshadowzz avatar Nov 27 '23 11:11 scarletshadowzz

the same issue. why?

VictorMolokanov avatar Dec 06 '23 12:12 VictorMolokanov

Did you follow the instructions at https://github.com/ata4/bspsrc#running-bspsource? If so at what step did you encounter this error?

rihi avatar Dec 07 '23 13:12 rihi

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. image

1.4.3 still works just fine however.

megakarlach avatar Dec 28 '23 07:12 megakarlach

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. image

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?

rihi avatar Dec 29 '23 22:12 rihi

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. image 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?

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). image

image

image image

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: image

And trying to run it normally through CMD and "java.exe", aswell as git bash: image

image

megakarlach avatar Dec 30 '23 04:12 megakarlach

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.

rihi avatar Jan 11 '24 16:01 rihi