how can I develop Apple Java Extensions on Windows?

前端 未结 5 2027
时光说笑
时光说笑 2020-12-17 18:31

When I do multi-platform testing on Windows it gets annoying that Eclipse shows errors in the project because of the com.apple.eawt code that I have in a special Mac customi

5条回答
  •  一整个雨季
    2020-12-17 19:24

    You might be able to use the approach taken in OSXAdapter, the "dynamic implementation [of which] will only be triggered on platforms that actually support the Apple APIs (e.g. Java 1.4 or later on Mac OS X), avoiding any compatibility concerns." A sample application and the adapter itself are available, as mentioned in this article.

提交回复
热议问题