473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

image servlet problem

Hi everyone, am developing servlet image upload app. when i run the programm, it displays an error below though i have apache common filesupoad and common i.o at my apache lib. what do i do, Is it that my command prompt cannot compile the code. here is the error
Expand|Select|Wrap|Line Numbers
  1. C:\Tomcat 6.0\webapps\test\WEB-INF\classes>javac ServletImage.java
  2. ServletImage.java:6: package org.apache.commons.fileupload.servlet does not exis
  3. t
  4. import org.apache.commons.fileupload.servlet.ServletFileUpload;
  5.                                             ^
  6. ServletImage.java:7: package org.apache.commons.fileupload.disk does not exist
  7. import org.apache.commons.fileupload.disk.DiskFileItemFactory;
  8.                                          ^
  9. ServletImage.java:8: package org.apache.commons.fileupload does not exist
  10. import org.apache.commons.fileupload.*;
  11. ^
  12. ServletImage.java:16: cannot find symbol
  13. symbol  : variable ServletFileUpload
  14. location: class ServletImage
  15.                 boolean isMultipart = ServletFileUpload.isMultipartContent(reque
  16. st);
  17.                                       ^
  18. ServletImage.java:21: cannot find symbol
  19. symbol  : class FileItemFactory
  20. location: class ServletImage
  21.                         FileItemFactory factory = new DiskFileItemFactory();
  22.                         ^
  23. ServletImage.java:21: cannot find symbol
  24. symbol  : class DiskFileItemFactory
  25. location: class ServletImage
  26.                         FileItemFactory factory = new DiskFileItemFactory();
  27.                                                       ^
  28. ServletImage.java:22: cannot find symbol
  29. symbol  : class ServletFileUpload
  30. location: class ServletImage
  31.                         ServletFileUpload upload = new ServletFileUpload(factory
  32. );
  33.                         ^
  34. ServletImage.java:22: cannot find symbol
  35. symbol  : class ServletFileUpload
  36. location: class ServletImage
  37.                         ServletFileUpload upload = new ServletFileUpload(factory
  38. );
  39.                                                        ^
  40. ServletImage.java:28: cannot find symbol
  41. symbol  : class FileUploadException
  42. location: class ServletImage
  43.                         } catch (FileUploadException e) {
  44.                                  ^
  45. ServletImage.java:33: cannot find symbol
  46. symbol  : class FileItem
  47. location: class ServletImage
  48.                                 FileItem item = (FileItem) itr.next();
  49.                                 ^
  50. ServletImage.java:33: cannot find symbol
  51. symbol  : class FileItem
  52. location: class ServletImage
  53.                                 FileItem item = (FileItem) itr.next();
  54.                                                  ^
  55. 11 errors
  56.  
  57. C:\Tomcat 6.0\webapps\cyberworld\WEB-INF\classes>
  58.  
Apr 2 '11 #1
1 2875
sanat
5
r u compiling the source code in command prompt? If so make sure that u ve set the classpath environment variable.
Apr 14 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Phil Powell | last post by:
I have a PHP script that will be doing an @fopen file open command to a Java servlet, sending content via a query string. Problem is that it appears the Java servlet does not receive anything...
6
by: alan | last post by:
Dear all, I have a servlet problem. When I modified my java servlet program and then uploaded it to my web hosting server, then I start my web browser(I.E) to see the result. But it loaded...
0
by: SubbaRao Karanam | last post by:
When I click the Button in Applet , I want it open a Dialog asking for the excel to open/save etc... It doesnt happen why... Now it doesnt create the excel file Why.... My Applet code is...
5
by: Jim Buzbee | last post by:
I have a subroutine that inserts image objects into a page for me. It works fine except for one thing. My mouseover settings don't appear to take. i.e. I see nothing at all when I move the mouse...
9
by: Andy Baxter | last post by:
hello, I'm writing a panoramic image viewer in html / javascript. The idea is I have a div with two identical panoramic photographs embedded in it. The clipping on the div is set to make it a...
3
by: judge82 | last post by:
Please I need help with this so bad. I have been struggling with it for 2weeks now. on line 206, I what to create a link that will direct you to the detail of the chosen items, like in the...
2
by: dmstn | last post by:
Hey! I've got a little problem. I have to make a web site for a university essay. I curently have to create a search engine. Users can enter a hotel name in a search bar and results have to appear in...
0
by: MATTXtwo | last post by:
guys I have this problem related to image editor.. I 'm developing a project that can resize,add text,move rectangle for crop an image also scroll for bigger image.. the problem is I don't know...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.