Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with Upload class compilation

 
Baseet Ahmed
Ranch Hand
Posts: 225
Java Notepad Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using a readymade package available in a jar file(cos.jar).
I want to upload data file.
But when I am compiling respective file(.java file), it is saying that package does not exist:
package com.oreilly.servlet.*;
I am using following class of above package:
MultipartRequest in my code.
Initailly I thought the problem is with Classpath(as usual) but the classpath is properly set(the jar file is also there).

Kindly help for the same.

Thank you in advance

***********************************
Tip: Modesty is all virtue.
***********************************
 
Awais Bajwa
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you compiling oreilly's source code or error is coming in your source code after importing their packages? If earlier is the case then you should downlaod their binaries instead of compiling the source code.

Past the exact message otherwise.

A.B
 
Baseet Ahmed
Ranch Hand
Posts: 225
Java Notepad Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Awais,

I am using the oreilly's package through import statement.
I have the respective jar file.
Note that classpath is properly set.
Kindly suggest.

Thank you.

***********************************
Tip: Modesty is all virtue.
***********************************
 
Awais Bajwa
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Baseet,

Can you please post your code and exact error message you are getting.

Awais
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!