I tried compiling it and was presented with the following error: .... [java] ; Loading C:/Downloads/Armed_Bear_Lisp/abcl-src-1.5.0/build/classes/org/armedbear/lisp/abcl-contrib.abcl ... [java] [java] ; Compilation unit finished [java] ; The following functions were used but not defined: [java] ; SYSTEM::SOURCE [java] [java] 311.988 seconds real time [java] 249904041 cons cells [java] JAVA-EXCEPTION: Java exception 'java.lang.NoSuchMethodException: No applicable method named getURLs found in java.lang.ClassLoader or jdk.internal.loader.ClassLoaders$AppClassLoader'.
BUILD FAILED C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:280: The following error occurred while executing this line: C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:299: Java returned: -1
Total time: 6 minutes 11 seconds
It compiled successfully under JDK_1_8_0_144. Has anyone else seen this?
That's weird, because looking at this http://download.java.net/java/jdk9/docs/api/java/net/URLClassLoader.html#get... (http://preview.tinyurl.com/yat6a6oq), it looks like that method is still supplied in Java 9.
But I'm not a Java person at all, so I could easily be wrong about this.
On 27 Sep 2017, at 12:51, Gregory Baryza wrote:
I tried compiling it and was presented with the following error: .... [java] ; Loading C:/Downloads/Armed_Bear_Lisp/abcl-src-1.5.0/build/classes/org/armedbear/lisp/abcl-contrib.abcl ... [java] [java] ; Compilation unit finished [java] ; The following functions were used but not defined: [java] ; SYSTEM::SOURCE [java] [java] 311.988 seconds real time [java] 249904041 cons cells [java] JAVA-EXCEPTION: Java exception 'java.lang.NoSuchMethodException: No applicable method named getURLs found in java.lang.ClassLoader or jdk.internal.loader.ClassLoaders$AppClassLoader'.
BUILD FAILED C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:280: The following error occurred while executing this line: C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:299: Java returned: -1
Total time: 6 minutes 11 seconds
It compiled successfully under JDK_1_8_0_144. Has anyone else seen this?
I am not a Java 9 expert either. I just installed and switched the value of JAVA_HOME to point to it. I ran ant under Windows 10 in the build directory and sent the output to a log file. That's all I know at the moment.
On Wed, Sep 27, 2017 at 1:56 PM, Robert Goldman rpgoldman@sift.net wrote:
That's weird, because looking at this http://download.java.net/java/ jdk9/docs/api/java/net/URLClassLoader.html#getURLs-- ( http://preview.tinyurl.com/yat6a6oq), it looks like that method is still supplied in Java 9.
But I'm not a Java person at all, so I could easily be wrong about this.
On 27 Sep 2017, at 12:51, Gregory Baryza wrote:
I tried compiling it and was presented with the following error:
.... [java] ; Loading
C:/Downloads/Armed_Bear_Lisp/abcl-src-1.5.0/build/classes/or g/armedbear/lisp/abcl-contrib.abcl ... [java] [java] ; Compilation unit finished [java] ; The following functions were used but not defined: [java] ; SYSTEM::SOURCE [java] [java] 311.988 seconds real time [java] 249904041 cons cells [java] JAVA-EXCEPTION: Java exception 'java.lang.NoSuchMethodException: No applicable method named getURLs found in java.lang.ClassLoader or jdk.internal.loader.ClassLoaders$AppClassLoader'.
BUILD FAILED C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:280: The following error occurred while executing this line: C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:299: Java returned: -1
Total time: 6 minutes 11 seconds
It compiled successfully under JDK_1_8_0_144. Has anyone else seen this?
I will add that the build warns not to use Java 9. It appears it should fail right there.
On Wed, Sep 27, 2017 at 2:09 PM, Gregory Baryza gabaryza@gmail.com wrote:
I am not a Java 9 expert either. I just installed and switched the value of JAVA_HOME to point to it. I ran ant under Windows 10 in the build directory and sent the output to a log file. That's all I know at the moment.
On Wed, Sep 27, 2017 at 1:56 PM, Robert Goldman rpgoldman@sift.net wrote:
That's weird, because looking at this http://download.java.net/java/ jdk9/docs/api/java/net/URLClassLoader.html#getURLs-- ( http://preview.tinyurl.com/yat6a6oq), it looks like that method is still supplied in Java 9.
But I'm not a Java person at all, so I could easily be wrong about this.
On 27 Sep 2017, at 12:51, Gregory Baryza wrote:
I tried compiling it and was presented with the following error:
.... [java] ; Loading
C:/Downloads/Armed_Bear_Lisp/abcl-src-1.5.0/build/classes/or g/armedbear/lisp/abcl-contrib.abcl ... [java] [java] ; Compilation unit finished [java] ; The following functions were used but not defined: [java] ; SYSTEM::SOURCE [java] [java] 311.988 seconds real time [java] 249904041 cons cells [java] JAVA-EXCEPTION: Java exception 'java.lang.NoSuchMethodException: No applicable method named getURLs found in java.lang.ClassLoader or jdk.internal.loader.ClassLoaders$AppClassLoader'.
BUILD FAILED C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:280: The following error occurred while executing this line: C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:299: Java returned: -1
Total time: 6 minutes 11 seconds
It compiled successfully under JDK_1_8_0_144. Has anyone else seen this?
The issue is that in Java 9 the platform classloader is not an URLClassLoader anymore. It was never specified to be one, but it happened to be so in all widely used implementations.
Il 27 set 2017 20:13, "Gregory Baryza" gabaryza@gmail.com ha scritto:
I will add that the build warns not to use Java 9. It appears it should fail right there.
On Wed, Sep 27, 2017 at 2:09 PM, Gregory Baryza gabaryza@gmail.com wrote:
I am not a Java 9 expert either. I just installed and switched the value of JAVA_HOME to point to it. I ran ant under Windows 10 in the build directory and sent the output to a log file. That's all I know at the moment.
On Wed, Sep 27, 2017 at 1:56 PM, Robert Goldman rpgoldman@sift.net wrote:
That's weird, because looking at this http://download.java.net/java/ jdk9/docs/api/java/net/URLClassLoader.html#getURLs-- ( http://preview.tinyurl.com/yat6a6oq), it looks like that method is still supplied in Java 9.
But I'm not a Java person at all, so I could easily be wrong about this.
On 27 Sep 2017, at 12:51, Gregory Baryza wrote:
I tried compiling it and was presented with the following error:
.... [java] ; Loading
C:/Downloads/Armed_Bear_Lisp/abcl-src-1.5.0/build/classes/or g/armedbear/lisp/abcl-contrib.abcl ... [java] [java] ; Compilation unit finished [java] ; The following functions were used but not defined: [java] ; SYSTEM::SOURCE [java] [java] 311.988 seconds real time [java] 249904041 cons cells [java] JAVA-EXCEPTION: Java exception 'java.lang.NoSuchMethodException: No applicable method named getURLs found in java.lang.ClassLoader or jdk.internal.loader.ClassLoaders$AppClassLoader'.
BUILD FAILED C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:280: The following error occurred while executing this line: C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:299: Java returned: -1
Total time: 6 minutes 11 seconds
It compiled successfully under JDK_1_8_0_144. Has anyone else seen this?
I'm not classloader-competent but I'll see what I can do. Don't anyone wait for me; it may take a while.
On Wed, Sep 27, 2017 at 2:26 PM, Alessio Stalla alessiostalla@gmail.com wrote:
The issue is that in Java 9 the platform classloader is not an URLClassLoader anymore. It was never specified to be one, but it happened to be so in all widely used implementations.
Il 27 set 2017 20:13, "Gregory Baryza" gabaryza@gmail.com ha scritto:
I will add that the build warns not to use Java 9. It appears it should fail right there.
On Wed, Sep 27, 2017 at 2:09 PM, Gregory Baryza gabaryza@gmail.com wrote:
I am not a Java 9 expert either. I just installed and switched the value of JAVA_HOME to point to it. I ran ant under Windows 10 in the build directory and sent the output to a log file. That's all I know at the moment.
On Wed, Sep 27, 2017 at 1:56 PM, Robert Goldman rpgoldman@sift.net wrote:
That's weird, because looking at this http://download.java.net/java/ jdk9/docs/api/java/net/URLClassLoader.html#getURLs-- ( http://preview.tinyurl.com/yat6a6oq), it looks like that method is still supplied in Java 9.
But I'm not a Java person at all, so I could easily be wrong about this.
On 27 Sep 2017, at 12:51, Gregory Baryza wrote:
I tried compiling it and was presented with the following error:
.... [java] ; Loading
C:/Downloads/Armed_Bear_Lisp/abcl-src-1.5.0/build/classes/or g/armedbear/lisp/abcl-contrib.abcl ... [java] [java] ; Compilation unit finished [java] ; The following functions were used but not defined: [java] ; SYSTEM::SOURCE [java] [java] 311.988 seconds real time [java] 249904041 cons cells [java] JAVA-EXCEPTION: Java exception 'java.lang.NoSuchMethodException: No applicable method named getURLs found in java.lang.ClassLoader or jdk.internal.loader.ClassLoaders$AppClassLoader'.
BUILD FAILED C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:280: The following error occurred while executing this line: C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:299: Java returned: -1
Total time: 6 minutes 11 seconds
It compiled successfully under JDK_1_8_0_144. Has anyone else seen this?
On 9/27/17 19:51, Gregory Baryza wrote:
I tried compiling it and was presented with the following error: .... [java] ; Loading C:/Downloads/Armed_Bear_Lisp/abcl-src-1.5.0/build/classes/org/armedbear/lisp/abcl-contrib.abcl ... [java] [java] ; Compilation unit finished [java] ; The following functions were used but not defined: [java] ; SYSTEM::SOURCE [java] [java] 311.988 seconds real time [java] 249904041 cons cells [java] JAVA-EXCEPTION: Java exception 'java.lang.NoSuchMethodException: No applicable method named getURLs found in java.lang.ClassLoader or jdk.internal.loader.ClassLoaders$AppClassLoader'.
BUILD FAILED C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:280: The following error occurred while executing this line: C:\Downloads\Armed_Bear_Lisp\abcl-src-1.5.0\build.xml:299: Java returned: -1
Total time: 6 minutes 11 seconds
It compiled successfully under JDK_1_8_0_144. Has anyone else seen this?
[Java 9][java9] poses a fair number of challenges for ABCL that have not been addressed. A fairly trivial patch for compilation is attached to the ticket, but a much deeper problem lies in the tightening of restrictions in what one can do with Java interfaces.
In short, I do not see an easy way forward, but perhaps greater minds can think of a better kludge.
[java9]: http://abcl.org/trac/ticket/423
armedbear-devel@common-lisp.net