0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[エラー対処]サーブレットコンパイル:パッケージjavax.servletは存在しません

Posted at

サーブレットコンパイル時に、下記のようなパッケージがないというエラーが出たときの対処
 javax.servletは存在しません
1.png

たいていは、環境設定「CLASSPATH」のパスが現認。

コマンドプロンプトで、CLASSPATHの内容を表示する

次のような応答、または、「servlet-api.jar」のパスと異なる場合、
2.png

次のコマンド入力で、再起動なしで反映される。
 set CLASSPATH=(格納場所のパス)\servlet-api.jar

改めてecho命令を実施、設定が反映されていれば、エラーも解消する。
3.png

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?