D
D
Deimos32020-03-23 11:55:34
Java
Deimos3, 2020-03-23 11:55:34

How to run third party java application from main java application?

The question is a little lamer, I apologize in advance.
There is a need to create a windowed java application, which should launch a third-party java application on a button in a separate thread. That is, a third-party java application is an application compiled into .java or .jar, whose classes are not written in the main java application. In other words, I can't normally declare a third party java application class in the main to access its main() method.
But how can this be done? Help me please. If the question is described in the dock, poke me in it, please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-03-23
@Deimos3

Import the main class of another application, create a thread and call main of the imported class in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question