ceylon/ceylon-compiler — Issue #308: unable to run helloworld in 32-bit Win 7
Author: asookazian
Created: 2011-12-24 04:53:54+00:00
State: open

I was able to reproduce the following RuntimeException using the following JDK versions running in 32-bit Win 7:

jdk1.6.0_02
jdk1.7.0_02

C:\Downloads\software\ceylon-0.1\ceylon-0.1\samples\helloworld>..\..\bin\ceylon
com.acme.helloworld\1.0.0 John
Note: Ceylon repository 'http://modules.ceylon-lang.org' not yet available.
Exception in thread "main" java.lang.RuntimeException: Error using Ceylon Runtim
e.
at ceylon.modules.Main.main(Main.java:59)
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.jboss.modules.Module.run(Module.java:243)
at org.jboss.modules.Main.main(Main.java:313)
Caused by: java.lang.IllegalArgumentException: Module name contains invalid char
acters, or empty segments
at org.jboss.modules.ModuleIdentifier.fromString(ModuleIdentifier.java:1
88)
at ceylon.modules.jboss.runtime.AbstractJBossRuntime.createClassLoader(A
bstractJBossRuntime.java:48)
at ceylon.modules.api.runtime.AbstractRuntime.execute(AbstractRuntime.ja
va:87)
at ceylon.modules.Main.execute(Main.java:76)
at ceylon.modules.Main.main(Main.java:55)
... 6 more

These are the steps I followed to reproduce (from readme.md):

cd samples/helloworld
../../bin/ceylonc com.acme.helloworld
../../bin/ceylond -private com.acme.helloworld
../../bin/ceylon com.acme.helloworld/1.0.0 John