Re: JDK9 Modules

2016-07-13 Thread Malachi de Ælfweald
Ah, makes sense. I brought this up to them. They have updated the PPA ( https://launchpad.net/~webupd8team/+archive/ubuntu/java) to specify that it is using the regular JDK not the jigsaw build; with a link to the jigsaw build. Malachi de Ælfweald http://www.google.com/profiles/malachid On Tue

Re: JDK9 Modules

2016-07-12 Thread Alan Bateman
On 12/07/2016 22:24, Malachi de Ælfweald wrote: I notice that with 9-ea+125-2016-07-06-073258.javare.5251.nc , this works: --add-modules=ALL-SYSTEM --add-exports=java.base/sun.nio.ch =ALL-UNNAMED With a slightly newer 9-ea+126 fr

Re: JDK9 Modules

2016-07-12 Thread Malachi de Ælfweald
I notice that with 9-ea+125-2016-07-06-073258.javare.5251.nc, this works: --add-modules=ALL-SYSTEM --add-exports=java.base/sun.nio.ch=ALL-UNNAMED With a slightly newer 9-ea+126 from webupd8, it causes: Unrecognized option: --add-modules=ALL-SYSTEM Do we need to ask that the WebUpd8 team build wit

Re: JDK9 Modules

2016-07-06 Thread Malachi de Ælfweald
Verified that the following works with 9-ea+ 125-2016-07-06-073258.javare.5251.nc export _JAVA_OPTIONS="--add-modules=ALL-SYSTEM --add-exports=java.base/ sun.nio.ch=ALL-UNNAMED" Malachi de Ælfweald http://www.google.com/profiles/malachid On Wed, Jul 6, 2016 at 8:03 AM, Malachi de Ælfweald wro

Re: JDK9 Modules

2016-07-06 Thread Malachi de Ælfweald
Since the -addmods didn't work from within the options.compilerArgs, I thought I would check if these temporary jdk.launcher ones would work there instead of in _JAVA_OPTIONS. No go with that option. Also, interesting side note - I have the _JAVA_OPTIONS specified in my .bashrc, so it is picking t

Re: JDK9 Modules

2016-07-06 Thread Malachi de Ælfweald
I don't have a problem changing it to the new properties once they work =) Actually, that's probably why they didn't work in the gradle configuration. Malachi de Ælfweald http://www.google.com/profiles/malachid On Wed, Jul 6, 2016 at 7:44 AM, Alan Bateman wrote: > > > On 06/07/2016 15:30, Ma

Re: JDK9 Modules

2016-07-06 Thread Alan Bateman
On 06/07/2016 15:30, Malachi de Ælfweald wrote: I think I must be misunderstanding your suggestion. If I do: export _JAVA_OPTIONS="--add-modules=ALL-SYSTEM --add-exports=java.base/sun.nio.ch =ALL-UNNAMED" then: java -version reports: Unrecognized option: --add-modules=ALL

RE: JDK9 Modules

2016-07-06 Thread Stephen Felts
In the next few weeks, the options will change to the new format and your build will be broken.     From: Malachi de Ælfweald [mailto:malac...@gmail.com] Sent: Wednesday, July 06, 2016 10:30 AM To: Alan Bateman Cc: Stephen Felts; jigsaw-dev@openjdk.java.net Subject: Re: JDK9 Modules   I

Re: JDK9 Modules

2016-07-06 Thread Malachi de Ælfweald
I think I must be misunderstanding your suggestion. If I do: export _JAVA_OPTIONS="--add-modules=ALL-SYSTEM --add-exports=java.base/ sun.nio.ch=ALL-UNNAMED" then: java -version reports: Unrecognized option: --add-modules=ALL-SYSTEM Error: Could not create the Java Virtual Machine. Error: A fatal

Re: JDK9 Modules

2016-07-06 Thread Alan Bateman
On 05/07/2016 22:24, Malachi de Ælfweald wrote: With: export _JAVA_OPTIONS="-Djdk.launcher.addmods=ALL-SYSTEM -Djdk.launcher.addexports.0=java.base/sun.nio.ch=ALL-UNNAMED" no GRADLE_OPTIONS no options.compilerArgs in build.gradle 1. The dagger project compiles and runs 2. The neo4j project com

Re: JDK9 Modules

2016-07-05 Thread Malachi de Ælfweald
gaps, and maintain that over time with > packages added/deleted). > > > > *From:* Malachi de Ælfweald [mailto:malac...@gmail.com] > *Sent:* Tuesday, July 05, 2016 5:24 PM > > *To:* Stephen Felts > *Cc:* Remi Forax; jigsaw-dev@openjdk.java.net > *Subject:* Re: JDK9 Mod

RE: JDK9 Modules

2016-07-05 Thread Stephen Felts
@openjdk.java.net Subject: Re: JDK9 Modules   With: export _JAVA_OPTIONS="-Djdk.launcher.addmods=ALL-SYSTEM -Djdk.launcher.addexports.0=java.base/HYPERLINK "http://sun.nio.ch"sun.nio.ch=ALL-UNNAMED"; no GRADLE_OPTIONS no options.compilerArgs in build.gradle 1. The dagger proje

Re: JDK9 Modules

2016-07-05 Thread Malachi de Ælfweald
. > > > > > > *From:* Malachi de Ælfweald [mailto:malac...@gmail.com] > *Sent:* Tuesday, July 05, 2016 5:00 PM > > *To:* Stephen Felts > *Cc:* Remi Forax; jigsaw-dev@openjdk.java.net > *Subject:* Re: JDK9 Modules > > > > oh lol! I thought you were just it

RE: JDK9 Modules

2016-07-05 Thread Stephen Felts
@openjdk.java.net Subject: Re: JDK9 Modules   oh lol! I thought you were just italicizing! ;) That seemed to fix the Dagger one. Now let me try to back off of all the changes and figure out what the minimal configuration is. Malachi de Ælfweald http://www.google.com/profiles/malachid   On Tue

Re: JDK9 Modules

2016-07-05 Thread Malachi de Ælfweald
: > Well you need the leading underscore. > > > > *From:* Malachi de Ælfweald [mailto:malac...@gmail.com] > *Sent:* Tuesday, July 05, 2016 4:36 PM > > *To:* Stephen Felts > *Cc:* Remi Forax; jigsaw-dev@openjdk.java.net > *Subject:* Re: JDK9 Modules > > > > a

RE: JDK9 Modules

2016-07-05 Thread Stephen Felts
Subject: Re: JDK9 Modules Regarding the Neo4j one, I tried adding '-XaddExports:java.base/sun.nio.ch=ALL-UNNAMED' to both build.gradle and jdk9args, but it still says: Caused by: java.lang.IllegalAccessError: class org.neo4j.io.pagecache.impl.SingleFilePageSwapper (in unnamed module @0x490708

Re: JDK9 Modules

2016-07-05 Thread Malachi de Ælfweald
Regarding the Neo4j one, I tried adding '-XaddExports:java.base/sun.nio.ch=ALL-UNNAMED' to both build.gradle and jdk9args, but it still says: Caused by: java.lang.IllegalAccessError: class org.neo4j.io.pagecache.impl.SingleFilePageSwapper (in unnamed module @0x49070868) cannot access class sun.nio

RE: JDK9 Modules

2016-07-05 Thread Stephen Felts
Well you need the leading underscore.   From: Malachi de Ælfweald [mailto:malac...@gmail.com] Sent: Tuesday, July 05, 2016 4:36 PM To: Stephen Felts Cc: Remi Forax; jigsaw-dev@openjdk.java.net Subject: Re: JDK9 Modules   adding that (without the leading underscore) I still get

Re: JDK9 Modules

2016-07-05 Thread Malachi de Ælfweald
_*JAVA*_OPTIONS=”-Djdk.launcher.addmods=ALL-SYSTEM” > > > > > > > > *From:* Malachi de Ælfweald [mailto:malac...@gmail.com] > *Sent:* Tuesday, July 05, 2016 3:29 PM > > *To:* Stephen Felts > *Cc:* Remi Forax; jigsaw-dev@openjdk.java.net > *Subject:* Re: JDK9 Modules > > >

RE: JDK9 Modules

2016-07-05 Thread Stephen Felts
Try running with   export _JAVA_OPTIONS=”-Djdk.launcher.addmods=ALL-SYSTEM”       From: Malachi de Ælfweald [mailto:malac...@gmail.com] Sent: Tuesday, July 05, 2016 3:29 PM To: Stephen Felts Cc: Remi Forax; jigsaw-dev@openjdk.java.net Subject: Re: JDK9 Modules   That's a very u

Re: JDK9 Modules

2016-07-05 Thread Malachi de Ælfweald
ations.common > > > > You should get use to using > > jimage list --dir=. $JAVA_HOME/lib/modules > t > > textedit t > > > > > > *From:* Malachi de Ælfweald [mailto:malac...@gmail.com] > *Sent:* Tuesday, July 05, 2016 2:34 PM > > *To:* Stephen

RE: JDK9 Modules

2016-07-05 Thread Stephen Felts
emi Forax; jigsaw-dev@openjdk.java.net Subject: Re: JDK9 Modules   Hi Stephen, Here's the result of that change:   I tried this: export GRADLE_OPTS="@/home/malachi/work/private/sandbox2/jdk9args -Xmx2048m -Dorg.gradle.jvmargs=\"@/home/malachi/work/private/sandbox2/jdk9args

Re: JDK9 Modules

2016-07-05 Thread Malachi de Ælfweald
-Dorg.gradle.jvmargs="@/mydir/jdk9args -Xmx2048m " > > > > *From:* Malachi de Ælfweald [mailto:malac...@gmail.com] > *Sent:* Tuesday, July 05, 2016 1:52 PM > *To:* Stephen Felts > *Cc:* Remi Forax; jigsaw-dev@openjdk.java.net > *Subject:* Re: JDK9 Modules > > &g

RE: JDK9 Modules

2016-07-05 Thread Stephen Felts
e Ælfweald [mailto:malac...@gmail.com] Sent: Tuesday, July 05, 2016 1:52 PM To: Stephen Felts Cc: Remi Forax; jigsaw-dev@openjdk.java.net Subject: Re: JDK9 Modules   Adding the fork and forkOptions got me further on the Dagger test.  I also added -verbose. I can see: [loading /modules/java.annotati

Re: JDK9 Modules

2016-07-05 Thread Malachi de Ælfweald
27;t just re-set it at the > individual module level to -addmods java.xml.bind. > > > > -Original Message- > From: Malachi de Ælfweald [mailto:malac...@gmail.com] > Sent: Tuesday, July 05, 2016 4:15 AM > To: Remi Forax > Cc: jigsaw-dev@openjdk.java.net > Subj

Re: JDK9 Modules

2016-07-05 Thread forax
- Mail original - > De: "Stephen Felts" > À: "Malachi de Ælfweald" , "Remi Forax" > > Cc: jigsaw-dev@openjdk.java.net > Envoyé: Mardi 5 Juillet 2016 17:19:00 > Objet: RE: JDK9 Modules > > I sometimes find tracking down JDK9 rela

RE: JDK9 Modules

2016-07-05 Thread Stephen Felts
modules set globally but for one Gradle module I need java.xml.bind and I can't just re-set it at the individual module level to -addmods java.xml.bind. -Original Message- From: Malachi de Ælfweald [mailto:malac...@gmail.com] Sent: Tuesday, July 05, 2016 4:15 AM To: Remi Fo

Re: JDK9 Modules

2016-07-05 Thread Malachi de Ælfweald
Hi Alan, On Tue, Jul 5, 2016 at 1:03 AM, Alan Bateman wrote: > On 05/07/2016 08:00, Malachi de Ælfweald wrote: > > : >> >> Neo4j fails due to internal Sun classes being used: >> cannot access class sun.nio.ch.FileChannelImpl (in module java.base) >> because module java.base does not export sun.

Re: JDK9 Modules

2016-07-05 Thread Malachi de Ælfweald
Hi Remi, with: compileJava { options.compilerArgs += [ "-addmods", "java.se.ee" ] } It still says it can not find javax/annotation/Generated I'm on build 9-ea+123 Malachi de Ælfweald http://www.google.com/profiles/malachid On Tue, Jul 5, 2016 at 1:02 AM, Remi Forax wrote: >

Re: JDK9 Modules

2016-07-05 Thread Alan Bateman
On 05/07/2016 08:00, Malachi de Ælfweald wrote: : Neo4j fails due to internal Sun classes being used: cannot access class sun.nio.ch.FileChannelImpl (in module java.base) because module java.base does not export sun.nio.ch to unnamed module @0x6166e06f In this case then I assume the exception h

Re: JDK9 Modules

2016-07-05 Thread Remi Forax
- Mail original - > De: "Malachi de Ælfweald" > À: jigsaw-dev@openjdk.java.net > Envoyé: Mardi 5 Juillet 2016 09:00:22 > Objet: JDK9 Modules > > While I understand the motivation behind making the system more modular, I > am having a bit of a problem understanding how to use it with exist