留言板

which Liferay Version Supports JDK 1.8

Sagar P,修改在8 年前。

which Liferay Version Supports JDK 1.8

Junior Member 帖子: 34 加入日期: 14-9-4 最近的帖子
Hi all,

Could anyone please provide me the information regarding Which Liferay Version supports JDK 1.8?

Does Liferay 6.1.2 supports JDK 1.8?If not which version does it?

and also Current Liferay Version i.e 6.2 comes bundled with which Tomcat Version?
I know that we can download latest version and see but as we do not permission for that so I am asking the above QUESTION.

Thanks
thumbnail
Olaf Kock,修改在8 年前。

RE: which Liferay Version Supports JDK 1.8

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
Java8 support has been added late in the 6.1 cycle, I'm guessing that CE does not support it. Check the EE compatibility matrix (which states that Java8 support has been added in 6.1.20.

I believe that the current 6.2(.3) GA4 runs on Java8, while the plugins SDK, namely ServiceBuilder still might require Java7 for the build time operations. Runtime on Java8 should be fine. As technically CE is not supported, you might argue what this means - at least there shouldn't be bigger problems (maybe someone who's running CE on Java8 can report about their experience)

You are not limited to the version of tomcat that the Liferay Bundle contains - it's trivial to prepare your own bundle with the tomcat of your choice. In fact, even when you install the bundle, updating the tomcat part of it is purely in your domain. Liferay won't be updated because a security fix on tomcat is required. Liferay will typically bundle the latest tomcat available at release (or a month before release). The 6.2 CE GA4 bundle comes with tomcat 7.0.42

I have notified the team to update the public listing
Sagar P,修改在8 年前。

RE: which Liferay Version Supports JDK 1.8

Junior Member 帖子: 34 加入日期: 14-9-4 最近的帖子
Thanks a lot for the reply olaf.
thumbnail
Ho Yin Edward Chow,修改在8 年前。

RE: which Liferay Version Supports JDK 1.8

Junior Member 帖子: 53 加入日期: 13-8-28 最近的帖子
As Olaf mentioned Service Builder does have issues with JDK 8. So if you are using Service Builder make sure to run it on JDK 7.
Manish Kharkar,修改在7 年前。

RE: which Liferay Version Supports JDK 1.8

New Member 帖子: 24 加入日期: 14-12-8 最近的帖子
Hello All,
Does Liferay 6.2 CE GA6 portal support Java 8?
I am repeating this question, apologies.
Regards,
Manish.
thumbnail
Olaf Kock,修改在7 年前。

RE: which Liferay Version Supports JDK 1.8

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
Manish Kharkar:
Does Liferay 6.2 CE GA6 portal support Java 8?


Large changes typically don't happen mid-stream, so the same answers as above apply. Build ServiceBuilder projects on Java7 (run on 7 or 8), everything else builds, runs and works fine on Java8.

In case the ServiceBuilder problems with Java7 have been fixed in the mean time, please report back. I've simply not checked it back, I'm just running it on Java7.

Liferay 7 will require Java8, Java7 is not supported as a runtime environment. Careful, don't be tricked: Liferay7 currently starts up on Java7, but some components might require Java8, so that the actual error message is delayed to runtime.
Manish Kharkar,修改在7 年前。

RE: which Liferay Version Supports JDK 1.8

New Member 帖子: 24 加入日期: 14-12-8 最近的帖子
Hello,
Will Liferay 6.1.2 CE run on Java 8?
A simple test showed a lot of stack-overflow exceptions on server start-up.
These went away when we used Java 1.7.
Regards,
Manish.
thumbnail
David H Nebinger,修改在7 年前。

RE: which Liferay Version Supports JDK 1.8

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Wait wait wait, we have to clarify what is being said here...

6.2, some versions of 6.1, will run under the java 8 runtime environment.

6.1 and 6.2, however, are not compiled using java 8 and your own plugins/code should not be compiled using java 8. Stick with java 6 as the source/target versions during builds. The Liferay core up to 6.2 still used JDK6 as the target for all compiles.
thumbnail
Ritesh Rajpara,修改在7 年前。

RE: which Liferay Version Supports JDK 1.8

New Member 帖子: 2 加入日期: 12-5-28 最近的帖子
Hello David,

I am using Liferay 6.2 EE and Oracle jdk 8. When I build my service I am getting below error :

[javac] 1. ERROR in C:\mywork\liferay-developer-studio\liferay-plugins-sdk-6.2-ee-sp11\portlets\audit-logs-services-portlet\docroot\WEB-INF\service\com\liferay\sample\model\AuditLogs.java (at line 1)
[javac] /**
[javac] ^
[javac] The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
[javac] ----------
[javac] ----------
[javac] 2. ERROR in C:\mywork\liferay-developer-studio\liferay-plugins-sdk-6.2-ee-sp11\portlets\audit-logs-services-portlet\docroot\WEB-INF\service\com\liferay\sample\service\AuditLogsLocalServiceClp.java (at line 344)
[javac] ClpSerializer.translateInput(orderByComparator)
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] The type java.util.Comparator cannot be resolved. It is indirectly referenced from required .class files
[javac] ----------
[javac] 2 problems (2 errors)

PFA "ServiceBuilder_jdk8_error.txt" for full error log. Kindly provide inputs for the same.
thumbnail
David H Nebinger,修改在7 年前。

RE: which Liferay Version Supports JDK 1.8

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Did you not read my previous message? YOU SHOULD NOT COMPILE USING JDK8.

Period. End of line.

Compile using JDK6 but then you should be able to run under JDK8.
thumbnail
Ritesh Rajpara,修改在7 年前。

RE: which Liferay Version Supports JDK 1.8

New Member 帖子: 2 加入日期: 12-5-28 最近的帖子
Thank you very much for your response.
myar lasra,修改在6 年前。

RE: which Liferay Version Supports JDK 1.8

New Member 帖子: 3 加入日期: 17-7-25 最近的帖子
Hi David
I have devlope website using liferay 6.2.3 an all OK
but my computer server where i upload my website have java 1.8 ver
and my website is stop many time on 24 hour
can u help me plz
thumbnail
Marco Ferretti,修改在6 年前。

RE: which Liferay Version Supports JDK 1.8

Regular Member 帖子: 100 加入日期: 10-10-4 最近的帖子
David H Nebinger:
Wait wait wait, we have to clarify what is being said here...

6.2, some versions of 6.1, will run under the java 8 runtime environment.

6.1 and 6.2, however, are not compiled using java 8 and your own plugins/code should not be compiled using java 8. Stick with java 6 as the source/target versions during builds. The Liferay core up to 6.2 still used JDK6 as the target for all compiles.


I am not 100% sure my build will work but I have managed to compile both 6.2.5-ga6 portal and plugins (from git). I did this simply because I do not have a jdk6 any more on my machine and needed a debug environment in order to be able to tackle an upgrade (mid step from 6.0.6 to 7) issue . Hope this helps someone.

*portal*

BUILD SUCCESSFUL
Total time: 51 seconds
ferrema@pupfish:~/devel/liferay/trunk/liferay-portal$ git branch 
* (HEAD detached at 6.2.5-ga6)


*plugins*
had to add an explicit try/catch in portlets/wiki-navigation-portlet/docroot/WEB-INF/src/com/liferay/wikinavigation/util/MenuItem.java and change the URL for hooks/antisamy-hook/build.xml

ferrema@pupfish:~/devel/liferay/trunk/liferay-plugins$ git branch 
* (HEAD detached at 6.2.0-ga1)
ferrema@pupfish:~/devel/liferay/trunk/liferay-plugins$ ll dist  | wc -l
149


environment :

ferrema@pupfish:~/devel/liferay/trunk/liferay-plugins$ java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
ferrema@pupfish:~/devel/liferay/trunk/liferay-plugins$ ant -version
Apache Ant(TM) version 1.9.6 compiled on July 8 2015