vendredi 21 mai 2010

[zz] Tomcat install woes – Cannot find …bin/

November 14th, 2007
This week I was assisting a customer with installing Tomcat on the System i5 and ran into an issue I thought I would post here to assist others.
After placing a non-IBM version of Tomcat in the IFS, I started up a QShell session, changed directory to the Tomcat bin directory, and executed The result of running was the following:
Cannot find /tomcat/v4.1/bin/
This file is needed to run this program
After reviewing the bin directory I confirmed that DOES exist. I modified the files permissions through WRKLNK thinking that may be the issue – no go. After digging around the internet I found somebody with the same issue except they were on a Linux machine and were directed to chmod the execution authority on that file. So I ran the same from QShell and walla! It worked! I am not sure why it worked because I had already set that file to *PUBLIC *RWX on the i5OS side [scratching head]. Anyways, to remedy the situation, and keep further such things from happening, I ran chmod on all files in the bin directory that I thought might need it:
chmod +x
chmod +x
chmod +x
chmod +x
chmod +x bootstrap.jar
chmod +x tomcat-jni.jar
Hope that helps someone else in need!

dimanche 9 mai 2010

[Mac] How to set Environment Variable

1: open a terminal;

2: type "vi ~/.profile";

3: Find a line like:
"export PATH=/opt/local/bin:/opt/local/sbin:$PATH"...

4: Add the path of your java home:
"export PATH=/opt/local/bin:/opt/local/sbin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin:$PATH"

5: Save and quit.