Encoding issue on filename with Java 7 on OSX with jnlp/webstart

后端 未结 5 1189
孤街浪徒
孤街浪徒 2021-02-05 22:31

I have this problem that has been dropped on me, and have been a couple of days of unsuccessful searches and workaround attempts.

I have now an internal java swing prog

5条回答
  •  无人共我
    2021-02-05 23:08

    I don't think there is a real solution to this problem, right now.

    Meantime I came to the conclusion that the "C" environment variables printed from inside the program are from the Java Web Start sandbox, and (by design, apparently) you can't influence those using the jnlp.

    The accepted (as accepted by the company) workaround/compromise was of launching the jnlp using javaws from a bash script.

    Apparently, launching the jnlp from browser or from finder creates a new sandbox environment with the LANG not setted (so is setted to "C" that is equal to ASCII). Launching the jnlp from command line instead prints the right LANG from the system default, inheriting it from the shell.

    This permits to at least preserve the autoupdating feature of the jnlp and dependencies.

    Anyway, we sent a bug report to Oracle, but personally I'm not hoping it to be resolved anytime soon, if ever.

提交回复
热议问题