java/loader: Replace class name dots with slashes

Needed for:

  $ ./hornet -cp ../jruby-1.7.3/lib/jruby.jar org.jruby.Main

Signed-off-by: Pekka Enberg <penberg@iki.fi>