That makes sense. But, in addition, we should probably make a new Jenkins job 
that specifically builds using “openjdk 8” b/c the current “openjdk” build uses 
the latest available, which is Java 11, and which is currently failing (and 
what prompted this whole thread). BTW, compiling with Java 10, targeting 8 
seems to work, which I’ve been using for quite a while, although this is not 
sustainable, since Java 10 is not an LTS release. I haven’t tried 12, 13, or 14 
yet.

I currently don’t see a problem (could change soon, though, pending further 
investigation), targeting: “compile with java 8, run with java 8+”, as well as 
“compile with java 11, run with java 9+”.  I was just hoping that we could also 
add “compile with java 11, run with java 8+”, but that doesn’t look to be 
possible. I’m a little surprised since 11 is the next LTS release after 8, so 
to me, the “compile with 11, run with 8+” option seems only reasonable.

But, I will work on getting the first option to happen (as in “compile with 11, 
run on 9+”), as you suggested.

Thanks,
~Roger

From: Niclas Hedhman <nic...@hedhman.org>
Sent: Wednesday, December 11, 2019 5:16 PM
To: dev@pivot.apache.org
Subject: Re: Building using Java 11?

Or make the build system understand the difference...

Roger, I think it is safe for you to make a decision whether to support one
or both, and if it is just going to be one, which one that is. If there are
users who have opinions, give them chance to chime in and take it from
there.

On Thu, Dec 12, 2019 at 1:30 AM Roger Whitcomb 
<rogerandb...@rbwhitcomb.com<mailto:rogerandb...@rbwhitcomb.com>>
wrote:

> I'm thinking that's the "problem" ... If I target Java 8 then the
> "--add-modules" flag is not supported, but apparently that is what is
> required (now) in Java 11 to make the package visible ... So, I'm thinking
> we're going to have a problem going forward.... In other words, we can't
> build with Java 11 unless we target Java 9+....??!!
>
> ~Roger
> ________________________________
> From: Marek Mosiewicz 
> <marekmosiew...@gmail.com<mailto:marekmosiew...@gmail.com>>
> Sent: Tuesday, December 10, 2019 12:07 AM
> To: dev@pivot.apache.org<mailto:dev@pivot.apache.org> 
> <dev@pivot.apache.org<mailto:dev@pivot.apache.org>>
> Subject: Re: Building using Java 11?
>
> As far as I know packages are mostly not removed fro JDK but been
> hiding. They must be made visible via Java 9 module config.
>
> Cheers,
> Marek Mosiewicz
>
>
> W dniu pon, 09.12.2019 o godzinie 17∶06 +0100, użytkownik Sandro
> Martini napisał:
> > Hi all,
> > sorry but even for me I'm still on Java 8 as development ...
> >
> > Bye
> >
> >
> > Il giorno dom 8 dic 2019 alle ore 07:19 Roger Whitcomb <
> > rogerandb...@rbwhitcomb.com<mailto:rogerandb...@rbwhitcomb.com>> ha scritto:
> >
> > > Yes that was my thought too. But the source code for Java 11 does
> > > have
> > > that class and the module dump indicates the appropriate module is
> > > being
> > > shipped. Let me try targeting Java 11 and see if that makes a
> > > difference.
> > >
> > > Thanks,
> > > ~Roger
> > >
> > >
> > > > On Dec 7, 2019, at 8:53 PM, Niclas Hedhman 
> > > > <nic...@hedhman.org<mailto:nic...@hedhman.org>>
> > > > wrote:
> > > >
> > > > I have not gone beyond Java 8 myself, but I know that Oracle has
> > > started to
> > > > remove packages from the JDK and that those need to be supplied
> > > separately.
> > > > > On Sat, Dec 7, 2019 at 9:17 AM Roger Whitcomb <
> > > roger.whitc...@actian.com<mailto:roger.whitc...@actian.com>>
> > > > > wrote:
> > > > >
> > > > > Hi all,
> > > > > I'm trying to build latest Pivot trunk code with
> > > > > Java 11
> > > > > and am running into this error:
> > > > >
> > > > >
> > > C:\Projects\pivot\trunk\core\src\org\apache\pivot\io\FileSerializer
> > > .java:27:
> > > > > error: package javax.activation does not exist
> > > > > import javax.activation.MimetypesFileTypeMap;
> > > > > ^
> > > > >
> > > C:\Projects\pivot\trunk\core\src\org\apache\pivot\io\FileSerializer
> > > .java:40:
> > > > > error: cannot find symbol
> > > > >
> > > > > Which I can resolve by adding the "--release 8" switch. But,
> > > > > then I run
> > > > > into this error, which I cannot seem to resolve:
> > > > >
> > > > >
> > > C:\Projects\pivot\trunk\wtk\src\org\apache\pivot\wtk\BrowserApplica
> > > tionContext.java:28:
> > > > > error: package netscape.javascript does not exist
> > > > > import netscape.javascript.JSObject;
> > > > > ^
> > > > >
> > > C:\Projects\pivot\trunk\wtk\src\org\apache\pivot\wtk\BrowserApplica
> > > tionContext.java:412:
> > > > > error: cannot find symbol
> > > > >
> > > > > Search of stackoverflow, or other Java forums has so far not
> > > > > helped.
> > > Any
> > > > > thoughts or experience with this??
> > > > >
> > > > > Thanks,
> > > > > ~Roger
> > > > >
> > > > >
> > > >
> > > > --
> > > > Niclas Hedhman, Software Developer
> > > > http://polygene.apache.org<http://polygene.apache.org> - New Energy for 
> > > > Java
>
>

--
Niclas Hedhman, Software Developer
http://polygene.apache.org<http://polygene.apache.org> - New Energy for Java

Reply via email to