CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 Cannot find symbol

Print topic Send  topic

Author Message
Derek

Posts: 3
Posted: 08/10/2008, 12:54 PM

I installed CodeCharge 4 and generated a simple application with the wizard to test the setup. Compile fails and I get many errors of the type:


[javac] C:\DOCUME~1\ADMINI~1.HOM\LOCALS~1\Temp\~expost_aid_survey\CCSBuild\src\com\codecharge\util\StyleChooser.java:80: cannot find symbol
[javac] symbol : method getResourceAsStream(java.lang.String)
[javac] location: interface javax.servlet.ServletContext
[javac] InputStream is = ContextStorage.getContext().getResourceAsStream("/Styles/"+value+"/Style.css");
[javac] ^
[javac] C:\DOCUME~1\ADMINI~1.HOM\LOCALS~1\Temp\~expost_aid_survey\CCSBuild\src\com\codecharge\util\filters\CacheFilter.java:58: cannot find symbol
[javac] symbol : method setAttribute(java.lang.String,com.codecharge.util.cache.ICache)
[javac] location: interface javax.servlet.ServletContext
[javac] config.getServletContext().setAttribute(Names.CACHE_INSTANCE, cache);
[javac] ^
[javac] C:\DOCUME~1\ADMINI~1.HOM\LOCALS~1\Temp\~expost_aid_survey\CCSBuild\src\survey_list\survey_listAction.java:33: cannot find symbol
[javac] symbol : method setAttribute(java.lang.String,com.codecharge.components.Page)
[javac] location: interface javax.servlet.http.HttpServletRequest
[javac] req.setAttribute( "survey_listModel", page );
[javac] ^
[javac] C:\DOCUME~1\ADMINI~1.HOM\LOCALS~1\Temp\~expost_aid_survey\CCSBuild\src\survey_list\survey_listView.java:25: cannot find symbol
[javac] symbol : method setAttribute(java.lang.String,java.lang.String)
[javac] location: interface javax.servlet.http.HttpServletRequest
[javac] req.setAttribute(Names.TEMPLATE_ENCODING, "windows-1252");
[javac] ^


I've checked my classpaths and have included

servlet-api.jar, jsp-api.jar and jsdk.jar

Java SDK home points to: C:\Program Files\Java\jdk1.6.0_07
Java Ant home points to: C:\Program Files\apache-ant-1.7.1

Please help and thank you in advance.
View profile  Send private message
Derek

Posts: 3
Posted: 08/10/2008, 9:34 PM

I have resolved this issue by adding servlet.jar to my classpath.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.