• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Classpath variables

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anybody try and explain to me what happens to the class path variables that you define in WASD or RAD once you move you application to the application server.

What a I did is right click on the application project in the workspace go to properties and click on the Java Build Path and than on the Libraries tab. Then click on Add Variable -> Configure Variable -> New and a variable name and the path to the library or the jar that you want to include. eg. Create a LOG4_J variable that points to you log4j.jar.

You can now use classes inside the jar inside your applications that you develop. My question is what happens if you jar up your application and deploy it to an application server. How does your Websphere Application Server map the LOG4_J variable to the log4j.jar on the application server?

The path is not the same that it was on you PC how will it find the jar?
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you check the jar/ear file created(which you eventually upload to the WAS server)
I think it includes this jar file(what you defined in variable) to the ear file. So it is alwayse available to your classes.
 
New rule: no elephants at the chess tournament. Tiny ads are still okay.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic