Created attachment 216658 [details]
Set java version to 8
If you have "DEFAULT_VERSIONS+= java=11" in make.conf, then cad/sweethome3d fails to build:
===> Fetching all distfiles required by sweethome3d-6.4 for building
===> Extracting for sweethome3d-6.4
=> SHA256 Checksum OK for SweetHome3D-6.4-src.zip.
===> Patching for sweethome3d-6.4
===> Applying FreeBSD patches for sweethome3d-6.4 from /usr/ports/cad/sweethome3d/files
===> sweethome3d-6.4 depends on package: java3d>=0 - found
===> sweethome3d-6.4 depends on file: /usr/local/openjdk11/bin/java - found
===> sweethome3d-6.4 depends on file: /usr/local/bin/ant - found
===> Configuring for sweethome3d-6.4
===> Building for sweethome3d-6.4
[mkdir] Created dir: /tmp/work/usr/ports/cad/sweethome3d/work/SweetHome3D-6.4-src/build/classes
[javac] /tmp/work/usr/ports/cad/sweethome3d/work/SweetHome3D-6.4-src/build.xml:47: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 2 source files to /tmp/work/usr/ports/cad/sweethome3d/work/SweetHome3D-6.4-src/build/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.3
[javac] error: Source option 1.3 is no longer supported. Use 6 or later.
[javac] error: Target option 1.1 is no longer supported. Use 1.6 or later.
/tmp/work/usr/ports/cad/sweethome3d/work/SweetHome3D-6.4-src/build.xml:47: Compile failed; see the compiler error output for details.
Replace "yes" with "8" fixed issue:
Possible it can work with java 7 and even with 6 too.
cad/sweethome3d depends on java/java3d and it have the same issue.
Upstream issue about support java 11 by sweethome3d:
A commit references this bug:
Date: Fri Jul 24 15:24:41 UTC 2020
New revision: 543248
Lock these ports down to OpenJDK version 8, they do not build with neither
7 nor 11+.
Thanks, I've pinned both ports to OpenJDK version 8 for the moment; fixing them requires more than just a few mechanical changes (e.g. java/java3d makes heavy use of private Java classes) and should ideally be handled upstream.