You can setup jmeter in distributed environment. follow the steps in the document shared below.
https://jmeter.apache.org/usermanual/jmeter_distributed_testing_step_by_step.pdf
In order to test the standalone Java application, you can do one of the following: 1. you can make a jar of your application 2. if your application accepts arguments, your can use OS sampler to call your jar with arguments. 3. otherwise, you can copy the jar to lib/ext folder of jmeter and use Beanshell sampler to import your lib/jar and create the test by calling all the methods.
hope this will help.