Help - Search - Members - Calendar
Full Version: Java Compiler Errors
BleepingComputer.com > Software > Programming
   
bekky-boo
hey ppl,
im new to this site so firstly ill say HI EVERYONE!

Well i need sum help with 'commons-fileupload'!

I write

FileItemFactory factory = new DiskFileItemFactory()

and the compiler says that DiskFileItemFactory cannot be resolved to a type...

I have imported org.apache.commons.fileupload.*

Can anyone help me???
groovicus
If you have it imported, you are probably having a classpath issue then. The compiler can't find the class (although that usually throws a ClassNotFound error). What is the exact error message.. I am not familiar with that one.
bekky-boo
it says "Diskfileitemfactory cannot be resolved to a type" this occurs when doing

fileitemfactory factory = new diskfileitemfactory()
groovicus
Can I see your code please?
bekky-boo
thanks for your help.

you were right the problem was class path!

Bek
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.