This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 3166
    
  10
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use spring.jar file?
 
Similar Threads
How to deploy spring.jar file?
Http Status 404 - Servlet DataAccessServlet is currently unavailable
EAR file packaging and visibility
Problems with running a Hello World app in Spring framework
Running java with a classpath on cygwin