Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

when import netty,its error #500

Open
geniusdz opened this issue Feb 22, 2024 · 1 comment
Open

when import netty,its error #500

geniusdz opened this issue Feb 22, 2024 · 1 comment

Comments

@geniusdz
Copy link

### pom.xml:


org.openjfx
javafx-controls
${javafx.version}


org.openjfx
javafx-fxml
${javafx.version}


io.netty
netty-all
4.1.86.Final


commons-io
commons-io
2.10.0

### error:
[周四 2月 22 13:03:57 CST 2024][信息] [SUB] 正在创建库 D:\idea2023\workspace\HelloFXML\HelloFXML\target\gluonfx\x86_64-windows\HelloFXML.lib 和对象 D:\idea2023\workspace\HelloFXML\HelloFXML\target\gluonfx\x86_64-windows\HelloFXML.exp
[周四 2月 22 13:03:57 CST 2024][信息] [SUB] hellofx.hellofxml.obj : error LNK2001: 无法解析的外部符号 Java_com_sun_management_internal_OperatingSystemImpl_initialize0
[周四 2月 22 13:03:57 CST 2024][信息] [SUB] D:\idea2023\workspace\HelloFXML\HelloFXML\target\gluonfx\x86_64-windows\HelloFXML.exe : fatal error LNK1120: 1 个无法解析的外部命令
[周四 2月 22 13:03:57 CST 2024][严重] Process link failed with result: 1120
Check the log files under D:\idea2023\workspace\HelloFXML\HelloFXML\target\gluonfx\x86_64-windows\gvm\log
And please check https://docs.gluonhq.com/ for more information.
[周四 2月 22 13:03:57 CST 2024][信息] Logging process [link] to file: D:\idea2023\workspace\HelloFXML\HelloFXML\target\gluonfx\log\process-link-1708578237854.log
[周四 2月 22 13:03:57 CST 2024][严重] Linking failed.

@yyyyyyyysssss
Copy link

这是我的windows平台本地编译的参数希望能帮到你

<plugin>
                <groupId>com.gluonhq</groupId>
                <artifactId>gluonfx-maven-plugin</artifactId>
                <version>${gluonfx.plugin.version}</version>
                <configuration>
                    <mainClass>org.imtp.client.MainApp</mainClass>
                    <attachList>
                        <list>display</list>
                        <list>lifecycle</list>
                        <list>statusbar</list>
                        <list>storage</list>
                    </attachList>
                    <nativeImageArgs>
                        <nativeImageArg>-H:TraceClassInitialization=true</nativeImageArg>
                        <nativeImageArg>--initialize-at-build-time=ch.qos.logback.core.pattern.parser.Parser,ch.qos.logback.core.util.StatusPrinter,ch.qos.logback.core.util.Loader,org.slf4j.impl.StaticLoggerBinder,org.slf4j.LoggerFactory,ch.qos.logback.classic.Logger,ch.qos.logback.core.spi.AppenderAttachableImpl,ch.qos.logback.core.status.StatusBase,ch.qos.logback.classic.Level,ch.qos.logback.core.status.InfoStatus,ch.qos.logback.classic.PatternLayout,ch.qos.logback.core.CoreConstants</nativeImageArg>
                        <nativeImageArg>--trace-class-initialization=ch.qos.logback.classic.Level,ch.qos.logback.core.util.Loader,ch.qos.logback.core.util.StatusPrinter,ch.qos.logback.core.CoreConstants,ch.qos.logback.classic.Logger,ch.qos.logback.core.pattern.parser.Parser</nativeImageArg>
                        <nativeImageArg>--initialize-at-run-time=io.netty.channel.AbstractChannel</nativeImageArg>
                    </nativeImageArgs>
                    <reflectionList>
                        <list>org.imtp.client.controller.LoginController</list>
                        <list>org.imtp.client.controller.HomeController</list>
                        <list>org.imtp.client.controller.UserSessionController</list>
                        <list>org.imtp.client.controller.UserSessionItemController</list>
                        <list>org.imtp.client.controller.ChatController</list>
                        <list>org.imtp.client.controller.ChatItemController</list>
                        <list>org.imtp.client.controller.UserFriendController</list>
                        <list>org.imtp.client.controller.UserFriendItemController</list>
                        <list>org.imtp.client.controller.UserFriendDetailsController</list>
                        <list>org.imtp.client.controller.UserGroupController</list>
                        <list>org.imtp.client.controller.UserGroupDetailsController</list>
                        <list>org.imtp.client.controller.UserGroupItemController</list>
                        <list>org.imtp.client.controller.ChatEmojiDialog</list>
                    </reflectionList>
                    <bundlesList>
                        <list>com.sun.glass.ui.win</list>
                    </bundlesList>
                    <linkerArgs>
                        <arg>management_ext.lib</arg>
                        <arg>psapi.lib</arg>
                    </linkerArgs>
                </configuration>
            </plugin>

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants