sudo apt update
sudo apt install openjdk-8-jdk-headless
Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
Manually create business application In case you can’t use jBPM online service to generate the application you can manually create individual projects. jBPM provides maven archetypes that can be easily used to generate the application. In fact jBPM online service uses these archetypes behind the scenes to generate business application.
org.kie:kie-kjar-archetype:7.46.0.Final
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
if( $found ){ | |
$remoteport = $matches[0]; | |
} else{ | |
echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
exit; | |
} |
package com.bala.custom.wih; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.kie.api.runtime.process.WorkItem; | |
import org.kie.api.runtime.process.WorkItemHandler; | |
import org.kie.api.runtime.process.WorkItemManager; | |
public class CustomWIH implements WorkItemHandler { |
cd /home/<user>/ | |
sudo apt-get install unzip | |
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
unzip sdk-tools-linux-4333796.zip -d Android | |
rm sdk-tools-linux-4333796.zip | |
sudo apt-get install -y lib32z1 openjdk-8-jdk | |
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
export PATH=$PATH:$JAVA_HOME/bin | |
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc | |
cd Android/tools/bin |
version: "3.4" | |
services: | |
jbpm: | |
image: jboss/jbpm-workbench-showcase | |
environment: | |
- "JAVA_OPTS=-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false" | |
ports: | |
- "8080:8080" | |
- "8001:8001" |