bea.com | products | dev2dev | support | askBEA |
|
e-docs > WebLogic Server > WebLogic Server Frequently Asked Questions > FAQs: Code Examples |
WebLogic Server Frequently Asked Questions |
Q. Where are the examples located?
A. Examples, if installed, are located in the samples\server\src\examples directory of your WebLogic Server installation and are available from the Start menu.
Q. Why won't the examples work?
A. Each example comes with detailed instructions for building the example class files, configuring the server, and running the example. Make sure that you have completed each of the example instructions.
Usually problems with examples are related to your environment. Here are some troubleshooting hints:
If the example is an applet, check the CODE and CODEBASE, and make sure WebLogic Server is running.
For more information, see the WebLogic Server Examples Guide located at samples/examples/examples.html in your WebLogic server distribution.
Q. Are the build.cmd and the build.sh scripts still being used?
A. No. They have been replaced by ANT.
A. Set up the Examples domain environment by running setExamplesEnv.cmd in Windows or setExamplesEnv.sh in UNIX. Go into your examples directory and type ANT to build the build.xml file. If you want to build your own build script, you can pass in the name of the build script by typing ANT -f myBuild.xml where myBuild is the name of your build script. For more information, see the Apache website.