{"id":537,"date":"2023-09-17T11:21:43","date_gmt":"2023-09-17T03:21:43","guid":{"rendered":"https:\/\/fugary.com\/?p=537"},"modified":"2023-09-17T14:31:48","modified_gmt":"2023-09-17T06:31:48","slug":"javafx%e7%ae%80%e5%8d%95%e8%ae%a1%e7%ae%97%e5%99%a8demo","status":"publish","type":"post","link":"https:\/\/fugary.com\/?p=537","title":{"rendered":"JavaFX\u7b80\u5355\u8ba1\u7b97\u5668Demo\u5e76\u6253\u5305\u6210\u5b89\u88c5\u5305"},"content":{"rendered":"<p>\u6700\u8fd1\u5728\u8003\u8651\u5f00\u53d1<code>GUI<\/code>\u7a0b\u5e8f\uff0c\u7531\u4e8e\u7528<code>Java<\/code>\u6bd4\u8f83\u591a\uff0c\u5c31\u60f3\u8bd5\u8bd5\u770b<code>Java<\/code>\u5f00\u53d1<code>GUI<\/code>\u7a0b\u5e8f\u662f\u5426\u53ef\u884c\uff0c\u7528<code>JavaFX<\/code>\u5b9e\u73b0\u4e00\u4e2a\u8ba1\u7b97\u5668<code>demo<\/code>\u7a0b\u5e8f\u3002<\/p>\n<p><code>JavaFX<\/code>\u662f\u76ee\u524d\u6bd4\u8f83\u6d41\u884c\u7684<code>Java GUI<\/code>\u5f00\u53d1\u6846\u67b6\uff0c\u4f7f\u7528<code>fxml<\/code>\u4f5c\u4e3a\u5e03\u5c40\u6587\u4ef6\uff0c\u901a\u8fc7<code>JavaFX Scene Builder<\/code>\u53ef\u4ee5\u5b9e\u73b0\u62d6\u52a8\u5e03\u5c40\u7b49\uff0c\u65b9\u4fbf\u6784\u5efa\u7a0b\u5e8f\u3002<\/p>\n<p>\u6e90\u7801\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/fugary\/javafx-demo\">https:\/\/github.com\/fugary\/javafx-demo<\/a><\/p>\n<h3>\u65b0\u5efa\u9879\u76ee<\/h3>\n<p>\u7528<code>idea<\/code>\u65b0\u5efa<code>JavaFX<\/code>\u9879\u76ee\u8fd8\u662f\u6bd4\u8f83\u5bb9\u6613\u7684\uff0c\u4e0d\u7528\u7b2c\u4e09\u65b9\u5e93\uff0c\u7528\u539f\u751f\u7684\u5c31\u53ef\u4ee5\uff0c\u8fd9\u91cc\u6700\u4f4e\u8981\u6c42<code>JDK11<\/code>\u3002<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/5332b3877f1d829147a6072069e0247f\/image-20230917093445103.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/5332b3877f1d829147a6072069e0247f\/image-20230917093445103.png\" alt=\"image-20230917093445103\" \/><\/div><\/p>\n<p>\u76ee\u524d\u5c31\u53ef\u4ee5\u8fd0\u884c\u4e86\uff0c\u7b80\u5355hello\u7a0b\u5e8f\u3002<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/fb970399312c4e3c05f21c15e08abf28\/image-20230917093716041.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/fb970399312c4e3c05f21c15e08abf28\/image-20230917093716041.png\" alt=\"image-20230917093716041\" \/><\/div><\/p>\n<h3>\u5b9e\u73b0\u7a0b\u5e8f<\/h3>\n<p>\u4f7f\u7528\u91cd\u6784\u5668\uff08<code>Shift+F6<\/code>\uff09\u4fee\u6539\u57fa\u672c\u6587\u4ef6\u540d\u79f0\uff0c\u6539\u4e3a\u81ea\u5df1\u4f7f\u7528\u7684\u540d\u79f0\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/b28776197c7b3cbe6e2d74a59d4eb332\/image-20230917095127473.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/b28776197c7b3cbe6e2d74a59d4eb332\/image-20230917095127473.png\" alt=\"image-20230917095127473\" \/><\/div><\/p>\n<h4>\u5e03\u5c40\u5904\u7406<\/h4>\n<p>\u5982\u679c\u6ca1\u6709\u5b89\u88c5<code>JavaFX Scene Builder<\/code>\uff0c\u53ef\u4ee5\u6839\u636e\u63d0\u793a\u5b89\u88c5\uff0c\u5b89\u88c5\u540e\u53ef\u4ee5\u7528\u5b83\u73b0\u5b9e\u5e03\u5c40\u3002<\/p>\n<p>\u76ee\u524d\u7528<code>GridPane<\/code>\u5e03\u5c40\uff0c\u5b9e\u73b0<code>6<\/code>\u884c<code>4<\/code>\u5217\u7684\u683c\u5b50,\u6bcf\u4e2a\u683c\u5b50<code>100*100<\/code>\u5927\u5c0f\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/e15bb64210eeb9c23d9bdb2d137718c5\/image-20230917095230050.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/e15bb64210eeb9c23d9bdb2d137718c5\/image-20230917095230050.png\" alt=\"image-20230917095230050\" \/><\/div><\/p>\n<p>\u7b2c\u4e00\u884c\u7528\u6587\u672c\u6846\uff0c\u5b9e\u73b0\u6570\u5b57\u663e\u793a\u548c\u8ba1\u7b97\u7ed3\u679c\u663e\u793a\uff0c\u540e\u9762\u51e0\u884c\u663e\u793a\u8ba1\u7b97\u5668\u7684\u5404\u79cd\u6309\u94ae\uff0c\u8c03\u6574\u4e0b\u5927\u5c0f\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/7a7b084dc6fc89b45a2864e6b58c2f3c\/image-20230917095848673.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/7a7b084dc6fc89b45a2864e6b58c2f3c\/image-20230917095848673.png\" alt=\"image-20230917095848673\" \/><\/div><\/p>\n<p>\u57fa\u672c\u7ed3\u6784\u7b97\u662f\u6709\u4e86<\/p>\n<h4>\u6837\u5f0f\u5904\u7406<\/h4>\n<p>\u65b0\u5efa\u4e00\u4e2a<code>calc.css<\/code>\u6587\u4ef6\uff0c\u5199\u5165\u6309\u94ae\u6837\u5f0f\uff1a<\/p>\n<pre><code class=\"language-css\">.grayButton{\n    -fx-background-radius: 45px;\n    -fx-background-color: #A4A4A4;\n}\n.yellowButton{\n    -fx-background-radius: 45px;\n    -fx-background-color: #F79F31;\n}\n.normalButton{\n    -fx-background-radius: 45px;\n    -fx-background-color: #333333;\n}<\/code><\/pre>\n<p>\u5f15\u5165\u6837\u5f0f\uff0c\u6d4f\u89c8\u5230\u65b0\u5b9a\u4e49\u7684<code>calc.css<\/code>\u6587\u4ef6\u3002<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/201d14bf21d37b187c509d210030fadb\/image-20230917100624451.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/201d14bf21d37b187c509d210030fadb\/image-20230917100624451.png\" alt=\"\" \/><\/div><\/p>\n<p>\u5f15\u5165\u4e4b\u540e\uff0c\u7ed9\u6309\u94ae\u914d\u7f6e\u4e0a\u6837\u5f0f\u7684class\uff0c\u6548\u679c\u66f4\u597d\u4e00\u70b9<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/acf7557a3aa850d9f6f9cb54e36eb148\/image-20230917102925604.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/acf7557a3aa850d9f6f9cb54e36eb148\/image-20230917102925604.png\" alt=\"image-20230917102925604\" \/><\/div><\/p>\n<h4>\u5b9e\u73b0\u529f\u80fd<\/h4>\n<p>\u76ee\u524d\u4f7f\u7528\u4e00\u4e2a<code>List<\/code>\u5b58\u50a8\u4e34\u65f6\u6570\u636e\uff0c\u7528\u4e00\u4e2a<code>Stack<\/code>\u5b58\u653e\u53c2\u4e0e\u8ba1\u7b97\u7684\u6570\u636e\uff0c\u5b9e\u73b0\u7b80\u5355\u7684\u8ba1\u7b97\u903b\u8f91\uff0c\u4e0b\u9762\u662f\u4ee3\u7801\u7247\u6bb5\uff1a<\/p>\n<pre><code class=\"language-java\">    private static final List&lt;String&gt; TEXT_LIST = new ArrayList&lt;&gt;();\n    private static final Stack&lt;String&gt; CALC_STACK = new Stack&lt;&gt;();\n    @FXML\n    private TextField resultText;\n\n    public void onNumberButtonClicked(ActionEvent event) {\n        Button numButton = (Button) event.getSource();\n        String text = numButton.getText().trim();\n        \/\/ \u6570\u5b57\u6309\u94ae\u5904\u7406\n    }<\/code><\/pre>\n<p>\u7136\u540e\u7ed9\u6bcf\u4e2a\u6309\u94ae\u6dfb\u52a0\u4e8b\u4ef6\u5b9e\u73b0<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/456004d792a6cfd91c074c6614aa750a\/image-20230917103005145.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/456004d792a6cfd91c074c6614aa750a\/image-20230917103005145.png\" alt=\"image-20230917103005145\" \/><\/div><\/p>\n<p>\u5177\u4f53\u5b9e\u73b0\u53ef\u4ee5\u53c2\u8003GitHub\u6e90\u7801\uff1a<a href=\"https:\/\/github.com\/fugary\/javafx-demo\">https:\/\/github.com\/fugary\/javafx-demo<\/a><\/p>\n<h3>\u8fd0\u884c\u7a0b\u5e8f<\/h3>\n<p>\u8fd0\u884c\u7a0b\u5e8f\u53ef\u4ee5\u6267\u884c\u7b80\u5355\u8ba1\u7b97\uff0c\u56e0\u4e3a\u53ea\u662f\u4e00\u4e2a<code>demo<\/code>\uff0c\u5e76\u4e0d\u662f\u5b8c\u6574\u7684\u7a0b\u5e8f\uff0c\u53ef\u80fd\u5b58\u5728\u4e00\u4e9b<code>bug<\/code>\uff0c\u6709\u5174\u8da3\u53ef\u4ee5\u5b8c\u5584\u4ee3\u7801\u3002<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/18d5e143c49d313876df93df57cf5908\/image-20230917103205203.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/18d5e143c49d313876df93df57cf5908\/image-20230917103205203.png\" alt=\"image-20230917103205203\" \/><\/div><\/p>\n<h3>\u6253\u5305\u7a0b\u5e8f<\/h3>\n<p>\u9ed8\u8ba4\u751f\u6210\u9879\u76ee\u7684\u65f6\u5019\u5df2\u7ecf\u6709\u6253\u5305\u63d2\u4ef6\u4e86\uff1a<\/p>\n<pre><code class=\"language-xml\">&lt;plugin&gt;\n    &lt;groupId&gt;org.openjfx&lt;\/groupId&gt;\n    &lt;artifactId&gt;javafx-maven-plugin&lt;\/artifactId&gt;\n    &lt;version&gt;0.0.8&lt;\/version&gt;\n    &lt;executions&gt;\n        &lt;execution&gt;\n            &lt;!-- Default configuration for running with: mvn clean javafx:run --&gt;\n            &lt;id&gt;default-cli&lt;\/id&gt;\n            &lt;configuration&gt;\n                &lt;mainClass&gt;com.fugary.javafxdemo\/com.fugary.javafxdemo.CalcApplication&lt;\/mainClass&gt;\n                &lt;launcher&gt;app&lt;\/launcher&gt;\n                &lt;jlinkZipName&gt;app&lt;\/jlinkZipName&gt;\n                &lt;jlinkImageName&gt;app&lt;\/jlinkImageName&gt;\n                &lt;noManPages&gt;true&lt;\/noManPages&gt;\n                &lt;stripDebug&gt;true&lt;\/stripDebug&gt;\n                &lt;noHeaderFiles&gt;true&lt;\/noHeaderFiles&gt;\n            &lt;\/configuration&gt;\n        &lt;\/execution&gt;\n    &lt;\/executions&gt;\n&lt;\/plugin&gt;<\/code><\/pre>\n<h4>\u6253\u5305\u538b\u7f29<\/h4>\n<p>\u6253\u5305\u547d\u4ee4\uff1a<\/p>\n<pre><code class=\"language-sh\">mvn javafx:jlink<\/code><\/pre>\n<p>\u6253\u5305\u540e\u53ef\u4ee5\u770b\u5230\u6709\u4e2a<code>app<\/code>\u76ee\u5f55\uff0c\u4ee5\u53ca\u4e00\u4e2a\u538b\u7f29\u5305<code>app.zip<\/code>\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/c7f54bb8e3eb0565e07338518517c4d4\/image-20230917110603076.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/c7f54bb8e3eb0565e07338518517c4d4\/image-20230917110603076.png\" alt=\"image-20230917110603076\" \/><\/div><\/p>\n<p><code>app<\/code>\u6587\u4ef6\u5939\u4e0b\u9762\u7684<code>bin\/app.bat<\/code>\u5c31\u662f\u53ef\u4ee5\u6267\u884c\u7684\u6587\u4ef6\uff0c\u6267\u884c\u540e\u53ef\u4ee5\u770b\u5230\u7ed3\u679c\u3002<\/p>\n<h4>\u6253\u5305exe<\/h4>\n<p>\u4f7f\u7528<code>bat<\/code>\u6587\u4ef6\u542f\u52a8\u4f1a\u5e26\u8d77\u4e00\u4e2a\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u5173\u95ed\u547d\u4ee4\u884c\u7a97\u53e3\u7684\u8bdd\u7a0b\u5e8f\u4e5f\u8ddf\u7740\u7ed3\u675f\u4e86\uff0c\u5176\u5b9e\u53ef\u4ee5\u6253\u5305\u6210<code>exe<\/code>\uff0c\u9700\u8981\u4f7f\u7528<code>jpackage<\/code>\u547d\u4ee4\uff0c\u8fd9\u4e2a\u547d\u4ee4\u662f\u5728<code>jdk<\/code>\u4e2d\uff0c\u9700\u8981\u7528\u5230\u524d\u9762<code>jlink<\/code>\u6253\u5305\u51fa\u6765\u7684\u539f\u59cb\u6587\u4ef6\u5939\uff0c\u547d\u4ee4\u8f93\u51fa\u7684\u76f8\u5f53\u4e8e\u5b89\u88c5\u540e\u7684\u76ee\u5f55\uff0c\u5df2\u7ecf\u53ef\u4ee5\u5206\u53d1\u4f7f\u7528\u4e86\u3002<\/p>\n<pre><code class=\"language-sh\"># \u6784\u5efaexe\u76ee\u5f55\n# --name \u6307\u5b9a\u5e94\u7528\u540d\u79f0\n# -m\u6307\u5b9a\u4e3apom.xml\u4e2d\u7684MainClass\n# --runtime-image \u6307\u5b9ajlink\u6253\u5305\u51fa\u6765\u7684\u76ee\u5f55\u3011\n# --dest \u662f\u8f93\u51fa\u76ee\u5f55\njpackage --type app-image --name MyCalc -m com.fugary.javafxdemo\/com.fugary.javafxdemo.CalcApplication --runtime-image target\/app --dest target\/app-image<\/code><\/pre>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/e84e10aef3a7c0b350a42c2ad121c7e0\/image-20230917120414716.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/e84e10aef3a7c0b350a42c2ad121c7e0\/image-20230917120414716.png\" alt=\"image-20230917120414716\" \/><\/div><\/p>\n<h4>\u6253\u5305\u5b89\u88c5\u5305<\/h4>\n<p>\u6587\u4ef6\u5939\u4e0d\u4fbf\u4e8e\u5206\u53d1\u5b89\u88c5\u548c\u5378\u8f7d\uff0c\u4e00\u822c\u7a0b\u5e8f\u90fd\u662f\u6709\u4e2a\u5b89\u88c5\u7a0b\u5e8f\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u8003\u8651\u6253\u5305\u6210\u5b89\u88c5\u5305\uff0c\u5b89\u88c5\u5305\u6253\u5305\u8fc7\u7a0b\u6bd4\u8f83\u9ebb\u70e6\u3002<\/p>\n<p>\u9996\u5148\u9700\u8981\u5b89\u88c5<a href=\"https:\/\/wixtoolset.org\/\">WiX Toolset<\/a>\uff0c\u9700\u8981\u4f7f\u75283.x\u7248\u672c\uff0c\u4e0d\u652f\u63014.x\u7248\u672c\uff1a<a href=\"https:\/\/wixtoolset.org\/docs\/wix3\/\">https:\/\/wixtoolset.org\/docs\/wix3\/<\/a>\uff1a<\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/wixtoolset\/wix3\/releases\/tag\/wix3112rtm\">https:\/\/github.com\/wixtoolset\/wix3\/releases\/tag\/wix3112rtm<\/a><\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/369de093ccbaaa8c7526306147d8c554\/image-20230917124732507.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/369de093ccbaaa8c7526306147d8c554\/image-20230917124732507.png\" alt=\"image-20230917124732507\" \/><\/div><\/p>\n<p>\u5426\u5219\u4f1a\u6709\u9519\u8bef\u4fe1\u606f\uff1a<\/p>\n<blockquote>\n<p>[12:12:30.011] \u627e\u4e0d\u5230 WiX \u5de5\u5177 (light.exe, candle.exe)<br \/>\n[12:12:30.011] \u4ece <a href=\"https:\/\/wixtoolset.org\">https:\/\/wixtoolset.org<\/a> \u4e0b\u8f7d WiX 3.0 \u6216\u66f4\u9ad8\u7248\u672c\uff0c\u7136\u540e\u5c06\u5176\u6dfb\u52a0\u5230 PATH\u3002<br \/>\n\u9519\u8bef\uff1a\u7c7b\u578b [exe] \u65e0\u6548\u6216\u4e0d\u53d7\u652f\u6301<\/p>\n<\/blockquote>\n<p>\u5982\u679c\u5b89\u88c5\u540e\u8fd8\u662f\u4e0d\u884c\uff0c\u53ef\u4ee5\u8003\u8651\u628a\u5b89\u88c5\u540e\u7684<code>bin<\/code>\u653e\u5230<code>Path<\/code>\u4e2d\u3002<\/p>\n<p>\u6dfb\u52a0\u5230<code>Path<\/code>\u4e2d\u540e\uff0c\u7528\u547d\u4ee4\u884c\u6267\u884c\uff1a<code>light --help<\/code>\u6709\u7ed3\u679c\u8f93\u51fa\u5c31\u5bf9\u4e86\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/ae275818d659db92c4a05a31619b4665\/image-20230917124859438.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/ae275818d659db92c4a05a31619b4665\/image-20230917124859438.png\" alt=\"image-20230917124859438\" \/><\/div><\/p>\n<p>\u6253\u5305\u6210\u5b89\u88c5\u5305\uff1a<\/p>\n<pre><code class=\"language-sh\"># \u6839\u636e\u524d\u9762\u4ea7\u751f\u7684\u76ee\u5f55target\/app-image\/MyCalc\u751f\u6210\u4e00\u4e2a\u5b89\u88c5\u5305\uff0c\u6ce8\u610f\u5305\u542bMyCalc\u8fd9\u4e00\u7ea7\uff0c\u5426\u5219\u62a5\u9519\u627e\u4e0d\u5230.jpackage.xml\njpackage --name MyCalcInstaller --app-image target\/app-image\/MyCalc --dest target\/dist --win-dir-chooser --win-shortcut --win-shortcut-prompt<\/code><\/pre>\n<p>\u53e6\u5916\u4f1a\u51fa\u73b0<code>311 code<\/code>\u9519\u8bef\uff1a<\/p>\n<blockquote>\n<p>java.io.IOException: Command [C:\\Program Files (x86)\\WiX Toolset v3.11\\bin\\light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, C:\\Users\\meng\\AppData\\Local\\Temp\\jdk.jpackage929124607728456094\\images\\win-exe.image\\MyCalcInstaller-1.0.msi, -s<br \/>\nice:ICE27, -loc, C:\\Users\\meng\\AppData\\Local\\Temp\\jdk.jpackage929124607728456094\\config\\MsiInstallerStrings_en.wxl, -cultures:en-us, C:\\Users\\meng\\AppData\\Local\\Temp\\jdk.jpackage929124607728456094\\wixobj\\main.wixobj, C:\\Users\\meng\\AppData\\Local<br \/>\n\\Temp\\jdk.jpackage929124607728456094\\wixobj\\bundle.wixobj, C:\\Users\\meng\\AppData\\Local\\Temp\\jdk.jpackage929124607728456094\\wixobj\\ui.wixobj] in C:\\Users\\meng\\AppData\\Local\\Temp\\jdk.jpackage929124607728456094\\images\\win-msi.image\\MyCalc exited with 311 code<\/p>\n<\/blockquote>\n<p>\u589e\u52a0<code>--verbose<\/code>\u53ef\u4ee5\u770b\u5230\u8be6\u7ec6\u4fe1\u606f\uff0c\u5b57\u7b26\u95ee\u9898\uff1a<\/p>\n<blockquote>\n<p>[14:23:31.739] Output:<br \/>\nC:\\Users\\meng\\AppData\\Local\\Temp\\jdk.jpackage4320797721992788226\\config\\main.wxs(36) : error LGHT0311 : A string was provided with characters that are not available in the specified database code page '1252'. Either change these characters to ones that exist in the database's code page, or update the database's code page by modifying one of the following attributes: Product\/@Codepage, Module\/@Codepage, Patch\/@Codepage, PatchCreation\/@Codepage, or WixLocalization\/@Codepage.<br \/>\nC:\\Users\\meng\\AppData\\Local\\Temp\\jdk.jpackage4320797721992788226\\config\\main.wxs(79) : error LGHT0311 : A string was provided with characters that are not available in the specified database code page '1252'. Either change these characters to ones that exist in the database's code page, or update the database's code page by modifying one of the following attributes: Product\/@Codepage, Module\/@Codepage, Patch\/@Codepage, PatchCreation\/@Codepage, or WixLocalization\/@Codepage.<\/p>\n<\/blockquote>\n<p><strong>\u4e0d\u8fc7\u8fd9\u4e2a\u95ee\u9898\u4e0d\u662f\u6211\u4eec\u9879\u76ee\u5b57\u7b26\u6709\u95ee\u9898\uff0c\u6682\u65f6\u6ca1\u6709\u60f3\u5230\u600e\u4e48\u89e3\u51b3\uff0c\u4e0d\u8fc7\u628aWindows\u5207\u6362\u5230\u82f1\u6587\u7248\u7cfb\u7edf\u5c31\u6b63\u5e38\u6253\u5305\u4e86\u3002<\/strong><\/p>\n<p>\u6253\u5305\u6210\u4e86\u5b89\u88c5\u5305\uff0c\u5b89\u88c5\u5305\u548c\u538b\u7f29\u5305\u5dee\u4e0d\u591a\u5927\uff0c\u53cc\u51fb\u53ef\u4ee5\u5b89\u88c5\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/cfbbfb17e5b31ce359f720d94461dd10\/image-20230917142550903.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/cfbbfb17e5b31ce359f720d94461dd10\/image-20230917142550903.png\" alt=\"image-20230917142550903\" \/><\/div><\/p>\n<h3>\u7ed3\u675f\u8bed<\/h3>\n<p>\u76ee\u524d<code>JavaFX<\/code>\u5b9e\u73b0\u7a0b\u5e8f\u5012\u662f\u5f88\u7b80\u5355\uff0c\u4e0d\u8fc7\u6253\u5305\u540e\u6bd4\u8f83\u5927\uff0c\u611f\u89c9\u4e0d\u662f\u5f88\u9002\u5408\u5f00\u53d1<code>GUI<\/code>\u7a0b\u5e8f\uff0c\u4e00\u4e2a\u8fd9\u4e48\u7b80\u5355\u7684\u7a0b\u5e8f\u6253\u5305\u6210<code>zip<\/code>\u540e\u4e5f\u6709<code>26MB<\/code>\u5de6\u53f3\uff0c\u89e3\u538b\u540e\u6709<code>79MB<\/code>\u3002<\/p>\n<p>\u4e0d\u8fc7<code>Java<\/code>\u6709\u8de8\u5e73\u53f0\u7684\u4f18\u52bf\uff0c\u4e0d\u540c\u5e73\u53f0\u9700\u8981\u91cd\u65b0\u6253\u5305\uff0c\u4e5f\u4e0d\u77e5\u9053<code>JavaFX<\/code>\u672a\u6765\u662f\u5426\u6709\u53d1\u5c55\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728\u8003\u8651\u5f00\u53d1GUI\u7a0b\u5e8f\uff0c\u7531\u4e8e\u7528Java\u6bd4\u8f83\u591a\uff0c\u5c31\u60f3\u8bd5\u8bd5\u770bJava\u5f00\u53d1GUI\u7a0b\u5e8f\u662f\u5426\u53ef\u884c\uff0c\u7528JavaFX\u5b9e\u73b0\u4e00 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,14],"tags":[131,130],"_links":{"self":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/537"}],"collection":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=537"}],"version-history":[{"count":3,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/537\/revisions"}],"predecessor-version":[{"id":540,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/537\/revisions\/540"}],"wp:attachment":[{"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}