That all depends on how touches are interpreted. If they are interpreted as (single left-button) mouse clicks then of course you cannot handle any right-button clicks if there is no external mouse. Similarly, textual user input will have to be managed somehow, probably through some on-screen keyboard.
But other than that, once you install the JRE on it
you should be able to run Java programs without a problem.