Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how do i set the classpath in jboss

 
maha laxmi
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
say i dropped x.jar or x. properties in jboss/server/default/lib directory;

in run.bat how do i set the classpath so that jboss will recognize x.jar in lib directory;
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You wouldn't change anything in run.bat. The classpath there is the classpath JBoss itself needs to run. Jars deployed in the lib directory tend to be resources needed by applications deployed in the same directory - a common example would be a JDBC driver. If you are refereing to resources needed only by your application, then these would be deployed as part of your application (i.e. in the EAR file).
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to put properties files into JBoss for reading from your application, its a good idea to place them in the server/default/data directory. That way its a lot easier to keep a separation between the JBoss installation and your data should you ever upgrade versions of JBoss.
 
maha laxmi
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it will recognize only common jars as u said classes12.jar etc.. but it will not recognize if u deploy some third party jar(say quartz.jar,p6spy.jar etc) in jboss/server/default/lib directory;
 
Nainar Mohamed
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am facing the same problem.
I believe you would got the resolution for this long time back.
Can you please share that with me.
Regards,
Nainar
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic