I think only poi 4.0 officially supports JDK 8 only and not JDK7 anymore.
Poi 3.17 supports 6,7,8.

I am not sure if Poi is jdk 9 ready rested yet. Maybe the upcoming release 4.0 
will be but the release manager can give you some definitive answer.

Do you need any specific jdk9 feature ?

> On 7. Feb 2018, at 13:15, Markus Sandmann <masan...@gmail.com> wrote:
> 
> Hi there,
> 
> currently I try to migrate my Projects to the latest JDK9 as well as
> updating used libaries like apache poi.
> Comming from v3.14 and JDK7 I have a strange problem that i can't find the
> solution to:
> 
> After updating apache poi I had to adjust some parts of my code because of
> deprecated/removed functions. (Migration to the new Color and FillPattern
> enums for example).
> 
> This step works just fine. After that I started the migration from JDK7 to
> JDK9. As soon as i switch die compiler level and system library to jdk9
> some of the Apache POI classes become unresolveable and/or unaccessible.
> 
> I already have a StackOverFlow post concerning this matter here with more
> details:
> https://stackoverflow.com/questions/48640064/migrating-apache-poi-3-14-to-3-17-and-jdk9
> 
> The offending classes are:
> 
> import org.apache.poi.ss.usermodel.Row;
> import org.apache.poi.xssf.usermodel.XSSFColor;
> import org.apache.poi.xssf.usermodel.XSSFFont;
> import org.apache.poi.xssf.usermodel.XSSFWorkbook;
> 
> All result in either "cannot be resolved" or "is not accessible" depending
> on whether i do a rebuild or a save after edit (which is strange and might
> be an eclipse bug?).
> 
> Other imports from the library like:
> import org.apache.poi.ss.usermodel.BorderStyle;
> import org.apache.poi.ss.usermodel.Cell;
> import org.apache.poi.ss.usermodel.FillPatternType;
> import org.apache.poi.ss.usermodel.IndexedColors;
> import org.apache.poi.xssf.usermodel.XSSFCellStyle;
> import org.apache.poi.xssf.usermodel.XSSFSheet;
> 
> work just fine.
> 
> When I switch the project back to JDK7 without touching any code the stuff
> compiles again just fine.
> 
> What's wrong here?
> 
> Greetings,
> Markus

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@poi.apache.org
For additional commands, e-mail: user-h...@poi.apache.org

Reply via email to