Question
Nielsen
US
Last activity: 15 Apr 2016 0:06 EDT
Error: Could not find or load main class org.apache.tools.ant.launch.Launcher Ant Process returned a non 0 value
I am install pega 7.2 from my docker container. When I run the install.sh, I got the following error
Error: Could not find or load main class org.apache.tools.ant.launch.Launcher Ant Process returned a non 0 value
ant-home ./pega/pega7/scripts
lib ./pega/pega7/scripts/lib
Error: Could not find or load main class org.apache.tools.ant.launch.Launcher
Ant Process returned a non 0 value
Can you help me figure out what I need to change?
Thanks,
Kelly
Message was edited by: Lochan to add Category
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Can you post the full log from this attempt? It should be in the scripts/logs directory.
Nielsen
US
I doesn't have anything except the echo I placed in the install.sh. Once I removed those echos, nothing in the log file.
Pegasystems Inc.
US
Did you unzip the entire media to this machine? Post the setupDatabase.properties file that you are using.
You are just executing ./install.sh from the scripts directory and all you get in this error on the screen?
Nielsen
US
I extracted the entire images. I was able to install to windows no problem. But running the install.sh from scripts folder in docker container (linux) gives the error. You are right. I am just executing ./install.sh from the scripts directory and I got this error on the command line? Attached please find the setupDatabase.properties.
Pegasystems Inc.
US
what kind of docker image are you running? are you starting the script from the running container?
Nielsen
US
It's postgres docker images. I am running the scripts from another container. It shouldn't matter, right? As long as it can communicate to the postgres.
Pegasystems Inc.
US
From this the media is in the /pega/pega7 directory and you are running the install.sh script from the ./pega/pega7/scripts directory.
Can you run these commands so we can try to figure out what is wrong in this environment.
ls -al /pega/pega7/scripts/bin
echo $JAVA_HOME
java -version
Nielsen
US
Actually I manipulated the path a little bit. When I run the install.sh, I was running the inside the scripts folder. But let me check if it's directory set up issue. Will get back to you. Thanks!
Pegasystems Inc.
US
Yes, the directory structure is important. A lot of the script is using relative paths so things need to be where they are in the media.
Nielsen
US
Yes, it turned out to be my directory naming issue. I had apostrophe and space in the name. Changing the directory name fixed the issue. But now I kept getting the error for loading the jdbc driver. I tried so many path, but always get error. I tried the path, absolute path, relative path, path w/ file name or w/o file name. None of those do the trick. The following is one of the errors
C:\Tools\Pega\docker\Pega72\scripts\setupDatabase.xml:1183: Unable to load driver class from the following path(s): /C/Tools/Pega/docker/Pega72/scripts/