Installing piwik on jboss server

i am working on the jboss server. my webapp is hosted on jboss and i need to get the web analytics info. Can anyone suggest me how to install piwik on my jboss server.
i use java jsf and hibernate.
A quick reply will be appreciated.

thank you

p.s: i am not using php in my webapp.

For installing piwik you need PHP and MySQL support.
For tracking your webapp you just need to add the javascript code to the html output of your webapp.
Piwik and the tracked webapp could be hosted on two different systems.

Thanks a lot Thomas, i wasnt aware of the tracking code. thanks again.