Closed dmc5179 closed 3 years ago
Hi, if you deploy safekeeping ant configure ant install OpenJDK(JRE) should be copied inside the $VMBK_HOME/jre directory. if you want you can change the JAVA_HOME to point to the right directory. I have a question what OS are you using and what Java version? because I never saw this issue
I'm using RHEL 8.2. The reason you're not seeing this issue is probably because you're running:
ant configure
ant install
as root. I cleared out everything and tried the steps again as root. The jre stuff is all copied into the right place.
It might be a good idea to update the installer so as not to require root.
on version 2 I moved from Ant to Gradle to support containers. This problem should go away. Anyway thanks for the feedback I'm going to fix the documentation
ubuntu@cli-vm:/opt/vmware/safekeeping$ ./safekeeping ./safekeeping: 3: Syntax error: "(" unexpected
Line 3 of https://github.com/vmware/safekeeping/blob/master/support/safekeeping is function usage()
How can you have an error here? first 10 lines:
#!/bin/sh
function usage()
{
$JAVA_HOME/bin/java -jar $VMBK_JAR/vmbkcmd.jar help
echo
echo "Debug Mode:"
echo "$0 -d=<port> | --debug=<port> <command> <options....>"
echo ""
}
I worried that Ubuntu doesn't like Windows EOL (CR LF). please try to convert the file from Windows EOL to Unix EOL (LF)
I changed the file on GitHub. Please let me know if solve your issue
Running:
ant install
results in /opt/vmware/safekeeping/jre/bin which doesn't have anything in it. The wrapper script to run safekeeping has:Which results in:
Perhaps JAVA_HOME should not be pointing to the safekeeping directory structure and instead use the system value?