jigsaw.resolver.error trying to compile hello world

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

jigsaw.resolver.error trying to compile hello world

Jesse Glick
jigsaw$ ./build/linux-amd64/jdk-module-image/bin/javac -d /tmp jdk/src/solaris/demo/jigsaw/basic/src/module-info.java
error: Cannot resolve module dependencies using Jigsaw module resolver
   org.hello@=1: Cannot resolve
1 error

I think you need:

jigsaw$ hg -R jdk di
diff --git a/src/solaris/demo/jigsaw/basic/src/module-info.java b/src/solaris/demo/jigsaw/basic/src/module-info.java
--- a/src/solaris/demo/jigsaw/basic/src/module-info.java
+++ b/src/solaris/demo/jigsaw/basic/src/module-info.java
@@ -24,7 +24,7 @@
   */

  module org.hello @ 1 {
-    requires jdk.base @ 7-ea;
+    requires jdk.base @ 8-ea;
      class org.hello.Main;               // Main class
  }

though this is pretty poor error reporting.
Reply | Threaded
Open this post in threaded view
|

Re: jigsaw.resolver.error trying to compile hello world

Alan Bateman
On 23/01/2012 19:03, Jesse Glick wrote:

> jigsaw$ ./build/linux-amd64/jdk-module-image/bin/javac -d /tmp
> jdk/src/solaris/demo/jigsaw/basic/src/module-info.java
> error: Cannot resolve module dependencies using Jigsaw module resolver
>   org.hello@=1: Cannot resolve
> 1 error
>
> I think you need:
>
> jigsaw$ hg -R jdk di
> diff --git a/src/solaris/demo/jigsaw/basic/src/module-info.java
> b/src/solaris/demo/jigsaw/basic/src/module-info.java
> --- a/src/solaris/demo/jigsaw/basic/src/module-info.java
> +++ b/src/solaris/demo/jigsaw/basic/src/module-info.java
> @@ -24,7 +24,7 @@
>   */
>
>  module org.hello @ 1 {
> -    requires jdk.base @ 7-ea;
> +    requires jdk.base @ 8-ea;
>      class org.hello.Main;               // Main class
>  }
>
> though this is pretty poor error reporting.
The demo/sample was an oversight - thanks.

On the diagnostics then we know this requires work, hopefully in the
next few months as the rest of the core functionality is added.

-Alan.