Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use spring.jar file?

 
Sekhar Kadiyala
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am trying to write a simple java program using spring framework. I have downloaded spring.jar file into a folder called C:\sekhar\java and this path is added to CLASSPATH variable.

Now, i have written a class file that imports a class from this spring.jar

Import statement reads


When i am compiling it throws the error message


It's been ages since i have done some Java programming!!! What am i missing?
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sekhar Kadiyala:
I have downloaded spring.jar file into a folder called C:\sekhar\java and this path is added to CLASSPATH variable.



Have you added the directory name (C:\sekhar\java) to the classpath path or the file name (C:\sekhar\java\spring.jar) ? It should be the latter.
 
Sekhar Kadiyala
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot, buddy! I really missed such a trivial thing!!!

How can I ever call myself a triple certified java guy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic