Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

java

javafx

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.

like image 864
Lazy Coder Avatar asked Aug 25 '13 04:08

Lazy Coder


1 Answers

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.

like image 127
Lorenzo Sciuto Avatar answered Oct 29 '22 16:10

Lorenzo Sciuto