wood burning stoves*
The moose likes JBoss/WildFly and the fly likes  how  do  i set the classpath in jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark " how  do  i set the classpath in jboss" Watch " how  do  i set the classpath in jboss" New topic

how do i set the classpath in jboss

maha laxmi
Ranch Hand

Joined: Sep 23, 2005
Posts: 68
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

Joined: Apr 14, 2004
Posts: 10336

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).

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 292

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

Joined: Sep 23, 2005
Posts: 68
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

Joined: Dec 15, 2007
Posts: 9
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: how do i set the classpath in jboss
Similar Threads
How to Deploy EJB in JBoss-2.4.3
not able to locate message.properties using ResourceBundle
how to deploy MySQL to JBoss
setting up classpath in axis2
how do i place class file dynamically