do 'matrix' library as '.jar' library