Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2020 21:06:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 244776] sysutils/javaservicewrapper does not build with JDK 11
Message-ID:  <bug-244776-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244776

            Bug ID: 244776
           Summary: sysutils/javaservicewrapper does not build with JDK 11
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: tommyhp2@gmail.com
                CC: michael.osipov@siemens.com
                CC: michael.osipov@siemens.com
             Flags: maintainer-feedback?(michael.osipov@siemens.com)

The port does not build with JDK 11:

compile-java:core:
    [mkdir] Created dir:
/wrkdirs/usr/ports/sysutils/javaservicewrapper/work/wrapper_3.5.41_src/buil=
d/classes
    [mkdir] Created dir:
/wrkdirs/usr/ports/sysutils/javaservicewrapper/work/wrapper_3.5.41_src/buil=
d/testclasses
    [mkdir] Created dir:
/wrkdirs/usr/ports/sysutils/javaservicewrapper/work/wrapper_3.5.41_src/lib
    [javac] Compiling 108 source files to
/wrkdirs/usr/ports/sysutils/javaservicewrapper/work/wrapper_3.5.41_src/buil=
d/classes
    [javac] warning: [options] bootstrap class path not set in conjunction =
with
-source 1.4
    [javac] error: Source option 1.4 is no longer supported. Use 6 or later.
    [javac] error: Target option 1.4 is no longer supported. Use 1.6 or lat=
er.
-------------------------------------------------------
When patching the default.properties as below per Makefile's "USE_JAVA=3D=
=20=20=20=20=20=20
1.8+"

--- default.properties.ori      2020-03-12 20:53:43.795864000 +0000
+++ default.properties  2020-03-12 20:54:02.283785000 +0000
@@ -28,7 +28,7 @@
 junit.failonerror =3D true

 #  Minimum version of Java required to build the Wrapper
-javac.target.version=3D1.4
+javac.target.version=3D1.8

 #  Location of java to build the pre-release
 javac.dir=3DE:\\j2sdk1.4.2_19


This error is thrown:

BUILD FAILED
/wrkdirs/usr/ports/sysutils/javaservicewrapper/work/wrapper_3.5.41_src/buil=
d.xml:552:
javah does not exist under Java 10 and higher, use the javac task with
nativeHeaderDir instead


I've also tried with the latest 3.5.43 with same result.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244776-7788>