Issue while importing class file from a JAR

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vipin2608
    New Member
    • Apr 2010
    • 1

    #1

    Issue while importing class file from a JAR

    Hi..

    I have import statement in a JSP...and importing a class file located in a JAR....but when I run that JSP it show error Package does not exist..... I have put a JAR file in proper location becoz.... I am able to import the classes of other JAR file placed in same location....
    The Same code is working fine in my Local PC...but giving error in server...

    The JAR file I used are--
    commons-fileupload-1.1.1.jar
    commons-io-1.1.jar

    can any one suggest what is the issue...

    Thanks in advance.....
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    It is possible that the other jar files are in multiple locations on your computer. Try rechecking your classpath.

    Comment

    • Dheeraj Joshi
      Recognized Expert Top Contributor
      • Jul 2009
      • 1129

      #3
      As jkmyoung told, please have a look into your class path.

      Regards
      Dheeraj Joshi

      Comment

      Working...