Page 1 of 1

Error "Javascript optimizer has failed (Java is required)."

Posted: Wed Jul 19, 2023 9:31 am
by Torf
Hello.

When I try to generate an IOS APP, if I check option "Enable Debugger", I get the error:

Javascript optimizer has failed (Java is required). I think that my Java configuration is correct, in PureBasic and in SO environment variables (PATH and JAVA_LIBRARY). In my case, I'm using PB in MacOS and in PB-Preferences-Compiler I have this settings for Java path:

/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/

I have set too my Apple Team ID.

If I disable the option "Enable debugger" no error message is shown and the console prints the erroneous message "Successfully export to 'app name.ipa', but it is not a correct message because none app is generate.

Re: Error "Javascript optimizer has failed (Java is required)."

Posted: Thu Oct 12, 2023 6:13 pm
by Torf
Any idea ? :?

Re: Error "Javascript optimizer has failed (Java is required)."

Posted: Mon Oct 16, 2023 3:24 pm
by Torf
I have updated SB and checked and now I have this message:

Code: Select all

SpiderBasic - 
Using cordova-fetch for cordova-ios
And SB aborts here. It's not possible build an iOS app.

Re: Error "Javascript optimizer has failed (Java is required)."

Posted: Fri Oct 20, 2023 3:47 pm
by Fred
You need Java 11