我的項目需要gif4j套件。所以我在我的控制面板的環境變量窗口中將類路徑設置爲「C:... \ gif4j_pro_trial_2.3.jar」。我知道當我們有多個classpath值時,用分號分隔它們。我也是這樣做的。但是當我運行這個文件時,我仍然遇到這個錯誤。類路徑不工作
Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problems:
The import com.gif4j.TextPainter cannot be resolved
The import com.gif4j.Watermark cannot be resolved
因爲我不是編寫代碼的人,所以我不太瞭解這裏發生了什麼。我錯過了什麼?
你試過在設置類路徑後再次編譯ur代碼嗎? – 2012-03-15 11:42:48
我的意思是Windows控制面板@Andreas_D – 2012-03-15 13:21:26
@AshwiniRaman不,我沒有!這會有所作爲嗎? – 2012-03-15 13:28:48