File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark ""JAVA_HOME/bin"... Directory help" Watch ""JAVA_HOME/bin"... Directory help" New topic

"JAVA_HOME/bin"... Directory help

javacoffee javacofee

Joined: Oct 05, 2003
Posts: 2
These are the instructions to setting up the environment to run the j2ee tutorial... I don't quite understand... for instance how do I add <JAVA_HOME>/bin to the front of my path? In front of what paht? What do the angle <> brackets refer to? What are the rest of the instructions saying? For someone who is new to java this is extremely confusing...Can someone help me out? I'm using xp so all the Unix and dos command are foreign to me. If somone could possibly help out on the first two I could proably figure out the rest...
This is what SUN says:
In order to run the asant scripts, you must configure your environment and properties files as follows:
1) Add<JAVA_HOME>/bin to the front of your path. (IN FRONT OF WHAT PATH)???
2) Add<J2EE_HOME>/bin and <J2EE_HOME>/share/bin to the front of your
path so that J2EE 1.4 Application Server scripts (asadmin, asant,
deploytool, and wscompile) overrides other installations.
3) Set the j2ee.home property in the file <INSTALL>/j2eetutorial14/
examples/common/ to the location of your J2EE
Application Server installation. The build process uses the j2ee.home
property to include the J2EE library archive, <J2EE_HOME>/lib/
j2ee.jar, in the classpath. If you wish to use an IDE or the javac compiler
to build J2EE applications, you must add this JAR to your classpath.
4) Set the admin.user and admin.password properties in the file
<INSTALL>/j2eetutorial14/examples/common/ to
the values you specified when you installed the J2EE 1.4 Application
Server. The build scripts use these values when you invoke an administration
task such as creating a database pool. The default value for
admin.user is set to the installer?s default value, which is admin.
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
"javacoffee javacofee",
Your display name does not comply with our naming policy so I'll have to ask you to change it.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
I'm using xp so all the Unix and dos command are foreign to me.
Even though you're using Windows XP, you have access to something called the command prompt, a.k.a. DOS prompt...
In my Windows 2000, it can be found from
[Start Menu] -> [Programs] -> [Accessories] -> "Command Prompt"
(although I'd suggest you create a link to it on your desktop...)
In front of what path?

The "path" here means the environment variable named "PATH". You can figure out its current value by typing "echo %PATH%" in the command prompt, or from the system properties window by right-clicking "My Computer", selecting "Properties", "Advanced" and "Environment variables" (this might be slightly different in your XP).
Similarly, you can modify the value either by typing "set PATH=foobar" or from the system properties window I mentioned above.
Here's an example for using an environment variable:
I agree. Here's the link:
subject: "JAVA_HOME/bin"... Directory help
It's not a secret anymore!