How can I use apple com.apple.eawt functionality on Java 8?
<p>I have recently started learning java and I am working/improving on a java IDE. I'm trying to find a way so that when you double click a file, the file is automatically opened with my program.</p>

<p>So far the only way I have found to do that is by using the apple extension com.apple.eawt (question found <a href="https://stackoverflow.com/questions/10546427/java-swing-how-to-double-click-a-project-file-on-mac-to-open-my-application-an/26353048#26353048">here</a>). The only problem is that I have JDK 1.8 and this extension no longer works. Following this <a href="https://stackoverflow.com/questions/13978471/com-apple-eawt-what-exactly-i-should-install">question</a>, I looked for it on my computer and I believe it was last included in JDK 1.6. </p>

<p>My questions are: is there a way to use this extension in java 1.8? Or is there an Apple or non-Apple replacement that will do the same?</p>