Do you know how to find the collision point between the ray representing the "way" of the point and the triangle? Otherwise, look at the source code of any 3D engine written in Java or in nehe.gamedev.net to find an implementation of such an algorithm.