8

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.

4

1 回答 1

4

我解决了在仅安装 32 位 jdk 的 32 位 pc 上编译代码。它对我有用,因为我有一个 32 位应用程序(一旦编译它在 64 位 pc 上也可以正常工作),但我想如果你需要一个 64 位应用程序,请在 64 位 pc 上编译它,并配置 64 位 jdk 和 netbeans 以使用这个 jdk。

于 2013-09-02T08:38:55.247 回答