Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Trying to install through Cygwin bunch of problems #342

@BlackAnt1968601851

Description

@BlackAnt1968601851

I tried to install this through Cygwin because I do not have a linux machine
Cygwin works with the .sh files but the problem is that the .sh files point to linux paths and keeps breaking java causing java errors
Here's the changes I did to restore.sh to get it to work


set -e

helpFunction()
{
   echo ""
   echo "Usage: $0 <dest dir>"
   exit 1 # Exit script after printing help
}

if [ -z "$1" ]
then
   echo "<dest dir> is not specified";
   helpFunction
fi

WDIR="C:\\Cygwin64\\XiPKI\\"

if [ "x$JAVA_HOME" = "x" ]; then
	JAVA_EXEC=java
else
	JAVA_EXEC=$JAVA_HOME/bin/java
fi

CLASSPATH="C:\\Cygwin64\\XiPKI\\lib\\app-package-1.0.11.jar"

$JAVA_EXEC -cp "$CLASSPATH" org.xipki.apppackage.RestorePackage $WDIR/files "$1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions