Updated: Feb 24, 2019, by Scott Cadillac
Back to Other Development Environment Setups

Install & Setup B4J (Basic4Java)



About B4J

The Basic4Java (B4J) Integrated Development Environment (IDE) offered by Anywhere Software runs on the Microsoft Windows Operating System. The compiled Desktop applications that you build with B4J can then be distributed to Windows, macOS, Raspberry Pi or Linux

The B4J IDE was first publicly released in Dec, 2013 and was created and still maintained by Erel Uziel.

This IDE is for designing and developing Intel-based Desktop, Console & Server applications and ARM-based apps for Raspberry Pi, using the B4X variant of BASIC. Applications built using B4J are compiled to a Java *.jar file for distribution to a Java Virtual Machine (JVM) that can run on Windows, macOS or Linux. Although compiled Java applications are not considered native on Windows, they could still be preferred over native for a variety of reasons.

BONUS: the fully functional B4J IDE is 100% Free with no royalty or distribution fees.

As outlined on the Anywhere Software Product page for B4J, the following steps will attempt to expand on how to do a full working install of the B4J IDE, covering the version 7.x series.



Step # 1. Find a Java Development Kit (JDK)

The B4J install instructions gives you the choice of using either the OpenJDK (& OpenJFX) 11.0 runtime or the Standard Oracle JDK 8.

For this tutorial, I've chosen to use the Oracle JDK 8, which is currently available from Oracle on this downloaded page.

If you have already previously installed a Java JDK, please skip ahead to Step # 5.



Step # 2. Choosing the Right Oracle JDK to Download

Screen-shot from the Oracle JDK download page.




Step # 3. Download and Start the Oracle JDK Install

Click on the appropriate Windows x86 (32-bit) or Windows x64 (64-bit) *.exe link of the Java SE Development Kit to download the file to your local Windows Downloads folder, e.g., C:\Users\Scott\Downloads.

After double-clicking on the jdk *.exe installer file (or initiate running within your browser download list), a warning message may popup depending on your Windows User Account Control settings.




Step # 4. The Oracle JDK Install Wizard Screens

The following install wizard screens (pages) are presented in order that they appear.

Wizard page 1.



Wizard page 2.



Wizard page 3.



Wizard page 4.



Wizard page 5.



Wizard page 6.



Wizard page 7.





Step # 5. Download and Start the B4J (Basic4Java) Installer

A direct link to the B4J installer can be found on the Anywhere Software website at: https://www.b4x.com/b4j.html#installation. The following is a screen-shot of where to find the link on the B4J installation page:



If the installation link is not working, please refer to the homepage of Anywhere Software at https://www.b4x.com/ and look for new links to the B4J product and/or installation page.

After downloading the B4J.exe installer to your Downloads folder, double-click the *.exe installer file (or initiate running within your browser download list). At this point a warning message may appear, depending on your Windows User Account Control settings.





Step # 6. The B4J (Basic4Java) Install Wizard Screens

The following install wizard screens (pages) are presented in order that they appear.

Wizard page 1.



Wizard page 2.



Wizard page 3.



Wizard page 4.



Wizard page 5.



Wizard page 6.





Step # 7. Open B4J and Configure Path to the Java JDK

To open the B4J IDE for the first time, click the Windows Start button to find the B4J menu folder. Within the menu folder is the B4J app icon, which you can click to start right away, or to also pin to the Start menu for easier access.



Before being able to fully utilize the B4J IDE, you must point the IDE at your local Java JDK. This is done by using the "Configure Paths" dialog in the B4J IDE.

Once the B4J IDE is open, click on the "Tools" pull-down menu and select "Configure Paths" to open the "Paths Configuration" dialog.

From within the "Paths Configuration" dialog, click the "Browse" button for "javac.exe" path. Then navigate until you find the javac.exe file located where you installed Java (see Step # 4. above).

If you used the Oracle installer default path, the javac.exe file should be located in the C:\Program Files\Java\jdk1.8.0_201\bin folder.

After clicking "Open" in the file finder dialog, then the "javac.exe" path should be populated in the "Paths Configuration" dialog.

Then click "OK" to save the path.

The B4J IDE is now ready to use!



Next: Upgrade B4J (Basic4Java)