Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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
 
Can't .... do .... plaid .... So I did this tiny ad instead:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic