While compiling vaadin widgetset on my eclipse, i get this error.
i see some posts that say we can change heap space size in vaadin plugin but there is no settings like this on my eclipse. (My plugin settings)(Related Post)
while compiling widgetset, vaadin plugin runs a command and it sets -Xss8M and -Xmx512M.
Is there any way to change this settings?
Error:
Executing compiler with command line:
C:\Program Files\Java\jre1.8.0_161\bin\java.exe -Djava.awt.headless=true -Xss8M -Xmx512M -classpath C:\Program Files\Java\jre1.8.0_161\lib\resources.jar;C:\Program Files\Java\jre1.8.0_161\lib\rt.jar;C:\Program Files\Java\jre1.8.0_161\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_161\lib\jce.jar;C:\Program Files\Java\jre1.8.0_161\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_161\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\cldrdata.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\dnsns.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\jaccess.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\jfxrt.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\localedata.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\nashorn.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\sunec.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\sunmscapi.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jre1.8.0_161\lib\ext\zipfs.jar;D:/Projects/jguar_GIT_Set/jvhr/LbsVPCorporatePortal/src;D:/Projects/jguar_GIT_Set/jvhr/LbsVPCorporatePortal/build/classes;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-server/jars/vaadin-server-8.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-sass-compiler/jars/vaadin-sass-compiler-0.9.13.jar;C:/Users/bekir.mavus/.ivy2/cache/org.w3c.css/sac/jars/sac-1.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin.external.flute/flute/jars/flute-1.3.0.gg2.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-shared/jars/vaadin-shared-8.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/org.jsoup/jsoup/jars/jsoup-1.11.2.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin.external/gentyref/jars/gentyref-1.2.0.vaadin1.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-themes/jars/vaadin-themes-8.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.github.appreciated/material/jars/material-1.1.7.jar;C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.addons/fontawesomelabel/jars/fontawesomelabel-1.4.0.jar;C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.addons/popupbutton/jars/popupbutton-3.0.0.jar;C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.blackbluegl/calendar-component/jars/calendar-component-2.0-BETA4.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin.addon/tableexport-for-vaadin/jars/tableexport-for-vaadin-1.8.0.jar;C:/Users/bekir.mavus/.ivy2/cache/com.github.appreciated/app-layout-addon/jars/app-layout-addon-0.9.20.jar;C:/Users/bekir.mavus/.ivy2/cache/org.ocpsoft.prettytime/prettytime/bundles/prettytime-4.0.1.Final.jar;C:/Users/bekir.mavus/.ivy2/cache/com.lbs.vaadin.addons/lbs-vaadin-datetimerangepicker/jars/lbs-vaadin-datetimerangepicker-1.0.0.jar;C:/Users/bekir.mavus/.ivy2/cache/org.tltv.gantt/gantt-addon/jars/gantt-addon-1.0.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-client-compiled/jars/vaadin-client-compiled-8.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.guava/guava/bundles/guava-18.0.jar;C:/Users/bekir.mavus/.ivy2/cache/com.wcs.wcslib/wcslib-vaadin-widget-recaptcha/jars/wcslib-vaadin-widget-recaptcha-2.0.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.jarektoro/responsive-layout/bundles/responsive-layout-2.1.jar;C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.addons/inputmask/jars/inputmask-1.0.2.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-client/jars/vaadin-client-8.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.gwt/gwt-elemental/jars/gwt-elemental-2.8.2.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.gwt/gwt-user/jars/gwt-user-2.8.2.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.jsinterop/jsinterop-annotations/jars/jsinterop-annotations-1.0.2-sources.jar;C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-client-compiler/jars/vaadin-client-compiler-8.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.gwt/gwt-dev/jars/gwt-dev-2.8.2.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.code.findbugs/jsr305/jars/jsr305-1.3.9.jar;C:/Users/bekir.mavus/.ivy2/cache/com.google.code.gson/gson/jars/gson-2.6.2.jar;C:/Users/bekir.mavus/.ivy2/cache/org.ow2.asm/asm/jars/asm-5.0.3.jar;C:/Users/bekir.mavus/.ivy2/cache/org.ow2.asm/asm-util/jars/asm-util-5.0.3.jar;C:/Users/bekir.mavus/.ivy2/cache/org.ow2.asm/asm-tree/jars/asm-tree-5.0.3.jar;C:/Users/bekir.mavus/.ivy2/cache/org.ow2.asm/asm-commons/jars/asm-commons-5.0.3.jar;C:/Users/bekir.mavus/.ivy2/cache/colt/colt/jars/colt-1.2.0.jar;C:/Users/bekir.mavus/.ivy2/cache/ant/ant/jars/ant-1.6.5.jar;C:/Users/bekir.mavus/.ivy2/cache/commons-collections/commons-collections/jars/commons-collections-3.2.2.jar;C:/Users/bekir.mavus/.ivy2/cache/commons-io/commons-io/jars/commons-io-2.4.jar;C:/Users/bekir.mavus/.ivy2/cache/com.ibm.icu/icu4j/jars/icu4j-50.1.1.jar;C:/Users/bekir.mavus/.ivy2/cache/tapestry/tapestry/jars/tapestry-4.0.2.jar;C:/Users/bekir.mavus/.ivy2/cache/net.sourceforge.htmlunit/htmlunit/jars/htmlunit-2.19.jar;C:/Users/bekir.mavus/.ivy2/cache/xalan/xalan/jars/xalan-2.7.2.jar;C:/Users/bekir.mavus/.ivy2/cache/xalan/serializer/jars/serializer-2.7.2.jar;C:/Users/bekir.mavus/.ivy2/cache/org.apache.commons/commons-lang3/jars/commons-lang3-3.4.jar;C:/Users/bekir.mavus/.ivy2/cache/org.apache.httpcomponents/httpclient/jars/httpclient-4.5.1.jar;C:/Users/bekir.mavus/.ivy2/cache/org.apache.httpcomponents/httpcore/jars/httpcore-4.4.3.jar;C:/Users/bekir.mavus/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.2.jar;C:/Users/bekir.mavus/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.5.jar;C:/Users/bekir.mavus/.ivy2/cache/org.apache.httpcomponents/httpmime/jars/httpmime-4.5.1.jar;C:/Users/bekir.mavus/.ivy2/cache/net.sourceforge.htmlunit/htmlunit-core-js/jars/htmlunit-core-js-2.17.jar;C:/Users/bekir.mavus/.ivy2/cache/xerces/xercesImpl/jars/xercesImpl-2.11.0.jar;C:/Users/bekir.mavus/.ivy2/cache/xml-apis/xml-apis/jars/xml-apis-1.4.01.jar;C:/Users/bekir.mavus/.ivy2/cache/net.sourceforge.nekohtml/nekohtml/jars/nekohtml-1.9.22.jar;C:/Users/bekir.mavus/.ivy2/cache/net.sourceforge.cssparser/cssparser/jars/cssparser-0.9.18.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty.websocket/websocket-client/jars/websocket-client-9.2.13.v20150730.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-util/jars/jetty-util-9.2.9.v20150224.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-io/jars/jetty-io-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty.websocket/websocket-common/jars/websocket-common-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty.websocket/websocket-api/jars/websocket-api-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-webapp/jars/jetty-webapp-9.2.9.v20150224.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-xml/jars/jetty-xml-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-servlet/jars/jetty-servlet-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-security/jars/jetty-security-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-server/jars/jetty-server-9.2.9.v20150224.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-http/jars/jetty-http-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-servlets/jars/jetty-servlets-9.2.9.v20150224.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-continuation/jars/jetty-continuation-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-annotations/jars/jetty-annotations-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-plus/jars/jetty-plus-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/jetty-jndi/jars/jetty-jndi-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/javax.annotation/javax.annotation-api/jars/javax.annotation-api-1.2.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty/apache-jsp/jars/apache-jsp-9.2.14.v20151106.jar;C:/Users/bekir.mavus/.ivy2/cache/org.eclipse.jetty.toolchain/jetty-schemas/jars/jetty-schemas-3.1.M0.jar;C:/Users/bekir.mavus/.ivy2/cache/org.mortbay.jasper/apache-jsp/jars/apache-jsp-8.0.9.M3.jar;C:/Users/bekir.mavus/.ivy2/cache/org.mortbay.jasper/apache-el/jars/apache-el-8.0.9.M3.jar;D:/Projects/jguar_GIT_Set/jvhr/LbsVPCorporatePortal/WebContent/WEB-INF/lib/LbsApplicationInfo.jar;C:/Program Files/Java/jre1.8.0_161/lib/resources.jar;C:/Program Files/Java/jre1.8.0_161/lib/rt.jar;C:/Program Files/Java/jre1.8.0_161/lib/jsse.jar;C:/Program Files/Java/jre1.8.0_161/lib/jce.jar;C:/Program Files/Java/jre1.8.0_161/lib/charsets.jar;C:/Program Files/Java/jre1.8.0_161/lib/jfr.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/access-bridge-64.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/cldrdata.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/dnsns.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/jaccess.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/jfxrt.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/localedata.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/nashorn.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/sunec.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/sunjce_provider.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/sunmscapi.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/sunpkcs11.jar;C:/Program Files/Java/jre1.8.0_161/lib/ext/zipfs.jar -Dgwt.persistentunitcachedir=C:\Users\BEKIR~1.MAV\AppData\Local\Temp\widgetset_com.lbs.corporate.widgetset.LbsVPCorporatePortalWidgetset29dd9ad9-ed25-4c1a-bc70-9941f577cf8f com.vaadin.tools.WidgetsetCompiler -war WebContent/VAADIN/widgetsets -deploy C:\Users\BEKIR~1.MAV\AppData\Local\Temp\widgetset_com.lbs.corporate.widgetset.LbsVPCorporatePortalWidgetset29dd9ad9-ed25-4c1a-bc70-9941f577cf8f -extra C:\Users\BEKIR~1.MAV\AppData\Local\Temp\widgetset_com.lbs.corporate.widgetset.LbsVPCorporatePortalWidgetset29dd9ad9-ed25-4c1a-bc70-9941f577cf8f -localWorkers 8 -logLevel INFO com.lbs.corporate.widgetset.LbsVPCorporatePortalWidgetset
Updating GWT module description file...
Widgetsets found from classpath:
org.vaadin.hene.popupbutton.widgetset.PopupbuttonWidgetset in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.addons/popupbutton/jars/popupbutton-3.0.0.jar!/
com.lbs.vaadin.addons.datetimerangepicker.WidgetSet in jar:file:C:/Users/bekir.mavus/.ivy2/cache/com.lbs.vaadin.addons/lbs-vaadin-datetimerangepicker/jars/lbs-vaadin-datetimerangepicker-1.0.0.jar!/
org.vaadin.inputmask.WidgetSet in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.addons/inputmask/jars/inputmask-1.0.2.jar!/
org.vaadin.addon.calendar.WidgetSet in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.blackbluegl/calendar-component/jars/calendar-component-2.0-BETA4.jar!/
com.lbs.corporate.widgetset.LbsVPCorporatePortalWidgetset in file:/D:/Projects/jguar_GIT_Set/jvhr/LbsVPCorporatePortal/src
org.tltv.gantt.WidgetSet in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.tltv.gantt/gantt-addon/jars/gantt-addon-1.0.3.jar!/
com.vaadin.DefaultWidgetSet in jar:file:C:/Users/bekir.mavus/.ivy2/cache/com.vaadin/vaadin-client/jars/vaadin-client-8.4.3.jar!/
Addon styles found from classpath:
VAADIN/addons/font-awesome-label/font-awesome.scss in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.addons/fontawesomelabel/jars/fontawesomelabel-1.4.0.jar!/
VAADIN/addons/calendar/calendar-addon.scss in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.vaadin.blackbluegl/calendar-component/jars/calendar-component-2.0-BETA4.jar!/
VAADIN/addons/app-layout/app-layout.scss in jar:file:C:/Users/bekir.mavus/.ivy2/cache/com.github.appreciated/app-layout-addon/jars/app-layout-addon-0.9.20.jar!/
VAADIN/addons/gantt/gantt.scss in jar:file:C:/Users/bekir.mavus/.ivy2/cache/org.tltv.gantt/gantt-addon/jars/gantt-addon-1.0.3.jar!/
Search took 16ms
Done.
Starting GWT compiler
Oca 16, 2019 9:17:35 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Compiling module com.lbs.corporate.widgetset.LbsVPCorporatePortalWidgetset
Oca 16, 2019 9:18:33 AM com.vaadin.tools.WidgetsetCompiler lambda$main$0
SEVERE: Widgetset compilation failed
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)
at com.google.gwt.dev.javac.JdtUtil.signature(JdtUtil.java:356)
at com.google.gwt.dev.jjs.impl.ReferenceMapper.setMethod(ReferenceMapper.java:192)
at com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMethod(GwtAstBuilder.java:4197)
at com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMembers(GwtAstBuilder.java:4086)
at com.google.gwt.dev.jjs.impl.GwtAstBuilder.processImpl(GwtAstBuilder.java:3929)
at com.google.gwt.dev.jjs.impl.GwtAstBuilder.process(GwtAstBuilder.java:3971)
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:129)
at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:336)
at org.eclipse.jdt.internal.compiler.Compiler.processCompiledUnits(Compiler.java:546)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:458)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:1040)
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:325)
at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:548)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:479)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:465)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:423)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:222)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:202)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:143)
at com.google.gwt.dev.Compiler.compile(Compiler.java:204)
at com.google.gwt.dev.Compiler.compile(Compiler.java:155)
at com.google.gwt.dev.Compiler.compile(Compiler.java:144)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
at com.google.gwt.dev.Compiler.main(Compiler.java:125)
at com.vaadin.tools.WidgetsetCompiler.lambda$main$0(WidgetsetCompiler.java:78)
at com.vaadin.tools.WidgetsetCompiler$$Lambda$1/511754216.run(Unknown Source)
Widgetset compilation finished
Related
I just install the Jboss Tools into Eclipse Mars and tried using the Wildfly 10.0 Runtime. I've configured the runtime to use domain mode but when I try to start my app, I'm getting the error:
11:18:07,344 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.0.Final
11:18:07,564 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
11:18:07,618 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Full 10.0.0.CR5 (WildFly Core 2.0.5.Final) starting
11:18:07,871 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)
at org.jboss.as.server.ServerService.boot(ServerService.java:356)
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,1]
Message: Unexpected element '{urn:jboss:domain:4.0}domain'
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
... 3 more
11:18:07,872 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
11:18:07,873 INFO [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested.
11:18:07,883 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: WildFly Full 10.0.0.CR5 (WildFly Core 2.0.5.Final) stopped in 6ms
I don't get this problem when I use standalone mode but I need domain mode to test my app. Does anyone know what the problem might be?
indeed, the 'launch configuration' built by the jBoss server runtime plug-in/tool is wrong for a Domain-mode start.
You can fix it as follows:
Create the server as usual and its associated runtime (in the Eclipse servers' view > right-click > new > server). When creating the runtime, pay attention to specify the 'server base directory' as "domain" (the default is "standalone") and then 'configuration file' as "domain.xml"
In the servers' view, right-click the just created jBoss server and do 'Open'. Under the category 'General Information' there is a link to 'Open Launch Configuration'
You need to adjust the launch configuration to match the actual launch made by the domain.bat / domain.sh. Of course, you'll need to adjust all paths below:
DO NOT forget to check OUT the option 'Always update arguments related to the runtime'
Program arguments:
-mp "C:/jBOSS/EAP70/modules" org.jboss.as.process-controller -jboss-home "C:\jBOSS\EAP70" -jvm "C:\java\JDK8U66\jre\bin\java" -mp "C:/jBOSS/EAP70/modules" -- "-Dorg.jboss.boot.log.file=C:/jBOSS/EAP70/domain/log/boot.log" "-Dlogging.configuration=file:/C:/jBOSS/EAP70/domain/configuration/logging.properties" -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server -- -default-jvm "C:\java\JDK8U66\jre\bin\java"
VM arguments:
-Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server "-Dorg.jboss.boot.log.file=C:/jBOSS/EAP70/domain/log/boot.log" "-Dlogging.configuration=file:/C:/jBOSS/EAP70/domain/configuration/logging.properties" -cp "C:\jBOSS\EAP70\jboss-modules.jar" -Djboss.home.dir=C:/jBOSS/EAP70 -Djboss.bind.address.management=localhost
Working Directory: C:/jBOSS/EAP70/bin
Main class: org.jboss.modules.Main
Classpath: (bootstrap) JRE system Library + (user entries) jboss-modules.jar
If you are curious to understand where the trick is: In the long java command line, there is a separation around the main java class to launch, where "VM arguments" stand on the right of it, and "program arguments" on the left of it. You may capture the actual complete java command line that launches your server in domain mode with a tool like Microsoft sysinternals process-explorer on Windows, or the pargs shell command in LINUX, after you have started jBOSS with domain.bat or domain.sh.
But you will observe here that the java command takes a "-jar module.jar" argument whereas Eclipse launch requires a conventional "-cp module.jar main-class" argument form. the '-jar' argument is indeed a variant spec where the main class is specified by the manifest file inside the jar.
In my case, the (very long) command line was:
C:\jBOSS\EAP70\bin>"C:\Program Files\Java\jre1.8.0_66\bin\java" -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server "-Dorg.jboss.boot.log.file=C:\jBOSS\EAP70\domain\log\process-controller.log" "-Dlogging.configuration=file:C:\jBOSS\EAP70\domain\configuration/logging.properties" -jar "C:\jBOSS\EAP70\jboss-modules.jar" -mp "C:\jBOSS\EAP70\modules" org.jboss.as.process-controller -jboss-home "C:\jBOSS\EAP70" -jvm "C:\Program Files\Java\jre1.8.0_66\bin\java" -mp "C:\jBOSS\EAP70\modules" -- "-Dorg.jboss.boot.log.file=C:\jBOSS\EAP70\domain\log\host-controller.log" "-Dlogging.configuration=file:C:\jBOSS\EAP70\domain\configuration/logging.properties" -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server -- -default-jvm "C:\Program Files\Java\jre1.8.0_66\bin\java"
which breaks as follows:
JAVA_COMMAND>> "C:\Program Files\Java\jre1.8.0_66\bin\java"
VM_ARGS_____>> -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server "-Dorg.jboss.boot.log.file=C:\jBOSS\EAP70\domain\log\process-controller.log" "-Dlogging.configuration=file:C:\jBOSS\EAP70\domain\configuration/logging.properties"
MAIN_CLASS__>> -jar "C:\jBOSS\EAP70\jboss-modules.jar" >>EQUIVALENT>> -cp "C:\jBOSS\EAP70\jboss-modules.jar" org.jboss.modules.Main
PROGRAM-ARGS>> -mp "C:\jBOSS\EAP70\modules" org.jboss.as.process-controller -jboss-home "C:\jBOSS\EAP70" -jvm "C:\Program Files\Java\jre1.8.0_66\bin\java" -mp "C:\jBOSS\EAP70\modules" -- "-Dorg.jboss.boot.log.file=C:\jBOSS\EAP70\domain\log\host-controller.log" "-Dlogging.configuration=file:C:\jBOSS\EAP70\domain\configuration/logging.properties" -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -server -- -default-jvm "C:\Program Files\Java\jre1.8.0_66\bin\java"
From the point you understand this quite surprising program argument section that replicates many of the JVM aguments, you can then map the pieces in Eclipse launch configuration. Do not forget that "-jar C:\jBOSS\EAP70\jboss-modules.jar" becomes "-cp C:\jBOSS\EAP70\jboss-modules.jar org.jboss.modules.Main" when the '-cp ...' is then the last piece of VM arguments, and "org.jboss.modules.Main" is the one class to define under the "Main" tab.
i am trying to develop jbpm6 using maven..i am using maven 3.0.5 version in windows platform.i used https://github.com/droolsjbpm/jbpm-console-ng link to get the source code.when i try to "mvn clean install" in most of modules in my project they build successfully.
but in one module i have problems face...
when i try to "mvn clean install" it, it gives below error,
[INFO] --- gwt-maven-plugin:2.5.0:compile (gwt-compile) # jbpm-console-ng-showcase ---
[WARNING] Declared compileSourcesArtifact was not found in project dependencies org.drools:drools-wb-workitems-editor-api:jar
[WARNING] Declared compileSourcesArtifact was not found in project dependencies org.drools:drools-wb-workitems-editor-client:jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.465s
[INFO] Finished at: Wed Apr 30 12:48:31 IST 2014
[INFO] Final Memory: 66M/474M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.5.0:compile (gwt-compile) on project jbpm-console-ng-showcase: Failed to execute command line :
[ERROR] [-Xmx2048m, -XX:MaxPermSize=256m, -Djetty.custom.sys.classes=bitronix;javax.transaction, -Dorg.kie.demo=true, -Dorg.kie.clean.onstartup=true, -classpath, C:\Users\AKILA\.m2\repository\com\google\gwt\gwt-user\2.5.0\gwt-user-2.5.0.jar;C:\Users\AKILA\.m2\repository\com\google\gwt\gwt-dev\2.5.0\
gwt-dev-2.5.0.jar;C:\Users\AKILA\workspace\jbpm-console-ng-r6.0.1.Final\jbpm-console-ng-showcase\target\classes;C:\Users\AKILA\workspace\jbpm-console-ng-r6.0.1.Final\jbpm-console-ng-showcase\src\main\java;C:\Users\AKILA\workspace\jbpm-console-ng-r6.0.1.Final\jbpm-console-ng-showcase\src\main\resourc
es;C:\Users\AKILA\.m2\repository\org\kie\kie-ci\6.0.1.Final\kie-ci-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\drools\drools-core\6.0.1.Final\drools-core-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\drools\drools-compiler\6.0.1.Final\drools-compiler-6.0.1.Final.jar;C:\Users\AKILA\.m2\repo
sitory\org\antlr\antlr-runtime\3.5\antlr-runtime-3.5.jar;C:\Users\AKILA\.m2\repository\org\eclipse\jdt\core\compiler\ecj\3.7.2\ecj-3.7.2.jar;C:\Users\AKILA\.m2\repository\org\apache\maven\maven-core\3.0.5\maven-core-3.0.5.jar;C:\Users\AKILA\.m2\repository\org\apache\maven\maven-settings\3.0.5\maven-
settings-3.0.5.jar;C:\Users\AKILA\.m2\repository\org\apache\maven\maven-settings-builder\3.0.5\maven-settings-builder-3.0.5.jar;C:\Users\AKILA\.m2\repository\org\apache\maven\maven-repository-metadata\3.0.5\maven-repository-metadata-3.0.5.jar;C:\Users\AKILA\.m2\repository\org\apache\maven\maven-arti
let\jse\org.restlet\2.1.4\org.restlet-2.1.4.jar;C:\Users\AKILA\.m2\repository\org\uberfire\uberfire-commons\0.3.1.Final\uberfire-commons-0.3.1.Final.jar;C:\Users\AKILA
\.m2\repository\org\jboss\errai\errai-jboss-as-support\2.4.3.Final\errai-jboss-as-support-2.4.3.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\errai\errai-bus\2.4.3.Final\errai-bus-2.4.3.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\errai\errai-config\2.4.3.Final\errai-config-2.4.3.Final.jar;
C:\Users\AKILA\.m2\repository\org\jboss\errai\errai-marshalling\2.4.3.Final\errai-marshalling-2.4.3.Final.jar;C:\Users\AKILA\.m2\repository\com\google\inject\guice\3.0\guice-3.0.jar;C:\Users\AKILA\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Users\AKILA\.m2\repository\org\javass
ist\javassist\3.15.0-GA\javassist-3.15.0-GA.jar;C:\Users\AKILA\.m2\repository\org\jboss\errai\io\netty\netty\4.0.0.Alpha1.errai.r1\netty-4.0.0.Alpha1.errai.r1.jar;C:\Users\AKILA\.m2\repository\com\google\guava\guava\13.0.1\guava-13.0.1.jar;C:\Users\AKILA\.m2\repository\org\jgroups\jgroups\3.2.10.Fin
al\jgroups-3.2.10.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\errai\errai-ioc\2.4.3.Final\errai-ioc-2.4.3.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\errai\errai-codegen\2.4.3.Final\errai-codegen-2.4.3.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\errai\errai-codegen-gwt\2.4.3.Final\
errai-codegen-gwt-2.4.3.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\errai\errai-cdi-client\2.4.3.Final\errai-cdi-client-2.4.3.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\errai\errai-ioc-bus-support\2.4.3.Final\errai-ioc-bus-support-2.4.3.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\
errai\errai-javax-enterprise\2.4.3.Final\errai-javax-enterprise-2.4.3.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\errai\errai-weld-integration\2.4.3.Final\errai-weld-integration-2.4.3.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\errai\errai-cdi-jetty\2.4.3.Final\errai-cdi-jetty-2.4.3.Fina
l.jar;C:\Users\AKILA\.m2\repository\org\jboss\errai\errai-ui\2.4.3.Final\errai-ui-2.4.3.Final.jar;C:\Users\AKILA\.m2\repository\org\jsoup\jsoup\1.7.1\jsoup-1.7.1.jar;C:\Users\AKILA\.m2\repository\org\apache\stanbol\org.apache.stanbol.enhancer.engines.htmlextractor\0.10.0\org.apache.stanbol.enhancer.
engines.htmlextractor-0.10.0.jar;C:\Users\AKILA\.m2\repository\org\apache\clerezza\rdf.core\0.12-incubating\rdf.core-0.12-incubating.jar;C:\Users\AKILA\.m2\repository\org\apache\clerezza\utils\0.1-incubating\utils-0.1-incubating.jar;C:\Users\AKILA\.m2\repository\org\apache\httpcomponents\httpcore\4.
1\httpcore-4.1.jar;C:\Users\AKILA\.m2\repository\org\wymiwyg\wymiwyg-commons-core\0.7.6\wymiwyg-commons-core-0.7.6.jar;C:\Users\AKILA\.m2\repository\commons-logging\commons-logging-api\1.1\commons-logging-api-1.1.jar;C:\Users\AKILA\.m2\repository\org\lesscss\lesscss\1.3.3\lesscss-1.3.3.jar;C:\Users\
AKILA\.m2\repository\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar;C:\Users\AKILA\.m2\repository\org\mozilla\rhino\1.7R4\rhino-1.7R4.jar;C:\Users\AKILA\.m2\repository\org\jboss\errai\errai-data-binding\2.4.3.Final\errai-data-binding-2.4.3.Final.jar;C:\Users\AKILA\.m2\repository\com\goog
le\guava\guava-gwt\14.0.1\guava-gwt-14.0.1.jar;C:\Users\AKILA\.m2\repository\com\h2database\h2\1.3.168\h2-1.3.168.jar;C:\Users\AKILA\.m2\repository\org\hibernate\hibernate-entitymanager\4.2.0.SP1\hibernate-entitymanager-4.2.0.SP1.jar;C:\Users\AKILA\.m2\repository\org\jboss\logging\jboss-logging\3.1.
2.GA\jboss-logging-3.1.2.GA.jar;C:\Users\AKILA\.m2\repository\org\jboss\spec\javax\transaction\jboss-transaction-api_1.1_spec\1.0.1.Final\jboss-transaction-api_1.1_spec-1.0.1.Final.jar;C:\Users\AKILA\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\Users\AKILA\.m2\repository\org\hibernate\common\
hibernate-commons-annotations\4.0.1.Final\hibernate-commons-annotations-4.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\hibernate\hibernate-core\4.2.0.SP1\hibernate-core-4.2.0.SP1.jar;C:\Users\AKILA\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\AKILA\.m2\repository\org\hibernate\hibern
ate-validator\4.3.1.Final\hibernate-validator-4.3.1.Final.jar;C:\Users\AKILA\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA.jar;C:\Users\AKILA\.m2\repository\org\mortbay\jetty\jetty\6.1.25\jetty-6.1.25.jar;C:\Users\AKILA\.m2\repository\org\mortbay\jetty\jetty-util\6.
1.25\jetty-util-6.1.25.jar;C:\Users\AKILA\.m2\repository\org\mortbay\jetty\servlet-api\2.5-20081211\servlet-api-2.5-20081211.jar;C:\Users\AKILA\.m2\repository\org\mortbay\jetty\jetty-plus\6.1.25\jetty-plus-6.1.25.jar;C:\Users\AKILA\.m2\repository\org\mortbay\jetty\jetty-naming\6.1.25\jetty-naming-6.
1.25.jar;C:\Users\AKILA\.m2\repository\org\jboss\weld\se\weld-se-core\1.1.13.Final\weld-se-core-1.1.13.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\weld\weld-spi\1.1.Final\weld-spi-1.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\weld\weld-api\1.1.Final\weld-api-1.1.Final.jar;C:\Users\AKIL
A\.m2\repository\org\jboss\weld\weld-core\1.1.13.Final\weld-core-1.1.13.Final.jar;C:\Users\AKILA\.m2\repository\org\slf4j\slf4j-ext\1.7.2\slf4j-ext-1.7.2.jar;C:\Users\AKILA\.m2\repository\ch\qos\cal10n\cal10n-api\0.7.4\cal10n-api-0.7.4.jar;C:\Users\AKILA\.m2\repository\javax\el\el-api\2.2\el-api-2.2
.jar;C:\Users\AKILA\.m2\repository\org\jboss\weld\servlet\weld-servlet-core\1.1.13.Final\weld-servlet-core-1.1.13.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\solder\solder-impl\3.2.1.Final\solder-impl-3.2.1.Final.jar;C:\Users\AKILA\.m2\repository\org\hamcrest\hamcrest-core\1.3.RC2\hamcrest-cor
e-1.3.RC2.jar;C:\Users\AKILA\.m2\repository\org\jboss\solder\solder-logging\3.2.1.Final\solder-logging-3.2.1.Final.jar;C:\Users\AKILA\.m2\repository\com\google\gwt\gwt-user\2.5.0\gwt-user-2.5.0.jar;C:\Users\AKILA\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA-sources
.jar;C:\Users\AKILA\.m2\repository\org\osgi\org.osgi.core\4.2.0\org.osgi.core-4.2.0.jar;C:\Users\AKILA\.m2\repository\com\sun\xml\bind\jaxb-impl\2.2.5\jaxb-impl-2.2.5.jar;C:\Users\AKILA\.m2\repository\com\sun\xml\bind\jaxb-xjc\2.2.5\jaxb-xjc-2.2.5.jar;C:\Users\AKILA\.m2\repository\javax\transaction\
jta\1.1\jta-1.1.jar;C:\Users\AKILA\.m2\repository\org\codehaus\btm\btm\2.1.4\btm-2.1.4.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-shared-services\6.0.1.Final\jbpm-shared-services-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\drools\drools-persistence-jpa\6.0.1.Final\drools-persistence-jpa-6
.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-bpmn2-emfextmodel\6.0.1.Final\jbpm-bpmn2-emfextmodel-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\eclipse\emf\org.eclipse.emf.common\2.6.0.v20100614-1136\org.eclipse.emf.common-2.6.0.v20100614-1136.jar;C:\Users\AKILA\.m2\repository\org\
eclipse\emf\org.eclipse.emf.ecore\2.6.0.v20100614-1136\org.eclipse.emf.ecore-2.6.0.v20100614-1136.jar;C:\Users\AKILA\.m2\repository\org\eclipse\emf\org.eclipse.emf.ecore.xmi\2.5.0.v20100521-1846\org.eclipse.emf.ecore.xmi-2.5.0.v20100521-1846.jar;C:\Users\AKILA\.m2\repository\org\eclipse\org.eclipse.
bpmn2\0.7.3\org.eclipse.bpmn2-0.7.3.jar;C:\Users\AKILA\.m2\repository\org\kie\remote\kie-services-remote\6.0.1.Final\kie-services-remote-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\remote\kie-services-client\6.0.1.Final\kie-services-client-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\java
x\jms\jms\1.1\jms-1.1.jar;C:\Users\AKILA\.m2\repository\org\jboss\spec\javax\servlet\jboss-servlet-api_3.0_spec\1.0.2.Final\jboss-servlet-api_3.0_spec-1.0.2.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\resteasy\resteasy-jaxrs\2.3.6.Final\resteasy-jaxrs-2.3.6.Final.jar;C:\Users\AKILA\.m2\reposit
ory\org\scannotation\scannotation\1.0.3\scannotation-1.0.3.jar;C:\Users\AKILA\.m2\repository\javassist\javassist\3.12.1.GA\javassist-3.12.1.GA.jar;C:\Users\AKILA\.m2\repository\org\apache\httpcomponents\httpclient\4.2.1\httpclient-4.2.1.jar;C:\Users\AKILA\.m2\repository\net\jcip\jcip-annotations\1.0
\jcip-annotations-1.0.jar;C:\Users\AKILA\.m2\repository\org\jboss\resteasy\resteasy-jaxb-provider\2.3.6.Final\resteasy-jaxb-provider-2.3.6.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\resteasy\resteasy-jackson-provider\2.3.6.Final\resteasy-jackson-provider-2.3.6.Final.jar;C:\Users\AKILA\.m2\rep
ository\org\codehaus\jackson\jackson-jaxrs\1.9.9\jackson-jaxrs-1.9.9.jar;C:\Users\AKILA\.m2\repository\org\codehaus\jackson\jackson-xc\1.9.9\jackson-xc-1.9.9.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-audit\6.0.1.Final\jbpm-audit-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\resteasy\
jaxrs-api\2.3.6.Final\jaxrs-api-2.3.6.Final.jar;C:\Users\AKILA\.m2\repository\org\jboss\resteasy\resteasy-jettison-provider\2.3.6.Final\resteasy-jettison-provider-2.3.6.Final.jar;C:\Users\AKILA\.m2\repository\org\codehaus\jettison\jettison\1.3.1\jettison-1.3.1.jar;C:\Users\AKILA\.m2\repository\org\j
boss\spec\javax\ejb\jboss-ejb-api_3.1_spec\1.0.2.Final\jboss-ejb-api_3.1_spec-1.0.2.Final.jar;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-services-api\6.0.1.Final\guvnor-services-api-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-m2repo-editor-api\6.0.1.Final\guvnor-m2repo-edito
r-api-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-m2repo-editor-client\6.0.1.Final\guvnor-m2repo-editor-client-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-m2repo-editor-backend\6.0.1.Final\guvnor-m2repo-editor-backend-6.0.1.Final.jar;C:\Users\AKILA\.m2\reposit
ory\org\guvnor\guvnor-project-api\6.0.1.Final\guvnor-project-api-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\drools\drools-workbench-models-datamodel-api\6.0.1.Final\drools-workbench-models-datamodel-api-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-project-backend\6.0.1.Fina
l\guvnor-project-backend-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-services-backend\6.0.1.Final\guvnor-services-backend-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-workingset-api\6.0.1.Final\guvnor-workingset-api-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository
\org\guvnor\guvnor-workingset-client\6.0.1.Final\guvnor-workingset-client-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-project-builder\6.0.1.Final\guvnor-project-builder-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\com\google\protobuf\protobuf-java\2.5.0\protobuf-java-2.5.0.jar;C
:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-project-explorer-backend\6.0.1.Final\kie-wb-common-project-explorer-backend-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-project-explorer-api\6.0.1.Final\kie-wb-common-project-explorer-api-6
.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-project-explorer-client\6.0.1.Final\kie-wb-common-project-explorer-client-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-project-editor-client\6.0.1.Final\kie-wb-common-project
-editor-client-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-project-editor-api\6.0.1.Final\kie-wb-common-project-editor-api-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\widgets\kie-wb-view-source-widget\6.0.1.Final\kie-wb-view-source-widget
-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-default-editor-api\6.0.1.Final\kie-wb-common-default-editor-api-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-default-editor-client\6.0.1.Final\kie-wb-common-default-editor-
client-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-project-editor-backend\6.0.1.Final\kie-wb-common-project-editor-backend-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-project-imports-editor-client\6.0.1.Final\kie-wb-
common-project-imports-editor-client-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-project-imports-editor-api\6.0.1.Final\kie-wb-common-project-imports-editor-api-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\services\kie-wb-common-datamodel-
api\6.0.1.Final\kie-wb-common-datamodel-api-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\services\kie-wb-common-security\6.0.1.Final\kie-wb-common-security-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\widgets\kie-wb-common-ui\6.0.1.Final\kie-wb-common-ui-6.0.1.F
inal.jar;C:\Users\AKILA\.m2\repository\org\drools\drools-workbench-models-commons\6.0.1.Final\drools-workbench-models-commons-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\services\kie-wb-common-datamodel-backend\6.0.1.Final\kie-wb-common-datamodel-backend-6.0.1.Final.jar;C:\Users\
AKILA\.m2\repository\org\kie\workbench\services\kie-wb-common-services-api\6.0.1.Final\kie-wb-common-services-api-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\services\kie-wb-common-services-backend\6.0.1.Final\kie-wb-common-services-backend-6.0.1.Final.jar;C:\Users\AKILA\.m2\repo
sitory\org\kie\workbench\widgets\kie-wb-metadata-widget\6.0.1.Final\kie-wb-metadata-widget-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\widgets\kie-wb-config-resource-widget\6.0.1.Final\kie-wb-config-resource-widget-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-conso
le-ng-dashboard-client\6.0.1.Final\jbpm-console-ng-dashboard-client-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-console-ng-dashboard-backend\6.0.1.Final\jbpm-console-ng-dashboard-backend-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-console-ng-dashboard-api\6.0.1.Final\
jbpm-console-ng-dashboard-api-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-form-modeler-app\6.0.1.Final\jbpm-form-modeler-app-6.0.1.Final.war;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-form-modeler-renderer-api\6.0.1.Final\jbpm-form-modeler-renderer-api-6.0.1.Final.jar;C:\Users\AKILA
\.m2\repository\org\jbpm\jbpm-form-modeler-renderer-client\6.0.1.Final\jbpm-form-modeler-renderer-client-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-form-modeler-renderer-backend\6.0.1.Final\jbpm-form-modeler-renderer-backend-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbp
m-form-modeler-editor-api\6.0.1.Final\jbpm-form-modeler-editor-api-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-form-modeler-editor-client\6.0.1.Final\jbpm-form-modeler-editor-client-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-form-modeler-editor-backend\6.0.1.Final\jb
pm-form-modeler-editor-backend-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\services\kie-wb-common-data-modeller-core\6.0.1.Final\kie-wb-common-data-modeller-core-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-form-modeler-form-provider\6.0.1.Final\jbpm-form-modeler-f
orm-provider-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-data-modeller-api\6.0.1.Final\kie-wb-common-data-modeller-api-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-data-modeller-backend\6.0.1.Final\kie-wb-common-data-
modeller-backend-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-data-modeller-client\6.0.1.Final\kie-wb-common-data-modeller-client-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-form-modeler-data-modeler\6.0.1.Final\jbpm-form-modeler-data-modeler-
6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-form-modeler-service-core\6.0.1.Final\jbpm-form-modeler-service-core-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-form-modeler-common\6.0.1.Final\jbpm-form-modeler-common-6.0.1.Final.jar;C:\Users\AKILA\.m2\repository\net\sf\o
pencsv\opencsv\2.3\opencsv-2.3.jar;C:\Users\AKILA\.m2\repository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;C:\Users\AKILA\.m2\repository\org\beanshell\bsh\1.3.0\bsh-1.3.0.jar;C:\Users\AKILA\.m2\repository\org\jboss\spec\javax\servlet\jsp\jboss-jsp-api_2.2_spec\1.0.1.Final\jboss-jsp-ap
i_2.2_spec-1.0.1.Final.jar;C:\Users\AKILA\.m2\repository\javax\servlet\jstl\1.2\jstl-1.2.jar;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-m2repo-editor-api\6.0.1.Final\guvnor-m2repo-editor-api-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-m2repo-editor-client\6.0.1.Final
\guvnor-m2repo-editor-client-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-workingset-api\6.0.1.Final\guvnor-workingset-api-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-workingset-client\6.0.1.Final\guvnor-workingset-client-6.0.1.Final-sources.jar
;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-services-api\6.0.1.Final\guvnor-services-api-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\guvnor\guvnor-project-api\6.0.1.Final\guvnor-project-api-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-comm
on-project-editor-api\6.0.1.Final\kie-wb-common-project-editor-api-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-project-editor-client\6.0.1.Final\kie-wb-common-project-editor-client-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\kie\workben
ch\screens\kie-wb-common-project-imports-editor-api\6.0.1.Final\kie-wb-common-project-imports-editor-api-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-project-imports-editor-client\6.0.1.Final\kie-wb-common-project-imports-editor-client-6.0.1.Final-sou
rces.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-project-explorer-api\6.0.1.Final\kie-wb-common-project-explorer-api-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-project-explorer-client\6.0.1.Final\kie-wb-common-project-e
xplorer-client-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\widgets\kie-wb-common-ui\6.0.1.Final\kie-wb-common-ui-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\widgets\kie-wb-view-source-widget\6.0.1.Final\kie-wb-view-source-widget-6.0.1.Final-sou
rces.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\widgets\kie-wb-metadata-widget\6.0.1.Final\kie-wb-metadata-widget-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\widgets\kie-wb-config-resource-widget\6.0.1.Final\kie-wb-config-resource-widget-6.0.1.Final-sources.jar;C
:\Users\AKILA\.m2\repository\org\kie\workbench\services\kie-wb-common-services-api\6.0.1.Final\kie-wb-common-services-api-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\services\kie-wb-common-security\6.0.1.Final\kie-wb-common-security-6.0.1.Final-sources.jar;C:\Users\AKILA\
.m2\repository\org\kie\workbench\services\kie-wb-common-datamodel-api\6.0.1.Final\kie-wb-common-datamodel-api-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-data-modeller-api\6.0.1.Final\kie-wb-common-data-modeller-api-6.0.1.Final-sources.jar;C:\Users\A
KILA\.m2\repository\org\kie\workbench\screens\kie-wb-common-data-modeller-client\6.0.1.Final\kie-wb-common-data-modeller-client-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\uberfire\uberfire-commons\0.3.1.Final\uberfire-commons-0.3.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\u
berfire\uberfire-nio2-model\0.3.1.Final\uberfire-nio2-model-0.3.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\uberfire\uberfire-js\0.3.1.Final\uberfire-js-0.3.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\uberfire\uberfire-security-api\0.3.1.Final\uberfire-security-api-0.3.1.Final-so
urces.jar;C:\Users\AKILA\.m2\repository\org\uberfire\uberfire-security-client\0.3.1.Final\uberfire-security-client-0.3.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\uberfire\uberfire-client-api\0.3.1.Final\uberfire-client-api-0.3.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\uberfire
\uberfire-widgets-core-client\0.3.1.Final\uberfire-widgets-core-client-0.3.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\uberfire\uberfire-widgets-commons\0.3.1.Final\uberfire-widgets-commons-0.3.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\uberfire\uberfire-workbench\0.3.1.Final\ub
erfire-workbench-0.3.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-console-ng-bpm-home-client\6.0.1.Final\jbpm-console-ng-bpm-home-client-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-console-ng-human-tasks-api\6.0.1.Final\jbpm-console-ng-human-tasks-api-6.0.1
.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-console-ng-human-tasks-client\6.0.1.Final\jbpm-console-ng-human-tasks-client-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-console-ng-process-runtime-api\6.0.1.Final\jbpm-console-ng-process-runtime-api-6.0.1.Final-s
ources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-console-ng-process-runtime-client\6.0.1.Final\jbpm-console-ng-process-runtime-client-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-console-ng-business-domain-api\6.0.1.Final\jbpm-console-ng-business-domain-api-6.0.1.Final-s
ources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-console-ng-business-domain-client\6.0.1.Final\jbpm-console-ng-business-domain-client-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-designer-api\6.0.1.Final\jbpm-designer-api-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\reposi
tory\org\jbpm\jbpm-designer-client\6.0.1.Final\jbpm-designer-client-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-console-ng-dashboard-api\6.0.1.Final\jbpm-console-ng-dashboard-api-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-console-ng-dashboard-client\6
.0.1.Final\jbpm-console-ng-dashboard-client-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-form-modeler-editor-api\6.0.1.Final\jbpm-form-modeler-editor-api-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-form-modeler-editor-client\6.0.1.Final\jbpm-form-modele
r-editor-client-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-form-modeler-renderer-api\6.0.1.Final\jbpm-form-modeler-renderer-api-6.0.1.Final-sources.jar;C:\Users\AKILA\.m2\repository\org\jbpm\jbpm-form-modeler-renderer-client\6.0.1.Final\jbpm-form-modeler-renderer-client-6.0.
1.Final-sources.jar, com.google.gwt.dev.Compiler, -logLevel, INFO, -style, OBF, -war, C:\Users\AKILA\workspace\jbpm-console-ng-r6.0.1.Final\jbpm-console-ng-showcase\target\jbpm-console-ng-showcase-6.0.1.Final, -localWorkers, 4, -XfragmentCount, -1, -gen, C:\Users\AKILA\workspace\jbpm-console-ng-r6.0
.1.Final\jbpm-console-ng-showcase\target\.generated, org.jbpm.console.ng.FastCompiledjBPMShowcase]: Error while executing process. Cannot run program "C:\Program Files\Java\jdk1.6.0_45\jre\bin\java": CreateProcess error=206, The filename or extension is too long
please help me to resolve this problem
and i saw some people said this project working properly in linux platform...but i want to use it in windows platform
You can change it to gradle project , It can be built under win7+gradle2.0+jdk 1.7.51 .
This is a maven issue with long paths in windows, you need to ask in their forums for answer. Try googling the specific issues, you will find some answers there.
I'm using lein 1.7.1 on a ubuntu machine. I've added localrepo by including
:dev-dependencies [[lein-localrepo "0.3"]]
to my project.clj file. lein deps runs fine but using localrepo like in lein localrepo coords example.jar throws me a nasty error:
Exception in thread "main" java.io.FileNotFoundException: Could not locate leiningen/core/main__init.class or leiningen/core/main.clj on classpath: (localrepo.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5441)
at clojure.lang.Compiler.eval(Compiler.java:5416)
at clojure.lang.Compiler.load(Compiler.java:5858)
at clojure.lang.RT.loadResourceScript(RT.java:340)
at clojure.lang.RT.loadResourceScript(RT.java:331)
at clojure.lang.RT.load(RT.java:409)
at clojure.lang.RT.load(RT.java:381)
at clojure.core$load$fn__4519.invoke(core.clj:4915)
at clojure.core$load.doInvoke(core.clj:4914)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:4729)
at clojure.core$load_lib.doInvoke(core.clj:4766)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$load_libs.doInvoke(core.clj:4800)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$require.doInvoke(core.clj:4881)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at leiningen.core$resolve_task.invoke(core.clj:208)
at leiningen.core$apply_task.invoke(core.clj:258)
at leiningen.core$_main.doInvoke(core.clj:329)
at clojure.lang.RestFn.applyTo(RestFn.java:139)
at clojure.core$apply.invoke(core.clj:542)
at leiningen.core$_main.invoke(core.clj:332)
at user$eval42.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5425)
at clojure.lang.Compiler.eval(Compiler.java:5392)
at clojure.core$eval.invoke(core.clj:2382)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$script_opt.invoke(main.clj:270)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:512)
at clojure.lang.Var.invoke(Var.java:385)
at clojure.lang.AFn.applyToHelper(AFn.java:185)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
Caused by: java.io.FileNotFoundException: Could not locate leiningen/core/main__init.class or leiningen/core/main.clj on classpath:
at clojure.lang.RT.load(RT.java:412)
at clojure.lang.RT.load(RT.java:381)
at clojure.core$load$fn__4519.invoke(core.clj:4915)
at clojure.core$load.doInvoke(core.clj:4914)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:4729)
at clojure.core$load_lib.doInvoke(core.clj:4766)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$load_libs.doInvoke(core.clj:4800)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$require.doInvoke(core.clj:4881)
at clojure.lang.RestFn.invoke(RestFn.java:551)
at leiningen.localrepo$eval68$loading__4414__auto____69.invoke(localrepo.clj:1)
at leiningen.localrepo$eval68.invoke(localrepo.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5425)
... 37 more
I've searched this error on the web, but can't find any reference to it or any viable solutions. How do I resolve this error?
I don't believe you're using version 0.3 of the lein-localrepo plugin. I suspect a newer version is being picked up. Version 0.3 doesn't make reference to leiningen.core.main whereas 0.4 or better does. If you manage to get the right plugin installed, I bet it will work fine.
I am trying to get SBT running on my Mac Operating System.
So far, I downloaded the Jar-Launcher and installed in into the /bin folder.
Then I created a SBT script, containing the following lines:
export PATH=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:$PATH
java -Xmx512M -jar ` $0` /bin/sbt-launch-0.7.7.jar "$#"
When I call SBT on the Console, I receive the following series of error messages:
> /bin/sbt: fork: Resource temporarily unavailable
java.io.IOException: Cannot run program "sh": error=35, Resource temporarily unavailable
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at jline.UnixTerminal.exec(UnixTerminal.java:297)
at jline.UnixTerminal.exec(UnixTerminal.java:282)
at jline.UnixTerminal.stty(UnixTerminal.java:273)
at jline.UnixTerminal.initializeTerminal(UnixTerminal.java:77)
at jline.Terminal.setupTerminal(Terminal.java:75)
at jline.Terminal.getTerminal(Terminal.java:26)
at xsbt.boot.JLine$.terminal(SimpleReader.scala:20)
at xsbt.boot.JLine$.createReader(SimpleReader.scala:22)
at xsbt.boot.SimpleReader$.<init>(SimpleReader.scala:42)
at xsbt.boot.SimpleReader$.<clinit>(SimpleReader.scala)
at xsbt.boot.Initialize$.create(Create.scala:17)
at xsbt.boot.Launch$.parsed(Launch.scala:28)
at xsbt.boot.Launch$.configured(Launch.scala:21)
at xsbt.boot.Launch$.apply(Launch.scala:16)
at xsbt.boot.Launch$.apply(Launch.scala:13)
at xsbt.boot.Boot$.runImpl(Boot.scala:24)
at xsbt.boot.Boot$.run(Boot.scala:19)
at xsbt.boot.Boot$.main(Boot.scala:15)
at xsbt.boot.Boot.main(Boot.scala)
Caused by: java.io.IOException: error=35, Resource temporarily unavailable
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
at java.lang.ProcessImpl.start(ProcessImpl.java:91)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 21 more
What is going wrong here?
Looks like you have a stray $0 there (which is expanded to the name of the current process sh). Try
java -Xmx512M -jar /bin/sbt-launch-0.7.7.jar "$#"
instead. That should get you up and running. The usual way is to call sbt like so:
java -Xmx512M -jar `dirname $0`/sbt-launch.jar "$#"
supposed you have the shell script sbt in the same folder as sbt-launch.jar because that is where dirname $0 points at.
When i try to compile scalala i get a OutOfMemoryError:
> compile
[info]
[info] == compile ==
[info] Source analysis: 127 new/modified, 0 indirectly invalidated, 0 removed.
[info] Compiling main sources...
[info] == compile ==
java.lang.OutOfMemoryError: Java heap space
at scala.Tuple2$Zipped.map(Tuple2.scala:63)
at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:3134)
at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:3024)
at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3455)
at scala.tools.nsc.symtab.Types$Type.subst(Types.scala:580)
at scala.tools.nsc.symtab.Types$Type.instantiateTypeParams(Types.scala:421)
at scala.tools.nsc.typechecker.Infer$Inferencer.exprTypeArgs(Infer.scala:449)
at scala.tools.nsc.typechecker.Infer$Inferencer.inferExprInstance(Infer.scala:1103)
at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:738)
at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:732)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.typedImplicit1(Implicits.scala:484)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.typedImplicit0(Implicits.scala:449)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.scala$tools$nsc$typechecker$Implicits$ImplicitSearch$$typedImplicit(Implicits.scala:376)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.tryImplicitInfo$1(Implicits.scala:668)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.rankImplicits(Implicits.scala:671)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.findBest(Implicits.scala:695)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.searchImplicit(Implicits.scala:753)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.implicitManifestOrOfExpectedType(Implicits.scala:1069)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.bestImplicit(Implicits.scala:1096)
at scala.tools.nsc.typechecker.Implicits$class.inferImplicit(Implicits.scala:57)
at scala.tools.nsc.Global$analyzer$.inferImplicit(Global.scala:347)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$applyImplicitArgs$1.apply(Typers.scala:120)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$applyImplicitArgs$1.apply(Typers.scala:115)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.tools.nsc.typechecker.Typers$Typer.applyImplicitArgs(Typers.scala:115)
at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:760)
at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:732)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.typedImplicit1(Implicits.scala:484)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.typedImplicit0(Implicits.scala:449)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.scala$tools$nsc$typechecker$Implicits$ImplicitSearch$$typedImplicit(Implicits.scala:376)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.tryImplicitInfo$1(Implicits.scala:668)
Error during sbt execution: java.lang.OutOfMemoryError: Java heap space
Exception in thread "Poller SunPKCS11-Darwin" java.lang.OutOfMemoryError: Java heap space
at sun.security.pkcs11.wrapper.PKCS11.C_GetSlotInfo(Native Method)
at sun.security.pkcs11.SunPKCS11.initToken(SunPKCS11.java:767)
at sun.security.pkcs11.SunPKCS11.access$100(SunPKCS11.java:42)
at sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:700)
at java.lang.Thread.run(Thread.java:680)
{/Users/axaluss/LIBRARIES/scalala-Scalala-f2876c8/scalala-Scalala-f2876c8}
###[ axaluss ]:
I dont know much about SBT so I dont know what I am doing wrong.
The sbt file I changed to:
java $SBT_OPTS -Dfile.encoding=UTF-8 -Xss4M -Xmx1024M -XX:MaxPermSize=1024M -XX:NewSize=512M -XX:NewRatio=3 -jar `dirname $0`/project/sbt-launch-0.7.5.jar "$#"
Build.properties:
#Project properties
#Mon Apr 11 02:52:55 PDT 2011
project.organization=org.scalala
project.name=scalala
sbt.version=0.7.4
project.version=1.0.0.RC2-SNAPSHOT
def.scala.version=2.9.0
build.scala.versions=2.9.0
project.initialize=false
The same problem occured when compiling for scala 2.8.1.
How can I manage to compile scalala?
Thanks for any help!
Try to increase heap size a bit, in sbt put:
-Xmx1524M
sbt command can read JAVA_OPTS or SBT_OPTS environment variable. Co you can try:
$ JAVA_OPTS=-Xmx1524M
If that doesn't work and you are using OpenJDK on a Linux based OS, then you can also try this:
# echo 1 > /proc/sys/vm/overcommit_memory
Just setting SBT_OPTS may not work as the JAVA_OPTS appear after those and at least my java version "1.7.0_80" uses the last flag to set the heapsize.