我已经安装了JSmooth.我的电脑有JDK 1.7和JRE 1.7.但它说需要java 1.4或更高版本才能打开并尝试下载.这是为什么 ??
我有一个情况,我们用JSmooth包装一个jar来获得一个合适的exe文件.
传统上这是由ant构建的,并且作为我们一般的mavenification的一部分,当前的短期解决方案是使用maven-antrun-plugin来设置属性并调用ant.
不幸的是,这种方法在Unix上构建时失败(因为没有可用的X11显示)并且解决方案是调用JVM -Djava.awt.headless=true.我想在我的pom.xml中执行此操作,但无法确定在何处执行此操作.
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>package</phase>
<configuration>
<target>
<!-- create one-jar and exefy it -->
<property name="maven.project.build.finalName" value="${project.build.finalName}" />
<!-- note: fails on headless Linux for now -->
<ant />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
可以直接分叉新的JVM,但不要依赖平台细节.
我该怎么做才能正确?