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

Everything else that doesn't fall into one of the other categories.
User avatar
Torf
Posts: 7
Joined: Thu Apr 27, 2023 9:20 pm

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

Post 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.
User avatar
Torf
Posts: 7
Joined: Thu Apr 27, 2023 9:20 pm

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

Post by Torf »

Any idea ? :?
User avatar
Torf
Posts: 7
Joined: Thu Apr 27, 2023 9:20 pm

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

Post 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.
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

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

Post by Fred »

You need Java 11
Post Reply