Java 7 update 45 broke my Web Start SWT application

前端 未结 3 487
后悔当初
后悔当初 2021-02-06 15:28

I maintain an Eclipse RCP application launched with WebStart. Java 7 u45 made some security changes, and now my application crashes on startup.

I\'ve added to the manifes

3条回答
  •  悲哀的现实
    2021-02-06 15:54

    When 7u25 came out, my application would crash with a classloader issue (sometimes, it was weird). The fix involved nixing my "Components.jnlp" deployment strategy. I had my library files in a separate .jnlp (Components.jnlp, as per a solution I read online back in 2010) and my main .jnlp (launch.jnlp) would load that .jnlp.

    Now, it seems the Netbeans-generated .jnlp is sufficient and I no longer need any separate .jnlp for library components. I'm not sure if eclipse gives you an auto-generated .jnlp or not.

    In the end, changing the launch.jnlp involved me having to give my clients a new installer that would load the new .jnlp onto their computers. It sucked but it worked.

    Also, I'm not sure what Codebase: * is supposed to do. Why don't you just put your actual codebase in there?

    If you did not deploy your app with that approach then this answer probably won't help. Might help somebody.

提交回复
热议问题