How to install SpiderBasic v3.20 on Linux?

Everything else that doesn't fall into one of the other categories.
AZJIO
Posts: 81
Joined: Wed Dec 14, 2022 1:13 pm

How to install SpiderBasic v3.20 on Linux?

Post by AZJIO »

1. I ran the install-cordova.sh script. He suggested that I install three packages npm, curl, openjdk-17-jre. I have installed all these packages. And then he installed cordova.
2. When I compile I get this

Code: Select all

Using cordova-fetch for cordova-android@14.0.1
Adding android project...
Creating Cordova project for the Android platform:
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@14.0.1
Installing "cordova-plugin-device" for android
Adding cordova-plugin-device to package.json
Installing "cordova-plugin-battery-status" for android
Adding cordova-plugin-battery-status to package.json
Installing "cordova-plugin-vibration" for android
Adding cordova-plugin-vibration to package.json
Installing "cordova-plugin-brightness" for android
Adding cordova-plugin-brightness to package.json
Installing "cordova-plugin-nativeaudio" for android
Adding cordova-plugin-nativeaudio to package.json
Checking Java JDK and Android SDK versions
ANDROID_HOME=/home/user/Apps/spiderbasic_demo/android/android/sdk (recommended setting)
ANDROID_SDK_ROOT=undefined (DEPRECATED)
Failed to run "javac -version", make sure that you have a JDK version 8 installed.
You can get it from the following location:
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Linux Mint 22.3
Fred
Site Admin
Posts: 1862
Joined: Mon Feb 24, 2014 10:51 am

Re: How to install SpiderBasic v3.20 on Linux?

Post by Fred »

how did you install openjdk ? May be you will need to set the JAVA_HOME env var in your term before launching the compilation
AZJIO
Posts: 81
Joined: Wed Dec 14, 2022 1:13 pm

Re: How to install SpiderBasic v3.20 on Linux?

Post by AZJIO »

Code: Select all

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
echo $JAVA_HOME
screenshot jdk-8
screenshot jdk-17

But nothing has changed.


zulu17.64.17-ca-jdk17.0.18-linux_x64.tar.gz
zulu8.92.0.21-ca-jdk8.0.482-linux_x64.tar.gz

Code: Select all

export JAVA_HOME=/home/user/Apps/jdk8.0.482-linux_x64
echo $JAVA_HOME
But nothing has changed.

How do I use --verbose?

https://www.oracle.com/technetwork/java ... 33151.html
In compliance with U.S. and applicable Export laws we are unable to process your request to https://signon.oracle.com/signin. Please contact RPLS-Ops_ww@oracle.com if you believe you are receiving this notice in error.
AZJIO
Posts: 81
Joined: Wed Dec 14, 2022 1:13 pm

Re: How to install SpiderBasic v3.20 on Linux?

Post by AZJIO »

SPIDERBASIC_HOME is used in the script, but it is not defined. I added it manually, but it should work during installation.
AZJIO
Posts: 81
Joined: Wed Dec 14, 2022 1:13 pm

Re: How to install SpiderBasic v3.20 on Linux?

Post by AZJIO »

I was advised to do the following, which I did.

I unpacked "/opt/java" here, I got the path "/opt/java/jdk1.8.0/bin"

Adding an alternative with the ID 100

Code: Select all

sudo update-alternatives --install /usr/bin/java java /opt/java/jdk1.8*/bin/java 100
Choosing an alternative by choosing an identifier

Code: Select all

sudo update-alternatives --config java
Unpack the downloaded from https://services.gradle.org/distributio ... e-8.13-bin .zip to /opt/java/gradle-8.13 folder

Adding an alternative under the identifier 100

Code: Select all

sudo update-alternatives --install /usr/bin/gradle gradle /opt/gradle-8.13/bin/gradle 100
Choosing an alternative by choosing an identifier. It's in one copy, so you don't have to choose.

Code: Select all

sudo update-alternatives --config gradle
Now I get another error.

Code: Select all

Компиляция...
Creating a new cordova project.
Создание приложения...
Using cordova-fetch for cordova-android@14.0.1
Adding android project...
Creating Cordova project for the Android platform:
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@14.0.1
Installing "cordova-plugin-device" for android
Adding cordova-plugin-device to package.json
Installing "cordova-plugin-battery-status" for android
Adding cordova-plugin-battery-status to package.json
Installing "cordova-plugin-vibration" for android
Adding cordova-plugin-vibration to package.json
Installing "cordova-plugin-brightness" for android
Adding cordova-plugin-brightness to package.json
Installing "cordova-plugin-nativeaudio" for android
Adding cordova-plugin-nativeaudio to package.json
Checking Java JDK and Android SDK versions
ANDROID_HOME=/home/user/Apps/spiderbasic_demo/android/android/sdk (recommended setting)
ANDROID_SDK_ROOT=undefined (DEPRECATED)
Using Android SDK: /home/user/Apps/spiderbasic_demo/android/android/sdk
> Task :wrapper
[Incubating] Problems report is available at: file:///tmp/spiderbasic-1771449863/app/platforms/android/tools/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.13/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 941ms
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
[Incubating] Problems report is available at: file:///tmp/spiderbasic-1771449863/app/platforms/android/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* Where:
Script '/tmp/spiderbasic-1771449863/app/platforms/android/CordovaLib/cordova.gradle' line: 73
* What went wrong:
A problem occurred evaluating script.
> No installed build tools found. Please install the Android build tools version 35.0.0.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.13/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 429ms
Command failed with exit code 1: /tmp/spiderbasic-1771449863/app/platforms/android/tools/gradlew cdvBuildRelease
I also tried JDK17+gradle-9.3.1, but SB required gradle-8.13 and I returned it back.
AZJIO
Posts: 81
Joined: Wed Dec 14, 2022 1:13 pm

Re: How to install SpiderBasic v3.20 on Linux?

Post by AZJIO »

1. Can you write a Readme that contains commands for installing packages?
2. Can you write how to check the installation of packages, for example gradle -v, java -version and javac -version and show what the output of the results should be?
3. Can you write that installing gradle should give a new gradle folder in the /spiderbasic_demo/android folder?
4. Can you specify that the launch install-cordova.sh they must be executed after installing all packages, otherwise the gradle folder will not be copied to the /spiderbasic_demo/android folder.
5. Can you specify how to run the script install-cordova.sh ? I do this:

Code: Select all

cd ~/Apps/spiderbasic_demo
./install-cordova.sh
Not everyone is an experienced user. I have always used Windows and it is difficult for me to study another system, since I do not understand what it does, but it is easy for me to understand how to check the appearance of files in a folder after the script is running.
6. Can you add JAVA package installation commands (sudo update-alternatives --install /usr/bin/java java/opt/java/jdk1.8*/bin/java 100).
7. Can you add JAVA package switching commands (sudo update-alternatives --config java) if the user has installed several packages?

Can you write in the Readme what the ANDROID_SDK_ROOT, ANDROID_HOME, and JAVA_HOME variables should be equal to? I understand that SPIDERBASIC_HOME is set by the IDE itself. But how are the other variables set? The export JAVA_HOME= command... valid until reboot. Should it matter after restarting the computer? And how do I add it permanently? In the Compilation Settings, I have to specify the path to the JDK, what should I specify there?
Post Reply