I have an application that is developed in Java that has nice GUI and all. I don't have the source code and also the dll's of that. But I have the compiled classes of that application (.jar files).

Now, I want to automate that application. I mean the application needs manual intervention.

Can I use that compiled classes so that I can use its functions to automate the functionality of that application?

If so, how would this be done?