mmm... command line java :(

I'd get an IDE like Eclipse or Netbeans. That will fix all your pathing problems ;) (well, not all, but pretty close)