简体   繁体   中英

Interaction with another java application which is an executable jar file

I'm writing a java application, but I need to launch another java application which is just a JAR file ( I do not have the source code ). This JAR file open a simple AWT app. In my code I need to click on a button, copy a value of a text field and use this String in my code. But I have no idea of how to do it.

You add that JAR file into your project's classpath. Then you can use What ever the none restricted classes and others that is there in the JAR file. When you want to export this as another JAR file add that JAR file you used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM