Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Java Compiler Errors


  • Please log in to reply
4 replies to this topic

#1 bekky-boo

bekky-boo

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:12:30 PM

Posted 04 May 2006 - 08:24 AM

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???

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:08:30 PM

Posted 04 May 2006 - 08:41 AM

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.

#3 bekky-boo

bekky-boo
  • Topic Starter

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:12:30 PM

Posted 04 May 2006 - 08:45 AM

it says "Diskfileitemfactory cannot be resolved to a type" this occurs when doing

fileitemfactory factory = new diskfileitemfactory()

#4 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:08:30 PM

Posted 04 May 2006 - 09:12 AM

Can I see your code please?

#5 bekky-boo

bekky-boo
  • Topic Starter

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:12:30 PM

Posted 08 May 2006 - 12:51 AM

thanks for your help.

you were right the problem was class path!

Bek




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users