Fórum

Error: Dynamic Web Module 3.0 requires Java 1.6 or newer

Roger Thal, modificado 12 Anos atrás.

Error: Dynamic Web Module 3.0 requires Java 1.6 or newer

New Member Postagens: 21 Data de Entrada: 21/01/12 Postagens Recentes
I installed Liferay IDE and successfully imported two "Liferay Projects from Plugins SDK".

When trying to import the 3rd projects from the Plugins SDK, all of the sudden there's a popup with this error message
[indent]
One or more constraints have not been satisfied.
One or more constraints have not been satisfied.
One or more constraints have not been satisfied.
Dynamic Web Module 3.0 requires Java 1.6 or newer.[/indent]

Nothing changed in my Eclipse JEE Indigo setup, nothing changed in my Java environment. What gives ?
thumbnail
Gregory Amerson, modificado 12 Anos atrás.

RE: Error: Dynamic Web Module 3.0 requires Java 1.6 or newer

Liferay Legend Postagens: 1123 Data de Entrada: 16/02/10 Postagens Recentes
Check to see that your original project that you are trying to import doesn't have a .settings/org.eclipse.wst.common.project.facet.core.xml that specifies web 3.0 or java 1.6. Another thing to check would be if your project has web.xml version 3.0 specified.
Roger Thal, modificado 12 Anos atrás.

RE: Error: Dynamic Web Module 3.0 requires Java 1.6 or newer

New Member Postagens: 21 Data de Entrada: 21/01/12 Postagens Recentes
The projects that I'm trying to import are of the simplest kind, i.e. generated by "create.bat" (I'm just trying to learn JSP).
Furthermore, I'm using Java 1.7 rje so it shouldn't even complain about needing 1.6 or higher. Just strange.
thumbnail
Gregory Amerson, modificado 12 Anos atrás.

RE: Error: Dynamic Web Module 3.0 requires Java 1.6 or newer

Liferay Legend Postagens: 1123 Data de Entrada: 16/02/10 Postagens Recentes
Roger Thal:
The projects that I'm trying to import are of the simplest kind, i.e. generated by "create.bat" (I'm just trying to learn JSP).
Furthermore, I'm using Java 1.7 rje so it shouldn't even complain about needing 1.6 or higher. Just strange.



Check to see what your default JRE compiler level is for your workspace, make sure that it is not set to low.
Roger Thal, modificado 12 Anos atrás.

RE: Error: Dynamic Web Module 3.0 requires Java 1.6 or newer (Resposta)

New Member Postagens: 21 Data de Entrada: 21/01/12 Postagens Recentes
The compiler compliance level is already set to 1.7.

But the problem seems to get resolved by doing the following (which does not make sense to me, but it seems to work!):

Preferences / Java / Compiler:
Make sure Compiler compliance level is 1.6 or higher (mine was already set to 1.7)
Uncheck "Use default compliance settings"
Leave all the choices that were greyed out now active as is, i.e. 1.7 in my case.
Roger Thal, modificado 12 Anos atrás.

RE: Error: Dynamic Web Module 3.0 requires Java 1.6 or newer (Resposta)

New Member Postagens: 21 Data de Entrada: 21/01/12 Postagens Recentes
Delete the project in the IDE (make sure do not delete from disk!)
Import again.
No more error about Dynamic Web Module 3.0 requiring Java 1.6 or newer (when your RJE is already 1.7!)
thumbnail
Hitoshi Ozawa, modificado 12 Anos atrás.

RE: Error: Dynamic Web Module 3.0 requires Java 1.6 or newer

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
From your description, it just seemed to have been a cache problem. There may have been an old version in the cache. I've encountered this problem several times myself too with eclipse. emoticon
thumbnail
mohammad azaruddin, modificado 11 Anos atrás.

RE: Error: Dynamic Web Module 3.0 requires Java 1.6 or newer

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
Hi
Hitoshi Ozawa

I tried above mentioned method.but it is not working.So Can u tel me how can we solve cache problem

Regards
azar
thumbnail
Bijan Vakili, modificado 10 Anos atrás.

RE: Error: Dynamic Web Module 3.0 requires Java 1.6 or newer

Expert Postagens: 375 Data de Entrada: 10/03/09 Postagens Recentes
mohammad azaruddin:
Hi
Hitoshi Ozawa

I tried above mentioned method.but it is not working.So Can u tel me how can we solve cache problem

Regards
azar



Hi Azar,

I realize this response is past due.
I had the same issue as you today; but then, I discovered this solution:
Remove all JREs except v6.

Eclipse Standard/SDK
Version: Kepler Service Release 1
Build id: 20130919-0819

OS: Ubuntu 13.10

Default JRE was java-1.7.0-openjdk-amd64
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.12) (7u25-2.3.12-4ubuntu3)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)


It's not great, but it works. Good luck my friend.
thumbnail
mohammad azaruddin, modificado 10 Anos atrás.

RE: Error: Dynamic Web Module 3.0 requires Java 1.6 or newer

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
Hi thank you emoticon

Yeah...Greate job...May be helpful to someone else in future emoticonemoticonemoticon