首页 文章

jdk1.8.0_152.jdk / Contents / Home / bin / java''以非零退出值255结束

提问于
浏览
0

我的代码:

for (Class<? extends Module> module : moduleClasses) {
            log.info("Module will config: {}", module);
                       // module like com.test.apps.hello.module.SomeModule
            try {
                install(module.newInstance());
                          log.info("Configured: {}", module.getName());
            } catch (InstantiationException | IllegalAccessException e) {

                throw Throwables.propagate(e);
            }
        }

public class SomeModule extends Module {

    @Override
    protected void configure() {
        bind(SomClass.class).to(SomClassImp.class);
    }
}

它工作正常,当我尝试安装只有几个类,但当很多课我遇到这个问题

jdk1.8.0_152.jdk / Contents / Home / bin / java''以非零退出值255结束

我使用gradle版本4.3.1

我认为问题可能来自gradle .

提前致谢 .

1 回答

  • 0

    基于此错误,我可以通过增加最大内存JVM(-Xmx1024m)来解决此问题 .

相关问题