Menu

#608 fails to build from source jdk v13, v11, v10

v14
open
nobody
None
5
2019-10-23
2019-10-22
bill-auger
No

on parabola/archlinux, the latest version of java that will build jmol is java v8 - is this expected behavior?

FTBS with java v13

classes:
    [mkdir] Created dir: /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/build/classes
    [javac] Compiling 1072 source files to /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
    [javac] error: Source option 6 is no longer supported. Use 7 or later.
    [javac] error: Target option 6 is no longer supported. Use 7 or later.

BUILD FAILED
/code/packages/abslibre/libre/jmol/src/jmol-14.29.54/build.xml:449: Compile failed; see the compiler error output for details.

FTBS with java v10, v11

/JmolAudio.java:42: error: package sun.audio does not exist
    [javac] import sun.audio.AudioData;
    [javac]                 ^
    [javac] /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/org/jmol/util/JmolAudio.java:43: error: package sun.audio does not exist
    [javac] import sun.audio.AudioDataStream;
    [javac]                 ^
    [javac] /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/org/jmol/util/JmolAudio.java:48: error: package sun.audio does not exist
    [javac]     javax.sound.sampled.LineListener.class, sun.audio.AudioData.class,
    [javac]                                                      ^
    [javac] /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/org/jmol/util/JmolAudio.java:49: error: package sun.audio does not exist
    [javac]     sun.audio.AudioDataStream.class })
    [javac]              ^
    [javac] /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/jspecview/application/AwtTreeNode.java:9: error: AwtTreeNode is not abstract and does not override abstract method children() in JSVTreeNode
    [javac] public class AwtTreeNode extends
    [javac]        ^
    [javac] /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/org/jmol/util/JmolAudio.java:117: error: cannot find symbol
    [javac]     AudioInputStream ais = AudioSystem.getAudioInputStream(new AudioDataStream(
    [javac]                                                                ^
    [javac]   symbol:   class AudioDataStream
    [javac]   location: class JmolAudio
    [javac] /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/org/jmol/util/JmolAudio.java:118: error: cannot find symbol
    [javac]         new AudioData((byte[]) data)));
    [javac]             ^
    [javac]   symbol:   class AudioData
    [javac]   location: class JmolAudio
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/org/jmol/util/BZone.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 7 errors
    [javac] 6 warnings

BUILD FAILED
/code/packages/abslibre/libre/jmol/src/jmol-14.29.54/build.xml:449: Compile failed; see the compiler error output for details.

Related

Bugs: #608

Discussion

  • Bob Hanson

    Bob Hanson - 2019-10-22

    Jmol at sourceforge is Java6 only.

    On Tue, Oct 22, 2019 at 12:15 PM bill-auger bill-auger@users.sourceforge.net wrote:


    Status: open
    Group: v14
    Created: Tue Oct 22, 2019 05:15 PM UTC by bill-auger
    Last Updated: Tue Oct 22, 2019 05:15 PM UTC
    Owner: nobody

    on parabola/archlinux, the latest version of java that will build jmol is
    java v8 - is this expected behavior?

    FTBS with java v13

    classes:
    [mkdir] Created dir: /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/build/classes
    [javac] Compiling 1072 source files to /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
    [javac] error: Source option 6 is no longer supported. Use 7 or later.
    [javac] error: Target option 6 is no longer supported. Use 7 or later.
    BUILD FAILED/code/packages/abslibre/libre/jmol/src/jmol-14.29.54/build.xml:449: Compile failed; see the compiler error output for details.

    FTBS with java v10, v11

    /JmolAudio.java:42: error: package sun.audio does not exist
    [javac] import sun.audio.AudioData;
    [javac] ^
    [javac] /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/org/jmol/util/JmolAudio.java:43: error: package sun.audio does not exist
    [javac] import sun.audio.AudioDataStream;
    [javac] ^
    [javac] /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/org/jmol/util/JmolAudio.java:48: error: package sun.audio does not exist
    [javac] javax.sound.sampled.LineListener.class, sun.audio.AudioData.class,
    [javac] ^
    [javac] /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/org/jmol/util/JmolAudio.java:49: error: package sun.audio does not exist
    [javac] sun.audio.AudioDataStream.class })
    [javac] ^
    [javac] /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/jspecview/application/AwtTreeNode.java:9: error: AwtTreeNode is not abstract and does not override abstract method children() in JSVTreeNode
    [javac] public class AwtTreeNode extends
    [javac] ^
    [javac] /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/org/jmol/util/JmolAudio.java:117: error: cannot find symbol
    [javac] AudioInputStream ais = AudioSystem.getAudioInputStream(new AudioDataStream(
    [javac] ^
    [javac] symbol: class AudioDataStream
    [javac] location: class JmolAudio
    [javac] /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/org/jmol/util/JmolAudio.java:118: error: cannot find symbol
    [javac] new AudioData((byte[]) data)));
    [javac] ^
    [javac] symbol: class AudioData
    [javac] location: class JmolAudio
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: /code/packages/abslibre/libre/jmol/src/jmol-14.29.54/src/org/jmol/util/BZone.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 7 errors
    [javac] 6 warnings
    BUILD FAILED/code/packages/abslibre/libre/jmol/src/jmol-14.29.54/build.xml:449: Compile failed; see the compiler error output for details.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/jmol/bugs/608/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

    --
    Robert M. Hanson
    Professor of Chemistry
    St. Olaf College
    Northfield, MN
    http://www.stolaf.edu/people/hansonr

    If nature does not answer first what we want,
    it is better to take what answer we get.

    -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900

     

    Related

    Bugs: #608

    • bill-auger

      bill-auger - 2019-10-23

      On Tue, 22 Oct 2019 23:03:15 -0000 Bob wrote:

      Jmol at sourceforge is Java6 only.

      an intriguing response - is that to say there is another
      jmol elsewhere? - or is that only to say that there are no future
      plans to target other versions of java?

      FWIW, the version that i compiled with java v8 appears to be
      working as expected - though i am not sure what to expect - do
      you know of a sample data file that i could try out?

       
      • Bob Hanson

        Bob Hanson - 2019-10-24

        On Tue, Oct 22, 2019 at 10:17 PM bill-auger bill-auger@users.sourceforge.net wrote:

        On Tue, 22 Oct 2019 23:03:15 -0000 Bob wrote:

        Jmol at sourceforge is Java6 only.

        an intriguing response - is that to say there is another
        jmol elsewhere? - or is that only to say that there are no future
        plans to target other versions of java?

        The GitHub version is at https://github.com/BobHanson/Jmol-SwingJS, and it
        is compatible with Java8+

        FWIW, the version that i compiled with java v8 appears to be
        working as expected - though i am not sure what to expect - do
        you know of a sample data file that i could try out?

        The thing is that the transpiler we are using for the SourceForge version
        is locked into Java6 syntax. So, for example, no:

        switch (test) {
        case "one":
        case "two":
        case "three":
        }

        And we do not have the capability (or desire) to modify that transpiler in
        any way, so it is also locked into earlier versions of Eclipse (Juno,
        maybe, can't remember).

        One of my next tasks is to complete the switch-over to SwingJS so that
        JSmol apps will be compatible with other SwingJS apps, such as Jalview and
        VARNA. Right now what we are doing is loading the Jmol application onto
        web pages that use SwingJS. Jalview, for instance, creates its own frame
        and embeds the Jmol application into it, then communicates directly with
        it, "java-to-java".

         

Log in to post a comment.