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


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 Source)
    at Source)
    at 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(
    at com.javafx.main.Main.launchApp(
    at com.javafx.main.Main.main(

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.

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.

9/2/2013 8:38:55 AM

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