Is your iPad jail broken? Because you don't have access to the CLI if it's not.
If it is jail broken, there is a free tweak on Cydia called "Mobile Terminal." That will allow you to access the interface....
Regardless, if you are looking to use the iPad to run Java (or Flash), even accessing the command line interface won't help. The iPad cannot run either, even jail broken.
Marilyn
P.S. And, since this post is not a news item, I've taken the liberty of moving it over to the General help sub-forum. Thanks for yr understanding.