B4J Tutorial MonoBuilder - Compile B4J programs on Linux or Mac

Discussion in 'B4J Tutorials' started by Erel, Dec 1, 2015.

  1. Erel

    Erel Administrator Staff Member Licensed User

    Mono is a Mac / Linux port of .Net Framework: http://www.mono-project.com/

    Using Mono it is possible use B4JBuilder, the command line compiler, to compile B4J projects on Linux or Mac.
    (The IDE only runs on Windows.)

    Installation instructions:

    1. Install Mono on the Mac or Linux computer.
    2. Install Java JDK. You can check whether it is installed by running javac.
    3. Download MonoBuilder: www.b4x.com/b4j/files/MonoBuilder.zip and unzip it.
    4. You can now compile the project with the following commands:
    export MONO_IOMAP=all
    path to MonoBuilder>/B4JBuilder.exe -task=build
    If javac is not found then you should edit b4xV5.ini and set the path to the JDK bin folder.

    More information about B4JBuilder: http://www.b4x.com/android/forum/threads/50154/#content

    The package includes the libraries that come with the IDE. You can copy other libraries to the libraries folder. The jar files names must be lowercased.

  2. Firpas

    Firpas Active Member Licensed User

    Hi to everybody,

    I do not know much about Mac and IOS but,
    I`m trying to complile B4JBulder in a Mac (Virtual Machine with VirtualBox)

    I installed Mono checking for Mac works well.

    I have installed Java too.

    When I run the command:

    export MONO_IOMAP=all
    path to MonoBuilder>/B4JBuilder.exe -task=build
    an error occurs as you can see in the attached image

    Thanks in advance

    Attached Files:

  3. Daestrum

    Daestrum Well-Known Member Licensed User

    Are they not two separate commands? Looks like you put them on one line.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice