In the intra-mart Accel Platform, the areas influenced by the new Japanese era name are as follows.
(1) In the standard status, the intra-mart Accel Platform has the function that uses Japanese era names for the IM-Workflow seal impression function.
(2) When customers use "GGGG" or "G" for the pattern string that displays a year as a date format, Japanese era names are used.
(3) When customers use Module.calendar API, Japanese era names are used.
(4) Some functions use Japanese era names.
For (1) and (2), the information on Japanese era names set inside Java is used.
Either of the following methods can be used for supporting the added Japanese era name.
1.Update Java to released versions after the announcement of the new Japanese era name.
The new Japanese era name (Reiwa) was officially announced on April 1, 2019. Along the announcement, Oracle Corporation (Oracle) released updates for the new Japanese era name (Reiwa) on April 16, 2019.
We recommend the JDK update.
For Java 7
After concluding the support agreement with Oracle, update JDK to JDK 7u221 or later.
If you cannot update JDK to JDK 7u221 or later, perform the method 2.
For Java 8
After concluding the support agreement with Oracle, update JDK to JDK 8u211 or later.
If you cannot update JDK to JDK 8u221 or later, perform the method 2.
OpenJDK 11 (excluding Oracle JDK 11)
Update JDK to JDK 11.0.3 or later.
If you cannot update JDK to JDK 11.0.3 or later, perform the method 2.
For Oracle JDK 11
After concluding the support agreement with Oracle, update JDK to JDK 11.0.3 or later.
If you cannot update JDK to JDK 11.0.3 or later, perform the method 2.
2.Change Java settings.
For Java 7 and 8
If you change Java settings, change %JAVA_HOME/jre/lib/calendars.properties.
Change values of calendar.japanese.eras as follows.
calendar.japanese.eras: \
name=Meiji,abbr=M,since=-3218832000000; \
name=Taisho,abbr=T,since=-1812153600000; \
name=Showa,abbr=S,since=-1357603200000; \
name=Heisei,abbr=H,since=600220800000; \
name=NewEras,abbr=N,since=1546300800000
For name, specify the Japanese era name. If the full-byte notation is required, specify the escaped string mainly by using native2ascii.
For abbr, specify the abbreviation.
For since, specify the time to start the target Japanese era name in epoch msec.
For support of the new Japanese era name (Reiwa)
Change name=NewEras,abbr=N,since=1546300800000 to the following.
name=\u4ee4\u548c,abbr=R,since=1556668800000
For OpenJDK 11 (including OracleJDK)
Add the following to the JVM option on the application server startup.
-Djdk.calendar.japanese.supplemental.era="name=NewEras,abbr=N,since=1546300800000"
For name, specify the Japanese era name. If the full-byte notation is required, specify the escaped string mainly by using native2ascii.
For abbr, specify the abbreviation.
For since, specify the time to start the target Japanese era name in epoch msec.
The following is the JVM option for the support of the new Japanese era name (Reiwa).
-Djdk.calendar.japanese.supplemental.era="name=Reiwa,abbr=R,since=1556668800000"
If you want the performance similar to Java8 with OpenJDK, add the following.
-Djava.locale.providers=COMPAT,CLDR
For the support of Japanese Imperial Calendar in Java, refer to the following URL.
https://docs.oracle.com/javase/8/docs/technotes/guides/intl/calendar.doc.html
For (3), you can add the new Japanese era name by calling up Module.calendar.set(String name, String key, Number year, Number month, Number day) on startup.
For (4), the patch was released on April 19, 2019.
For patch contents, refer to the following URLs.
https://issue.intra-mart.jp/projects/iap/issues?query_id=484
https://issue.intra-mart.jp/projects/spreadsheet/issues?query_id=485
For details, refer to the following document.
https://www.intra-mart.jp/apidoc/iap/apilist-ssjs/doc/platform/Module.calendar/index.html#method-set_3
The versions officially supported by JDK are as follows:
Oracle JDK 8u221 and later
OpenJDK 8u222-b03 and later
Oracle JDK 11.0.3 and later
OpenJDK 11.0.3+7 and later
-- Target ------------------------------------------------------------------------
iAP/Accel Platform/All Updates
----------------------------------------------------------------------------------
FAQID:632