What's the particular exception? Class not found?
You probably need to add the path to getseq.class in your java classpath. You can do this by passing java a -classpath option, or defining the CLASSPATH environment variable.
Also, you're probably better of asking this on a more Java oriented forum, as your question is more about Java than it is about Perl.