New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fileAssociations and filename contains non latin characters #209
Comments
Hi @jsyzthz , Could you please provide a simple project, where this issue can be recreated? What JDK did you use to create you bundle? And how did you set Mostly there is some bug when using older maven-plugin-versions or having a buggy JDK, even misconfiguration is possible, but to determine, what is going wrong, I need to recreate that behaviour. |
sorry, i have push my code to https://github.com/jsyzthz/javafx |
Hi @jsyzthz , I'm on it, will come back with some results ;) |
I can reproduce this behaviour using the generated native launcher, this fails on non-latin chars. When launching the containing app (inside the app-folder) with |
Only thing that I found is this here: https://bugs.openjdk.java.net/browse/JDK-8029584 I might dig into this a bit more, but feel free to open some bug on the Oracle-JDK yourself. |
thanks,i will keep to debug , java -jar ... is ok. |
I bet it has something to do with char-encoding inside the native launcher, which resides inside some nasty C/CPP-program |
i test inno setup sample project. pass parameter with chinese character is ok. |
That exe-file is called "native launcher" :) and yes, I think too that the issue lies between the EXE-file and the JVM, but haven't located that issue yet. All argument copy-parts are using unicode-methods, maybe I missed some (as my c/cpp-skill is a bit rusty and old, hehe). |
Hi @jsyzthz, did you try it with the native launcher on linux or macosx? There is some thing crossing my mind:
|
Hi @FibreFoX , i install centos linux(7.2.15511) in virtualbox. I build a rpm installer under centos,then install it and test ok. i found another issue about javafx packager when building the rpm packager. |
That version-thing is no issue, this is an already communicated restriction! the nativeReleaseVersion-property is only allowed to have "traditional" versioning, means no chars, only numbers and maximum 2 dots (like SEMVER), because (as you already found out) this is limited with some native bundlers. When there is some free time, I might try to create some different native launcher. As this is no issue with the javafx-maven-plugin, can you please create some bug on oracle? |
Sure, Review ID: JI-9040536 |
Update |
Hm, I think they didn't try the native launcher on windows, mentioning something with "Netbeans" looks like they called the generated JAR-file instead of the native launcher (just guessing). |
I will try to recreate the issue using the latest version of the JDK, will report back with insights. |
Even with 1.8.0u92 this issue exists, will make some pull-requests to your test-project to make the scenario more clear ;) |
@jsyzthz please accept the pull-request I made on your project ;) that might help to reproduce your issue. |
@FibreFoX merged. thanks! |
@jsyzthz did you inform oracle about the instruction-changes? any update on this? |
which instruction? my test project? if yes,how to tell oracle,i just can only view the bug i reported. |
@jsyzthz yes, I ment the test-project, which now has better description about how to reproduce. I personally haven't been able to change existing bug.entries, so I'm afraid of being no help here. Maybe it would be the best to re-post that bug with the new instructions maybe? I will hold this issue on the javafx-maven-plugin open for others to see the progress, even this is nothing about the plugin itself. |
Hi ,
|
Inside the IDE, the native generated file is never launched, thats the reason this issue can't be found inside the IDE ;) As the reported bug didn't say something about IDE, I'm a bit confused why they didn't read the instructions before, but for that I commited a bit more detailed instructionset with the last PR 😄 This bug lies inside the native windows launcher, in the bridge between the JVM, I suspect the Thanks for the update 👍 |
@jsyzthz any update on this? did you reopen/create a new issue about this? |
Yes,i create a new defect for this,pls track it from here: |
This will now be tracked here (as the JDK-8160344 is closed as duplicate): seems that there is a problem with unicode-parts inside Will updates this when something changes.
|
Note to myself: add whitelist-checks for appName to warn before non-latin filenames are used and developers are starting to search for non-existing bugs inside this plugin (it's the JDK anyway). |
Hi,
i have link all "*.test" files to my exe using 'fileAssociations'.
but if i create a file named as "中国.test"(with chinese charcter).if i double click this file will get error(empty content,no details),continue to click ok i will get another error dialog "Failed to launch JVM".
i have set -Dfile.encoding=UTF-8.
any idea to fix this?
thanks!
The text was updated successfully, but these errors were encountered: