• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

"JAVA_HOME/bin"... Directory help

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
( ONCE AGAIN IN FRONT OF WHAT PATH)???
3) Set the j2ee.home property in the file <INSTALL>/j2eetutorial14/
examples/common/build.properties 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/build.properties 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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"javacoffee javacofee",
Your display name does not comply with our naming policy so I'll have to ask you to change it.
Thanks.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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:
 
Would anybody like some fudge? I made it an hour ago. And it goes well with a tiny ad ...
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic