Archive for June, 2007

installing lomboz plugin for eclipse 3.2

Tuesday, June 26th, 2007

1] in eclipse, go to help>software updates>find and install
2] select “search for new features to install”. click “next”.
3] click on “new remote site”. enter “Lomboz Update Site” in name field and “http://lomboz.objectweb.org/update-site/v3.2/” in URL field. click “ok”.
4] you will see two items (lomboz and eclipse updates). check both. click “next”.
5] 3 items will be displayed: Callisto Discovery Site, Lomboz Update Site and Eclipse Project Updates. Click on Lomboz’ check box and click “Select required”. default choices will be automatically selected. Click “finish”.

enjoy using lomboz, one hell of a plugin, i say.

making tomcat plugin work

Thursday, June 21st, 2007

this drove me crazy when i was trying to view a jsp file. to make this thing work as plugin in eclipse 3.1 or 3.2, do the following:

extract the file jakarta-tomcat-5.5.9.zip in root directory of eclipse
e.g.
c:/eclipse/plugins

next, in system properties, click on remote tab, click environment variables

edit CLASSPATH to:
%JAVA_HOME/bin;

create new variable called JAVA_HOME with value directory folder of jdk you’re using. i’m using version 6
e.g.
c:/program files/java/jdk1.6.0_01

in eclipse, click window>preferences>tomcat
browse for tomcat home
e.g.
c:\~eclipse\plugins\jakarta-tomcat-5.5.9

select server.xml
change configuration file to:
c:\~eclipse\plugins\jakarta-tomcat-5.5.9\conf\server.xml

in advanced, clear tomcat base

using eclipse, you should be able to restart tomcat. if not, you can do it manually. go to c:\~eclipse\plugins\jakarta-tomcat-5.5.9\bin, double click startup (an ms dos batch file)

put your webfiles in: c:\~eclipse\plugins\jakarta-tomcat-5.5.9\webapps

using your browser, enter in address field:

http://localhost:8080/foldername

then, VOILA!! it should working by then. hehe

installing php

Thursday, June 21st, 2007

it came to my mind that i almost forgot how i installed php on my computer. to recap, and for future use, unzip file: php-5.1.2-Win32.zip, extract as sub directory of C:\Program Files\Apache Group\Apache and rename it as php.

copy the file php.ini-dist in PHP directory to windows directory:
C:\Windows
and rename to php.ini

copy the file php5ts.dll in PHP directory to ~Apache Group\Apache\bin

edit httpd in ~\Apache\conf and insert the following lines:

#php
LoadModule php5_module php/php5apache.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

restart Apache server in start>programs or program files\Apache~

to test if it’s working

create a sample file containing:
<?php
phpinfo();
?>

save as test.php in C:\Program Files\Apache Group\Apache2\htdocs

go to your browser

enter in address:

http://localhost/test.php

you’ll see something like:

php hassle

Thursday, June 14th, 2007

installing php and apache made me go beserk. i had to install and uninstall both for so many times while reading a lot of tutorials on how to do it. but it seemed like installers i have are different from what authors were talking about.. argh!! actually, apache was ok during the process, php was not. the hell..

after hours and hours i spent with it and asking help from my amiga, it worked! haha!! then, break time. it’s time consuming, calorie burning, mind boggling etc etc etc.. i need some time off my desk. let’s go mi amiga! chow time!