Make idempotent and update to standard Java install paths
Add "$arch" parameter to provide support for other architectures (tested with x64 and i586)
Merge pull request #4 from alitheg/master

Make module idempotent, update to standard Java install paths, and add other architecture support