You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

JDK10环境下Eclipse无法创建动态Web项目等组件的技术求助

Fixing Missing Web Development Features in JDK 10-Compatible Eclipse SDK

Hey there! It sounds like you've got the base Eclipse SDK set up to run JDK 10 Java programs, but you're missing all the critical web development tools—and that's totally expected, since the core Eclipse SDK doesn't include those components by default. Let's get this sorted out step by step:

Option 1: Install the Web Tools Platform (WTP) Plugin

This is the quickest way to add web support to your existing Eclipse installation:

  • Open Eclipse, go to Help > Eclipse Marketplace from the top menu bar.
  • In the search bar, type Web Tools Platform (or just "WTP" for a shorter search) and hit Enter.
  • Look for the plugin entry that matches your Eclipse version (make sure it’s compatible with JDK 10—Eclipse releases 2018-06 and later support JDK 10, so pick the WTP version aligned with your Eclipse build).
  • Click Install, follow the on-screen prompts to accept licenses, and let Eclipse restart once the installation finishes.

Option 2: Switch to Eclipse IDE for Enterprise Java Developers

If you run into snags with the WTP plugin installation, a simpler alternative is to download the dedicated enterprise edition of Eclipse. This version comes pre-packaged with all web development tools (dynamic web projects, servlet support, JSP editors, and the Servers view) out of the box. Just make sure you grab a release that supports JDK 10 (2018-06 or newer), then configure your JDK 10 as the default runtime once you launch it.

Verify the Fix

After installing the plugin or switching editions:

  • Go to File > New > Project—you should now see Dynamic Web Project listed under the Web category.
  • Check for the Servers view: Go to Window > Show View > Other, search for "Servers", and it should appear in the results.
  • Right-click a web project, select New > JSP File—you’ll be able to create and edit JSP files with the proper syntax-highlighting editor.

Quick heads-up: Double-check that your Eclipse version is actually compatible with JDK 10. If you’re using an older Eclipse release (pre-2018-06), you’ll need to upgrade Eclipse first before adding WTP, since older versions don’t support JDK 10 natively.

内容的提问来源于stack exchange,提问作者Mohammed

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 08:12:11