-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Description
i'm on the step below and the buffer is saying : [ Directory '/opt/karaf/bin' does not exist ]
Creating a setenv.sh Script for Karaf
Similar to Tomcat, our Karaf service is going to rely on a setenv shell script to determine environment variables Karaf needs in place when running. For now, this will simply be the path to JAVA_HOME, but this also accepts many other parameters you can find in the default setenv script.
/opt/karaf/bin/setenv | karaf:karaf/755
#!/bin/sh
export JAVA_HOME="PATH_TO_JAVA_HOME"
PATH_TO_JAVA_HOME: This will be the same JAVA_HOME we used when installing Tomcat , and can be found using the same method (i.e., still /usr/lib/jvm/java-11-openjdk-amd64 if that's what it was before).
Metadata
Metadata
Assignees
Labels
No labels