You should really build packages of java/tomcat with fpm. It will save
you so much time and hassle in the end. Want different versions of the
same package you just have to name them with the package version - no
problem.
Let's assume that extract the java distribution in a directory named
java-$(VERSION), just run the following:
fpm -s dir -t deb -n java-$(VERSION) -v $(VERSION) -a x86_64 --prefix /opt --provides java-runtime,java2-runtime,java5-runtime,java6-runtime,java7-runtime,java7-runtime-headless java-$(VERSION)
and you should be good to go. Change this as needed(like architecture,
deb/rpm prefix and the provides)
--
Nikola