日期:2014-05-17 浏览次数:20922 次
package com.yourdomain.webcanvas; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import com.renren.api.client.RenrenApiConfig; import com.yourdomain.webcanvas.config.AppConfig; public class ApiInitListener implements ServletContextListener{ @Override public void contextDestroyed(ServletContextEvent arg0) { //Nothing to do } @Override public void contextInitialized(ServletContextEvent arg0) { RenrenApiConfig.renrenApiKey = AppConfig.API_KEY; RenrenApiConfig.renrenApiSecret = AppConfig.APP_SECRET; } }
F:\JSPLesson\renrenapp\WEB-INF\classes>javac -d . ApiInitListener.java ApiInitListener.java:5: 软件包 com.renren.api.client 不存在 import com.renren.api.client.RenrenApiConfig; ^ ApiInitListener.java:17: 找不到符号 符号: 变量 RenrenApiConfig 位置: 类 com.yourdomain.webcanvas.ApiInitListener RenrenApiConfig.renrenApiKey = AppConfig.API_KEY; ^ ApiInitListener.java:18: 找不到符号 符号: 变量 RenrenApiConfig 位置: 类 com.yourdomain.webcanvas.ApiInitListener RenrenApiConfig.renrenApiSecret = AppConfig.APP_SECRET; ^ 3 错误
set JAVA_HOME=D:\jdk160_14_R27.6.5-32 set classpath=.;%JAVA_HOME%\lib\rt.jar;%JAVA_HOME%\lib\tools.jar;%cd%\lib\ipLibUtil.jar;%cd%\config; %JAVA_HOME%\jre\bin\javaw.exe com.xxxx.adms.Run ipdata_converter