Custom JDK for Logstash

Anyone interested around? Please.

I cannot figure out how to run Logstash with a custom java.exe, but it works with Elasticsearch. What else should I try?