Hi, Winni
I present the installation instructions below:
- Uninstall the default WINE
- add WINEHQ repository. The instruction can be found under the link ->
https://wiki.winehq.org/Ubuntu
- install winehq-stagging - I use this branch
The above steps are optional - follow them if there are installation problems under the default WINE
- generate a 32bit environment for WINE.....
in the console:
WINEARCH=win32 WINEPREFIX=/home/USER_DIRECTORY/.wine-B4A winecfg
setup WINE - select windows7 or newer, update disks in the Drive tab. Apply and OK
- install winetricks
- install corefonts:
WINEPREFIX=/home/USER_DIRECTORY/.wine-B4A winetricks corefonts
- install .NET Framework 4.0 or 4.5 ( I have net 4.0 installed )
WINEPREFIX=/home/USER_DIRECTORY/.wine-B4A winetricks dotnet40
During the installation of dotnet40, follow the winetricks installer's instructions.
You will need to download several files manually indicated by winetricks.
- Now follow the instructions on the page ->
https://www.b4x.com/b4a.html
download 32bit ( Windows x86 ) Java 8 JDK and install it
WINEPREFIX=/home/USER_DIRECTORY/.wine-B4A wine /path/to/download/jdk-8u181-windows-i586.exe
There was a problem - there are probably no fonts installed for WINE. A small key must be confirmed in a new window.
If the JDK installer does not close itself, stop it by CTRL + C
Download the AndroidSDK archive and unpack it to some place. For me it is /home/pawel/.wine-B4A/drive_c/users/pawel/Android
Download and install B4A. I do not have the full version of B4A so I install the trial version..
WINEPREFIX=/home/USER_DIRECTORY/.wine-B4A wine /path/to/b4a-trial.exe
Now we run B4A and configure the paths. From B4A level we install Android SDK packages
WINEPREFIX=/home/USER_DIRECTORY/.wine-B4A wine /home/USER_DIRECTORY/.wine-B4A/drive_c/Program\ Files/Anywhere\ Software/Basic4android/B4A.exe
( if B4A is installed in the default path )
Now open Tools> Configure Paths and set the path to javac.exe
Klick button Open SDK Manager and set path for sdkmanager.bat and install packages.
After installing the SDK packages, set the path for android.jar
Finally, you can create an activator for running B4A on your desktop.
B4A_Bridge, B4A_Designer and Compile program works ok.
B4J in the latest version also works under WINE. The installation proceeds in the same way.
Good luck,