This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes How to use spring.jar file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to use spring.jar file?" Watch "How to use spring.jar file?" New topic
Author

How to use spring.jar file?

Sekhar Kadiyala
Ranch Hand

Joined: Feb 17, 2004
Posts: 170
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?


PMP CSQA SCJP SCWCD SCBCD INS 21 INS 23
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3487
    
  13
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.


Joanne
Sekhar Kadiyala
Ranch Hand

Joined: Feb 17, 2004
Posts: 170
Thanks a lot, buddy! I really missed such a trivial thing!!!

How can I ever call myself a triple certified java guy
 
Don't get me started about those stupid light bulbs.
 
subject: How to use spring.jar file?