Eclipse- Dynamic Web Module 3.0 requires Java 1.6 or newer error while creating new project

后端 未结 15 1278
后悔当初
后悔当初 2020-12-29 04:51

I am not able to create a new Dynamic Web Project in eclipse indigo. I am getting the following error while creating new one.

Dynamic Web Module 3.0 r

15条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-29 04:56

    Most probably you have several installed java versions on your PC, and your Eclipse is started based on old version.
    In command line java -version command shows default one or even first installed one, which is saved somewhere in registers, and it is not always that which is used by your applications. (As example, I have only 1.7 installed physically now but java -version shows old one 1.5)

    You may try next: right click on Eclipse shortcut, chose Shortcut tab, and change Target field so that it run with -vm argument pointing on that Java version you need:
    "D:\eclipse-jee-kepler-R-win32-x86_64\eclipse\eclipse.exe" -vm "C:\Program Files\Java\jdk1.7.0_45\bin\javaw.exe"

提交回复
热议问题