Multibit-Legacy / multibit-hd

Deprecated Bitcoin Wallet
https://multibit.org/blog/2017/07/26/multibit-shutdown.html
Other
171 stars 113 forks source link

issues when compiling multibit-hd on windows7 with JDK1.7 #695

Open lamar8 opened 9 years ago

lamar8 commented 9 years ago

I want to build it on windows7 ,but failed ,is there anyone can heip me?

Tests run: 117, Failures: 1, Errors: 0, Skipped: 3

[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] MultiBit HD ........................................ SUCCESS [ 6.519 s] [INFO] MultiBit HD Core ................................... FAILURE [02:57 min] [INFO] MultiBit HD Swing .................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:04 min [INFO] Finished at: 2015-08-06T19:45:49+08:00 [INFO] Final Memory: 22M/184M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project mbhd-core: There are test failures. [ERROR] [ERROR] Please refer to E:\workspace\multibit-hd-release-0.1.2\mbhd-core\target\surefire-reports for the individual test results. [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project mbhd-core: There are test failures.

Please refer to E:\workspace\multibit-hd-release-0.1.2\mbhd-core\target\surefire-reports for the individual test results. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.

Please refer to E:\workspace\multibit-hd-release-0.1.2\mbhd-core\target\surefire-reports for the individual test results. at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:82) at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:190) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:852) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:720) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 20 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :mbhd-core

gary-rowe commented 9 years ago

Hmm, builds for me off the latest develop branch and Travis has a working build on Linux too.

Which test is failing?

lamar8 commented 9 years ago

It failed just after the command "mvn install",I tried Successful both in ubuntu and Mac OS X,but how can I make a EXE file? Is it possible to make an exe file in ubuntu or OS X?

gary-rowe commented 9 years ago

Sometimes Maven can get in a twist so here's some general build advice that may help:

Java doesn't generally create native Windows EXE files. Instead the build creates a self-contained executable JAR file which will be named mbhd-swing/target/multibit-hd.jar after a successful build. You then use java -jar <path to jar> to run it from the command line.

If you want to create signed installers then you're better off just using the ones we've already built on the main site: https://multibit.org.

lamar8 commented 9 years ago

Thank you very much ! I also tried "mvn clean install" ,and failed the same reason.I just want to know how to build exe installer in windows ,or deb in linux ,dmg in OS X. It seems the original project "multibit" can build exe installer by "mvn install", but this failed. I'm not good at JAVA

gary-rowe commented 9 years ago

We've changed our installer technology away from IzPack which didn't allow a Java JRE to be packaged and led to a less than optimal installation experience. It also didn't work well on more modern operating systems.

Our new solution for both MultiBit HD and Classic (0.5.19+) is Install4j. This provides a much-improved user experience and we recommend it on our installation page.