OK Here is the full answer:
First Compiling Bonita on Windows does not work due to long path names > 256 characters. Doesn’t even work in Windows 10 with the new extra long file names due to program assignment issues.
Note that the instructions for Compiling Bonitasoft Community from Source are also being reviewed as they don’t work/there are things missing. There are already bug reports submitted for this on Atlassian, Nos: 405 and 407.
When will they be fixed? How long is a piece of String???
Also you MUST compile everything in Order for it to work, you cannot compile just one part as later parts have dependencies to previous parts and pull them in.
The easiest way to Compile Bonitasoft on Windows is to use a Virtual Machine, the one I’ve found very quick and easy to use, and is free, is VirtualBox.
Note - I’m not adding ALL Instructions, I have done a lot here and I think it’s good for others to learn things too. So some bits are left to you
Also I’m using Server - Not Desktop though I’ll be changing this later. All Linux Commands are executed via Command Line.
On Windows
Download and Install Putty - for SSH Terminal Access (easy to copy and paste between Windows and Linux)
Download and Install Virtualbox - for Virtual Machine
Download and Install Virtualbox Extensions - Do it from within Virtualbox and you’ll get the right version
Download and Install WinScp - for FTP when it’s required…
Download Ubuntu 16.04 ISO - I found it works fine
In Virtualbox
Create a New VM and start it - the system will ask for the ISO, point it at the Downloaded ISO and follow through all the questions.
On Ubuntu
- login
- sudo apt-get update
- sudo apt-get upgrade - say Yes to install updates
- sudo apt-get install openssh-server
- **Homework/Google(HwG) **: use ifconfig to set a fixed IP, using DHCP just doesn’t work with Putty.
- reboot using sudo shutdown -r now
On Windows
Now login via Putty (allows copy and paste from windows)
Putty Ubuntu Window = PUbW…
For practice:
Highlight the next line and CNTRL-C
sudo apt-get update
Switch to the PUbW and right click, you will see the command shown, now hit enter to execute it.
NOTE: When there is a recognizable end-of-line character the command may auto execute.
For example copy the next line including the end of line character (you can force this by going to the next line), switch to the PUbW and right click, the command should auto-start.
sudo apt-get upgrade
reboot using sudo shutdown -r now
Now to install the other bits:
DO NOT install Java 8 it will not work
JDK 1.7
A good reference is: https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04
In PUbW
- sudo add-apt-repository ppa:webupd8team/java
- sudo apt-get update
- sudo apt-get install oracle-java7-installer
Set the JAVA_HOME and PATH
- sudo apt-get install oracle-java7-set-default
Logout and Login
- echo $JAVA_HOME
to check
If not OK you can set it manually
Git
In PUbW
- sudo apt-get update
- sudo apt-get install git
How To Set Up Git
- git config --global user.name “Your Name”
- git config --global user.email “youremail@domain.com”
Generating a new SSH key
- ssh-keygen -t rsa -b 4096 -C “your_email@example.com”
When you’re prompted to “Enter a file in which to save the key,” press Enter
At the prompt, type a secure passphrase
Adding your SSH key to the ssh-agent
Ensure ssh-agent is enabled:
- eval “$(ssh-agent -s)”
Add your SSH key to the ssh-agent:
- ssh-add ~/.ssh/id_rsa
Add the SSH key to your GitHub account
https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/
Add the Key Locally:
- exec ssh-agent bash
- ssh-add
Apache Maven 3.0.3
In PUbW
- sudo apt-get install maven
- mvn --version
NodeJS
- sudo apt-get update
- sudo apt-get install nodejs
Not strictly necessary but could come in useful later…
- sudo apt-get install npm
An available maven repository with javax.jms:jms:jar 1.1
Don’t need the whole repository - just make sure we have access to the jar:
From: http://stackoverflow.com/questions/3622773/java-net-maven-repo-jms-artifact-missing
- wget https://repository.jboss.org/nexus/content/groups/public/javax/jms/jms/1.1/jms-1.1.jar
- mvn -e install:install-file -Dfile=./jms-1.1.jar -DartifactId=jms -DgroupId=javax.jms -Dversion=1.1 -Dpackaging=jar
- shareeditflag
Bitrock Install Builder 9.5.3 (optional: required only for building Bonita BPM Studio installers)
I did not do this piece as I’m not there yet…
That will get you to the point where you can execute the git and mvn commands to Compiling Bonitasoft Community from Source
I must admit I would like it if Bonitasoft could write a fuller piece on how to set up a development environment (using this as a basis) so we could all do it right.
But this does work except for the bits that don’t.
I will try to update as appropriate, though don’t hold your breath, and if anyone would like to add things to it please add comments accordingly.
regards
Seán
PS: As this reply answers your question, please mark as resolved by ticking the tick mark on the left of this reply.