... <看更多>
「cannot find symbol java問題」的推薦目錄:
- 關於cannot find symbol java問題 在 [問題] compile java檔時遇到錯誤-package does not exist 的評價
- 關於cannot find symbol java問題 在 java maven COMPILATION ERROR : cannot find symbol 的評價
- 關於cannot find symbol java問題 在 [問題] cannot find symbol private - 看板AndroidDev - PTT數位 ... 的評價
- 關於cannot find symbol java問題 在 java cannot find symbol | Dolphin的博客 的評價
- 關於cannot find symbol java問題 在 Fixing cannot find symbol in Java - YouTube 的評價
- 關於cannot find symbol java問題 在 Cannot find declaration to go to intellij stackoverflow 的評價
- 關於cannot find symbol java問題 在 lydiahallie/javascript-questions: A long list of ... - GitHub 的評價
cannot find symbol java問題 在 [問題] cannot find symbol private - 看板AndroidDev - PTT數位 ... 的推薦與評價
[問題] cannot find symbol private ... 07/08 03:40, 2周前, 1 F. 建議你除了Android 的書之外也去找本Java 的書來讀. 07/08 03:40, 1 F ... ... <看更多>
cannot find symbol java問題 在 java cannot find symbol | Dolphin的博客 的推薦與評價
Error:(40, 20) java: cannot find symbol ... 要解决此问题,打开Project Structure(Ctrl + Alt + Shift + S)->Global Libraries,添加相应的Scala ... ... <看更多>
cannot find symbol java問題 在 Fixing cannot find symbol in Java - YouTube 的推薦與評價

Common fixes for cannot find symbol in Java. This typically means a misspelling, variable or method that ... ... <看更多>
cannot find symbol java問題 在 Cannot find declaration to go to intellij stackoverflow 的推薦與評價
1. pycharm中django项目报Cannot find declaration to go to问题; ... Error TS2304: Cannot find name 'Zone'. java:89: cannot find symbol symbol : variable log ٩ ... ... <看更多>
cannot find symbol java問題 在 lydiahallie/javascript-questions: A long list of ... - GitHub 的推薦與評價
You cannot add properties to a function this way. C: "Woof" gets logged. D: ReferenceError. Answer ... ... <看更多>
cannot find symbol java問題 在 [問題] compile java檔時遇到錯誤-package does not exist 的推薦與評價
各位前輩好,小弟最近開始學習servlet
在做 Head First 第三章的範例時compile java檔遇到問題無法解決,
可以幫忙一下嗎?詳情如下
目錄架構為:
java檔
D:\Java\SCWCD\beerV1\src\com\sample\model\BeerExpert.java
package com.sample.model;
import java.util.*;
public class BeerExpert{
public List getBrands(String color){
List brands = new ArrayList();
if(color.equals("amber")){
brands.add("Jack Amber");
brands.add("Red Moose");
}else{
brands.add("Jail Pale Ale");
brands.add("Gout Stout");
}
return (brands);
}
}
D:\Java\SCWCD\beerV1\src\com\sample\web\BeerSelect.java
package com.sample.web;
import com.sample.model.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class BeerSelect extends HttpServlet{
public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException{
response.setContentType("text/html;charset=big5");
PrintWriter out = response.getWriter();
out.println("Beer suggest list<br>");
String c = request.getParameter("color");
BeerExpert be = new BeerExpert();
List result = be.getBrands(c);
Iterator it = result.iterator();
while(it.hasNext()){
out.print("<br>try it: " + it.next() );
}
}
}
compile步驟如下:
(1)於D:\Java\SCWCD\beerV1目錄下compile BeerExpert.java 成功compile
且class檔位於:
D:\Java\SCWCD\beerV1\classes\com\sample\model\BeerExpert.class
(2)再於D:\Java\SCWCD\beerV1目錄下compile BeerExpert.java compile卻失敗…
以下是錯誤訊息
D:\Java\SCWCD\beerV1>javac -d classes src/com/sample/web/BeerSelect.java
src/com/sample/web/BeerSelect.java:3: package com.sample.model does not exist
import com.sample.model.*;
^
src/com/sample/web/BeerSelect.java:17: cannot find symbol
symbol : class BeerExpert
location: class com.sample.web.BeerSelect
BeerExpert be = new BeerExpert();
^
src/com/sample/web/BeerSelect.java:17: cannot find symbol
symbol : class BeerExpert
location: class com.sample.web.BeerSelect
BeerExpert be = new BeerExpert();
^
3 errors
請問這是哪邊錯了呢?一直找不出來……可以請前輩們幫忙解答一下嗎?謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.240.166.19
... <看更多>