java - com.apple.eawt.Application not working after obfuscation -


i have written application in java both mac osx , windows, i've developed on windows. therefore used java.lang.reflect.* in order implement 'about' , 'quit' handler without receiving exceptions.

i've exported executable jar , works fine on both operating systems. however, want obfuscate application , i'm using progaurd so. i've specified necessary libraries work on windows (rt.jar, jsse.jar, jce.jar) , still work fine on windows, progaurd telling me there 2 unresolved dynamic references classes or interfaces, , obfuscated application no longer works on mac (the , quit handler don't work).

i read somewhere ui.jar required, copied accross mac , specified in progaurd did not seem solve problem! solutions appreciated then...

thanks in advance

update

i have used applejavaextensions in order implement handlers using com.apple.eawt.application rather reflect. however, i'm still getting exact same problem! here code using:

package ap; import com.apple.eawt.abouthandler; import com.apple.eawt.appevent; import com.apple.eawt.appevent.quitevent; import com.apple.eawt.application; import com.apple.eawt.quithandler; import com.apple.eawt.quitresponse; import com.gui.tabs;  public class xa implements abouthandler, quithandler {      // constructor register/install necessary handler's     public xa(){         application.getapplication().setabouthandler(this);         application.getapplication().setquithandler(this);     }      // implemented method catch menu item     @override     public void handleabout(appevent.aboutevent e) {         tabs.switchabout();      }      // implemented method catch quit menu item     @override     public void handlequitrequestwith(quitevent arg0, quitresponse arg1) {         tabs.quit();             } } 

and using proguard gui obfuscate application. in obsfucation 'tab' @ bottom i've added class ap.xa , specified extends/implements abouthandler, quithandler. i've added class com.gui.tabs problem still occurs.

maybe try apple java extensions.

using apple java extensions, develop on windows without using java.lang.reflect.* classes, , maybe easier proguard.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -