The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Place then anywhere you want to...

Posted by Kishori Sharan on April 09, 2001 at 9:26 AM

You can place your Java Beans anywhere on your system. Just set the CLASSPATH accordingly. Suppose you have saved all your beans in c:\jbeans folder and beans are in package jbeans then just set c:\ in your classpath and you are done. When you start JavaWebserver then it reads the CLASSPATH environment variable and also adds all jar files in ...\javawebserver_home\lib folder and the folder ...\javawebserver_home\classes. So the alternative would be to bundle all your beans in a jar file and just place that jar file in ...\javawebserver_home\lib folder. Or, in this case you can place all your beans in ...\javawebserver_home\classes\jbeans. If you use ...\lib or ...\classes folder to place your beans then you don't need to set any classpath in your machine.

Thanx
Kishori



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us