• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how do i set the classpath in jboss

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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;
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Ranch Hand
Posts: 293
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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;
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic