java.lang.UnsatisfiedLinkError: com.sun.deploy.config.WinPlatform.getPlatformUserHome()Ljava/lang/String


Question

I developed a javafx(2.2) application that link to a certain site. The app is running fine in netbeans 7.3 but when I deploy it the following error will occur.

java.lang.UnsatisfiedLinkError: com.sun.deploy.config.WinPlatform.getPlatformUserHome()Ljava/lang/String;
    at com.sun.deploy.config.WinPlatform.getPlatformUserHome(Native Method)
    at com.sun.deploy.config.WinPlatform.getUserHome(Unknown Source)
    at com.sun.deploy.config.WinPlatform.getLocalStorageDir(Unknown Source)
    at com.sun.deploy.config.Config.getLocalStorageDir(Unknown Source)
    at com.sun.deploy.config.Config.getDefaultCacheDirectory(Unknown Source)
    at com.sun.deploy.config.DefaultConfig.init(Unknown Source)
    at com.sun.deploy.config.DefaultConfig.<init>(Unknown Source)
    at com.sun.deploy.config.DefaultConfig.getDefaultConfig(Unknown Source)
    at com.sun.deploy.config.Config.get(Unknown Source)
    at com.sun.deploy.net.proxy.UserDefinedProxyConfig.getBrowserProxyInfo(Unknown Source)
    at com.sun.deploy.net.proxy.DynamicProxyManager.reset(Unknown Source)
    at com.sun.deploy.net.proxy.DeployProxySelector.reset(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.javafx.main.Main.tryToSetProxy(Main.java:572)
    at com.javafx.main.Main.launchApp(Main.java:640)
    at com.javafx.main.Main.main(Main.java:805)

I really don't know what is the cause of the problem. Is it my proxy or platform I used? I am using java 1.7 32bit Hope someone will help me. Thanks.

1
8
8/25/2013 4:25:46 AM

Accepted Answer

I resolved compiling the code on a 32bit pc with only 32bit jdk installed. It worked for me cause I have a 32bit application (once compiled it works fine on 64bit pc as well) but i guess that if you need a 64bit application compile it on 64bit pc with the 64bit jdk and netbeans configured for working with this jdk.

4
9/2/2013 8:38:55 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon