Skip to content

compilation with java 17 fails #9

@fvalenduc

Description

@fvalenduc

squirrel-sql can be run with java 17. However, it doesn't seems it compiles with java 17. I get this error:

20:48 francois@pc-francois /usr/src/squirrel-sql/sql12% JAVACMD=/opt/openjdk-bin-17/bin/java ant
Warning: Unable to determine tools.jar location.
If build fails because sun.* classes could not be found,
Make sure you are using a JDK, not JRE as your user/system VM.
and that you have java-config version 2.0.30 or above installed.
Buildfile: /usr/src/squirrel-sql/sql12/build.xml

cleanAllAndInit:
[delete] Deleting directory /usr/src/squirrel-sql/sql12/output
[mkdir] Created dir: /usr/src/squirrel-sql/sql12/output/work/bin
[mkdir] Created dir: /usr/src/squirrel-sql/sql12/output/dist
[mkdir] Created dir: /usr/src/squirrel-sql/sql12/output/dist/lib
[mkdir] Created dir: /usr/src/squirrel-sql/sql12/output/dist/plugins
[mkdir] Created dir: /usr/src/squirrel-sql/sql12/output/izPackInstallJars
[mkdir] Created dir: /usr/src/squirrel-sql/sql12/output/plainZip/work
[delete] Deleting directory /usr/src/squirrel-sql/sql12/versionChecker/output
[mkdir] Created dir: /usr/src/squirrel-sql/sql12/versionChecker/output/work/bin

buildExInstaller:

compileVersionCheck:
[javac] Compiling 1 source file to /usr/src/squirrel-sql/sql12/versionChecker/output/work/bin
[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
/usr/src/squirrel-sql/sql12/build.xml:38: The following error occurred while executing this line:
/usr/src/squirrel-sql/sql12/build.xml:117: Compile failed; see the compiler error output for details.

Is this normal ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions