Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to add .properties/.jar file to classpath in eclipse
12-12-2011, 11:56 PM
Post: #1
Photo how to add .properties/.jar file to classpath in eclipse
Whenever You are creating a .properties files(ex displaytag.properties) or adding a external JARS(ex:struts.jar) after creating Project,You need to place it in classpath of the project to take immediate effect.

Methods to do this

1.Place the created file (say displaytag.properties) file in WEB-INF/classes folder,Eclipse will automatically add the file to its classpath
2.For JAR's place the jar file in WEB-INF/lib folder then it will automatically added in classpath.

So that you can avoid classnotfound exception
When adding external jars don't forget to check the jars in javaee dependencies option in buildpath in eclipse.

Happy coding
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
Photo First Hibernate example run in eclipse tutorial rajasri 2 955 02-07-2012 03:16 AM
Last Post: mukesh1234
Photo Convert jar to exe file rajasri 2 620 02-05-2012 04:12 PM
Last Post: thxq
Sad create a file from form input in java,jsp rajasri 0 105 12-19-2011 11:02 PM
Last Post: rajasri
Information create a war file using jsp code rajasri 0 89 12-19-2011 10:48 PM
Last Post: rajasri
Sad how to delete a file using jsp rajasri 0 84 12-19-2011 10:32 PM
Last Post: rajasri
Sad how to import a csv file values in to database using jsp rajasri 0 421 12-14-2011 04:51 PM
Last Post: rajasri
Music How to extract war file in java rajasri 0 882 12-14-2011 04:37 PM
Last Post: rajasri
Photo How to import a war file in to eclipse rajasri 0 560 12-13-2011 03:32 AM
Last Post: rajasri
Star JSF example application to run in eclipse rajasri 0 355 12-13-2011 12:17 AM
Last Post: rajasri
  How to Create JAR File admin 0 242 11-19-2011 01:28 AM
Last Post: admin

Forum Jump:


User(s) browsing this thread: 1 Guest(s)


WE will share important jobs and updates on facebook so like us to get updates