yajsw和maven netbeans项目

brqmpdu1  于 2021-07-06  发布在  Java
关注(0)|答案(0)|浏览(258)

我试图用yajsw Package 一个用maven构建的netbeans模块系统。我正在尝试使用genconfig脚本,因为我对yajsw是完全陌生的,并且很难找到可以告诉我应该做什么的文档。我已经成功地在一个带有main方法的简单java程序上使用了genconfig,但是这个特定的项目没有main方法,我们使用一个.exe可执行文件来启动它。当我运行genconfig.bat时,我得到以下结果:

YAJSW: yajsw-stable-12.14
OS   : Windows 10/10.0/x86
JVM  : Oracle Corporation/1.8.0_261/C:\Program Files (x86)\Java\jre1.8.0_261/32

*************GENERATING YAJSW CONFIGURATION FOR PID 22136***********************

process command line:
"C:\Program Files\Java\jdk-11.0.2\bin\javaw.exe" "-Dnetbeans.user.dir=C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\bin" "-Djdk.home=C:\Program Files\Java\jdk-11.0.2" "-Dnetbeans.home=C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\platform" "-Dnetbeans.user=C:\Users\skakk\AppData\Roaming\dynagrow\dev" "-Dnetbeans.default_userdir_root=C:\Users\skakk\AppData\Roaming\dynagrow" "-XX:+HeapDumpOnOutOfMemoryError" "-XX:HeapDumpPath=C:\Users\skakk\AppData\Roaming\dynagrow\dev\var\log\heapdump.hprof" "-Dsun.awt.keepWorkingSetOnMinimize=true" "-Dnetbeans.dirs=C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\bin;C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\controleum;C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\dynagrow;C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\etc;C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\extra;C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\java;C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\platform" "-Djava.class.path=C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\platform\lib\boot.jar;C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\platform\lib\org-openide-modules.jar;C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\platform\lib\org-openide-util-lookup.jar;C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\platform\lib\org-openide-util-ui.jar;C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\platform\lib\org-openide-util.jar" org/netbeans/Main "--cachedir" "C:\Users\skakk\AppData\Local\dynagrow\Cache/dev" "--branding" "dynagrow"

creating java configuration file
java.lang.RuntimeException: error parsing java command line
        at org.rzo.yajsw.tools.JCLParser.parseInternal(JCLParser.java:299)
        at org.rzo.yajsw.tools.JCLParser.<init>(JCLParser.java:36)
        at org.rzo.yajsw.tools.JCLParser.parse(JCLParser.java:42)
        at org.rzo.yajsw.tools.ConfigGenerator.createJavaConfigFile(ConfigGenerator.java:165)
        at org.rzo.yajsw.tools.ConfigGenerator.createConfigFile(ConfigGenerator.java:103)
        at org.rzo.yajsw.tools.ConfigGenerator.generate(ConfigGenerator.java:56)
        at org.rzo.yajsw.WrapperExe.doGenerate(WrapperExe.java:661)
        at org.rzo.yajsw.WrapperExe.executeCommand(WrapperExe.java:174)
        at org.rzo.yajsw.WrapperExe.main(WrapperExe.java:124)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.rzo.yajsw.boot.WrapperExeBooter.main(WrapperExeBooter.java:49)
-----------------
Output file: C:\Users\skakk\sweat-tek\DynaGrow\yajsw-stable-12.14\bat\..\conf\wrapper.conf
-----------------

即使是关于这个问题,我也找不到任何有关已回答问题的文件。
在.conf文件中没有生成任何内容。我使用java9的内置api和任务管理器仔细检查了pid。是因为它是一个.exe文件而不是我用作可执行文件的.jar文件吗?因为它是一个maven项目,所以我只有.mvn文件作为替代。这个项目应该从java开始吗?在这种情况下,你能举个例子吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题