Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: java was using the wrong path

...

Code Block
languagebash
wget http://www.bonsaiframework.com/downloads/0fs-java/jre-8u74-linux-i586.tar.gz # Change link to an alias once I have time
tar -xvpf jre-8u74-linux-i586.tar.gz
rm jre-8u74-linux-i586.tar.gz
ln -s ./jre1.8.0_74 ./java

# Add Java to class path temporarily for your current command line session
export JRE_HOME=/opt/aem/author/java/Contents/Home/
export JAVA_HOME=/opt/aem/author/java/Contents/Home/
export PATH=${JAVA_HOME}/bin:${PATH}


# If you have other installations of Java installed you might want to reverse,
export PATH=/opt/aem/author/java/bin:$PATH

# Verify,
which java
/opt/aem/author/java/bin/java

# Generate the initial files ... not just starting for first time will do this too, but this allows us to see everything and make any modifications before first run,
java -jar aem-author-4502.jar -unpack

# while in LXD Host,
sudo iptables -t nat -A PREROUTING -p tcp -i ens33 --dport 4502 -j DNAT --to-destination 10.71.210.30:4502

...

Code Block
# Bonsaiframework - Modification Start
# --------------------------------------
JRE_HOME=/opt/aem/author/java/Contents/Home/
JAVA_HOME=/opt/aem/author/java/Contents/Home/
PATH=${JAVA_HOME}/bin:${PATH}
# --------------------------------------
# Bonsaiframework - Modification End

...