Setting the PATH Variable

Hi,
i have downloaded the jwsdp-1_3_01-tutorial and i have got to the section for setting path Variable so i can develop, deploy, and run a simple Web application.
Its says that i have to add the bin directories of the Java WSDP, J2SE SDK, and Ant installations to the front of myPATH environment variable so that the Java WSDP startup scripts for Ant and Tomcat override other installations.
in doing this i have gone to system properties ->advanced tab -> enviroment variables.
set java_home as -> C:\j2sdk1.4.1_02\bin
and
JWSDP_HOME as C:/jwsdp-1.3/apache-ant/bin
Is there anyone that can tell me if this is right or wrong because i am unable to run any of the applications and get an error msg of:
'ant' is not recognized as an internal or external command,
operable program or batch file.

On the same Environment Variables tab, you need to find a variable called PATH, it should already exist, but if it doesn't create it. set it to C:\j2sdk1.4.1_02\bin. You also need to put C:/jwsdp-1.3/apache-ant/bin in your PATH. Should be a System variable.
Final PATH=C:\j2sdk1.4.1_02\bin;C:/jwsdp-1.3/apache-ant/bin
Then you should be able to run java, ant, and javac from anywhere.

Similar Messages

  • How to set the path variable on Windows ME?

    I want to get a friend of mine to start using java the only problem is that we both dont know how to set the path variable in Windows ME. I cant seem to find any instructions on it for ME. So if someone could please tell me how or give me a llnk to directions for Windows ME. Thanks.

    Refer to the Installation Instructions for the package that you installed - I believe #5 if the instructions has the information. A link to the instructions is at the page you installed from.

  • Setting the path in Windows98

    Hello,
    I'd like to run my java application on a computer with Windows 98, and not in the java bin directory. I'm familiar with setting the path variables in Windows XP. You go to control panel -> System -> Advanced -> Environment Variable -> and set them as you like. In Windows 98 there seems to be no such method. Instead I'm hacking away at the autoexec.bat file, but I still can't seem to get it to work. Currently, this is what my autoexec.bat file looks like:
    REM [Header]
    @ECHO OFF
    REM [CD-ROM Drive]
    REM c:\windows\command\mscdex /d:gem001
    REM [Miscellaneous]
    REM [Display]
    REM [Sound, MIDI, or Video Capture Card]
    REM [Mouse]
    c:\windows\cwcdata\cwcdos.exe
    PATH=c:\Program Files\Java\jre1.5.0_01\bin;c:\Program Files\Java\jdk1.5.0_01\bin;
    CLASSPATH=c:\Program Files\Java\jre1.5.0_01\bin;c:\Program Files\Java\jdk1.5.0_01\bin;
    I put the path to both the JRE and JDK in both the PATH and CLASSPATH variables just to be sure. From a DOS prompt, the "java" command seems to work from anywhere, but the "javac" command still only works in the bin directory. Can any think of where I'm going wrong?

    This is copied from the installation Instructions for the product you downloaded. (Note the use of quotation marks - eithr do that or uses the 8.3 format of the directory name)
    Microsoft Windows 98 - To set the PATH permanently, open the AUTOEXEC.BAT file and add or change the PATH statement as follows:
    Start the system editor. Choose "Start", "Run" and enter sysedit, then click OK. The system editor starts up with several windows showing. Go to the window that is displaying AUTOEXEC.BAT
    Look for the PATH statement. (If you don't have one, add one.) If you're not sure where to add the path, add it to the right end of the PATH. For example, in the following PATH statement, we have added the bin directory at the right end:
    PATH C:\WINDOWS;C:\WINDOWS\COMMAND;"C:\PROGRAM FILES\JAVA\JDK1.5.0_<version>\BIN"
    Capitalization doesn't matter. The PATH can be a series of directories separated by semi-colons (;). Microsoft Windows searches for programs in the PATH directories in order, from left to right. You should only have one bin directory for a JDK in the path at a time (those following the first are ignored), so if one is already present, you can update it to jdk1.5.0_<version>.
    To make the path take effect in the current Command Prompt window, execute the following:
    C:> c:\autoexec.bat
    To find out the current value of your PATH, to see if it took effect, at the command prompt, type:
    C:> path

  • Set the PATH permanently windows vista 32-bit

    I need to set the PATH variable permanently for running JDK without specify the full path to the executable every time with windows vista 32-bit but I don't know how to do it. Someone can help me?
    I tried what this site said but it doesn't work (or I do it wrong)
    http://java.sun.com/j2se/1.5.0/install-windows.html

    hi,
    via setting environment variables
    steps for windows 2000, but you to try the same in vista also, may be steps only differ,
    place your cursor on my computer -> right click -> properties -> advance -> environment variables -> system variable -> path->edit
    add " ;drivename:\path "
    ex:
    ;c:\jdk1.5.0\bin

  • Trying to understand the PATH variable

    Greetings,
    I read that the PATH variable specifies a set of directories where executable programs are located. But if I use "echo $PATH" in Terminal to view the directories, it does not list the Applications folder or the Downloads folder or any of the other places I have programs. So how to they run?
    Thanks

    The PATH variable is a list of search paths used by a particular shell. Basically, when you enter a command in a command-line context (such as from within Terminal.app), the unix system will search for executables in all of the folders listed in the PATH variable, running the first it finds.
    Apps that are run from the GUI are launched by the launch services daemon, which takes care of all the details of locating and loading executable. Launch services maintains a database of app locations, so it wouldn't need to search along unix PATHs to find what it needs.

  • Are there anyone teaching me the exact way to set the envionment variables?

    yes,i'm a new

    but how can i go on,i want to know the detail.For
    example ,how to set the "path"and the "classpath"?Maybe you should post your IP and someone will be nice enough to remote desktop and set some variables for you. Write you some code also.
    Do you know what PATH and CLASSPATH mean? I think that most people who are new don't understand what they are and simply know they have to set them. Knowing what they are makes it much easy to understand how and what to set them. You already know where to set them as pointed out by Sabre, do you know what to set? If not check here
    http://java.sun.com/j2se/1.3/docs/tooldocs/win32/classpath.html
    Message was edited by:
    helloWorld

  • Where is the best place to set the path with Application.cfc?

    Hi!
    When I used Application.cfm, I set many path variables here so I don't have to keep writing a full path on many of the templates repeatedly.
    So I did:
    <CFSET FileArchives = "/space/users/www/FileArchives/#session.Groups#/">
    <CFSET GoodFiles = "/space/users/www/GoodFiles/#session.usergroup#/">
    etc...
    Later on I only need to refer it as: #FileArchives# in the codes instead of a full path name.
    Now that I'm using Application.cfc can I also do the same thing???? should I do it within OnApplicationStart function? am I doing it correctly? (see below)
         <cffunction name="onApplicationStart" returnType="boolean" output="false">
               <cfset application.dsn = "EMBB">
              <CFSET application.FileArchives = "/space/users/www/FileArchives/#session.Groups#/">
              <CFSET application.GoodFiles = "/space/users/www/GoodFiles/#session.usergroup#/">
             <cfreturn true />
         </cffunction>

    Dan Bracuk wrote:
    Setting application variables in OnApplicationStart is a good idea.  However, referring to session variables in the OnApplicationStart function is not.
    Indeed.  Wading through this lot - http://adamcameroncoldfusion.blogspot.co.uk/2012/08/more-on-applicationcfc-when-things-run .html - might be helpful for the OP to get a handle on when things run, and when things become available.
    But the session scope is not available in onApplicationStart().
    Adam

  • Set the path and class path in windows xp professional

    hi guys....could any one tell me step by step on how to set the path and classpath on windows xp professioanl? This is my path and classpath
    set path = %path%;C:\jdk1.3.1_02\bin;c:\JOpen672.jar;c:\
    set CLASSPATH = c:\j2sdkee1.3.1\lib\j2ee.jar;c:\JOpen672.Jar;c:\;c:\postgresql.jar;c:\jai_core.jar
    not working please help me on this thanks alot.
    novicepro

    Below is a Helloworld program, copy and paste it into your editor and save it as "HelloWorld.java" Use capitalization, Java is case-sensitive. If you're using Notepad, quote the name when saving, otherwise Notepad adds ".txt" to the name. Go to DOS and check that you've got the file where you want it and that it's named correctly.
    ----------program HelloWorld.java--------------
    public class HelloWorld {
    public static void main (String[] args) {
    System.out.println("Hello World!");
    In the same directory as HelloWorld.java, enter "javac" - the program should print out a list of options, if not, set your PATH - see below.
    In the same directory as HelloWorld.java, enter "javac HelloWorld.java" and the javac compiler will create HelloWorld.class. If it was successful it will not give any messages. Check that the file is created.
    In the same directory as HelloWorld.java, enter "java -cp . HelloWorld" with the spaces and the period. The program will run.
    Here is additional information:
    The Path is a set of pointers that Windows uses to locate programs that you execute, like javac.exe and java.exe. This setting is explained here:
    http://java.sun.com/j2se/1.4/install-windows.html
    Scroll down to: 5. Update the PATH variable
    (you should have already done this as part of the s/w installation)
    The CLASSPATH is another set of pointers that is used by Java to find the files that you create and want compiled and/or run. This setting is explained here:
    Setting the Classpath:
    http://java.sun.com/j2se/1.4/docs/tooldocs/windows/classpath.html
    [NOTE: always start your classpath with ".;" which means the current directory. See my classpath, below]
    How Classes are Found:
    http://java.sun.com/j2se/1.4/docs/tooldocs/findingclasses.html
    Examples:
    This is my path
    PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BATCH;C:\J2SDK1.4.0_01\BIN;C:\PROGRA~1\UTILIT~1;C:\PROGRA~1\WIN98RK
    This is my classpath
    CLASSPATH=.;C:\mjava;C:\mnrx;C:\NetRexx\lib\NetRexxC.jar;C:\j2sdk1.4.0_1\lib\tools.jar;C:\NetRexx\NrxRedBk

  • Unable to set the path

    I have installed J2SDK1.2.1 & JDK1.3.0_02 in my system.I have declared the path in the environment variableslike this
    Variable Value
    Java I:\jdk1.2.0_02\bin;I:\j2sdkee1.2.1\bin
    Classpath I:\jdk1.2.0_02\lib;I:\j2sdkee1.2.1\lib\j2ee.jar
    JAVA HOME I:\jdk1.3.0_02
    J2EE HOME I:\j2sdkee1.2.1
    this wont work if i open command prompt and if i type javac it gives
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    Again if i set the path in commandprompt then javac command works.And when i try to start the J2EE Server or if i try to use the DEPLOYTOOL it shows
    ERROR: Set J2EE_HOME before running this script.
    I dont know what is the problem.Is the coding that i have given is correct .Please help me out.
    Thanks in Advance
    Sriram

    Actually i have learnt core java and i am pretty good with it.but i have started learning j2ee and in my course material that i have has given the instruction for staring the server and i have given the codings as the book instruction says.But still iam not able to do it.I use win2000prof and i can an i am executing the normal java programs in my system but the problem is i need to set the path every time i open the command prompt.And the other problem is i am not able to start the j2ee server and without starting the server i am not able to practise.
    Sriram

  • Regarding the path variable. somebody please help !!!

    I have a small problem, I have to change the path variable often. So I thought of creating two .bat files to change it when i needed. But the problem is in XP...
    set Path=%Path%;C:\myfolder;
    command doesnt seems to be working. Actually it doesnt change the Path system variable at all. Please help me with this and Sorry if i have posted the questing in a wrong forum.
    Kawisha.

    Hi
    First of all as I know there is a limit for the length of the path string.
    For the second time if you change the path in a CMD than this doesn't change the path string of the system only the CMD path string has changed.
    If you want to change to system path string than do it in the Control Panel/System/Special Tab/Enviroment Variables/System Variables/Path.
    Ott Karesz
    http://www.trendo-kft.hu

  • Setting the environment variable

    I just installed the rpm for the 1.4 SDK on my RedHat 7.1 box. Does anyone know how I can set the environment variable so it will recognize Java from the command line? Thanks in advance.

    You need to set a couple of environment variables in your "profile" script. Which one, exactly, depends on the shell you use. It's probably .profile on your home directory.
    Try
    JAVA_HOME=/usr/java1.4 (or wherever it really is)
    PATH=$PATH:$JAVA_HOME/bin
    export JAVA_HOME,PATH

  • Beginner: Setting the path & HelloWorld

    Hi,
    I'm really new to Java & have been working through the Sun tutorial on creating the 'HelloWorld' application & until the part about running an applet all was looking good! However, at the point where
    I am prompted to enter 'javac HelloWorld.java' I am getting the message 'Bad command or file name' & I am no closer to creating the applet.
    One of the problems I had early on when installing the software (SDK 1.4) was how to rename the 'path' so I opened up the AutoExe Bat and discovered there was no path stipulated so I entered
    'PATH C:\WINDOWS\C:\JDK1.4\BIN' but I think it might be wrong & maybe that is what is effecting the running of the applet. I also think I needed to set the Classpath variable but again am very unsure & feel I need to make sure the foundations are right before I try to move on.
    Sorry if this post is too simple for this forum but i'd really like to get a little further
    but feel I can't move on at the mnoment on my own.
    I'm running Windows 98se by the way.
    Thanks for any replies...

    Forgive me, I made a slight mistake in my original post. When I am prompted to enter 'javac HelloWorld.java the prompt 'c:\jdk1.4\JavaPrograms> keeps appearing (not 'Bad command or file name').
    Thank you, I'll try the paths you recommend, but please can you tell me as to how I know when it is correct? For instance when I call up the DOS prompt, will it look different...?
    Thanks

  • How to set the header variables in weblogic

    Hi,
    We have a following set up in our environment.
    We have weblogic and on the top of it we have apex listener deployed which redirects Oracle Apex.
    My Issue:
    How can we set up the header variables in weblogic once the user is authenticated against weblogic server.
    We are struck here, not knowing how to set the header variables in weblogic server. Its fairly straight forward for Oracle Access Manager or others..
    Thanks
    Ramesh P.

    maybe you are looking for the routing options
    http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/userguide/modelingmessageflow.html#wp1125348

  • Using a business rule to set the substitution variables

    Hi All,
    I am having issues with setting the value of Substitution variable from a Business rule.
    Any help would be appreciated.
    Thanks,
    Shakil

    Thanks for your response, John.
    I am trying to set the Substitution variable through a data form on which the Business rule is attached.
    The admin guide for Planning states that "You can set substitution variables on the Essbase server,
    application, or database level. The same substitution variable can exist on multiple levels;
    Planning uses the first one it finds as it searches in this order: 1) database 2) application 3)
    server." So I believe that it should be possible.
    Regards,
    Shakil

  • How to set the PATH in Terminal?

    As a newbie to Bash and the Terminal, in connection with installing a new version of Ruby and various add-ons, I have been messing around with changing the PATH via various methods I've found on the internet, and trying to add a new directory to my PATH. Unfortunately, I cannot figure out how to set the PATH correctly. Here is what I understand so far:
    1. Bash first looks to ".bash_profile" in the home directory for PATH settings.
    2. If none, Bash then looks to ".bash_login" for PATH settings.
    3. If none, Bash then looks to ".profile".
    4. If none, Bash then looks to a system file in "/etc/profile" for default PATH settings.
    5. For a new shell after login, Bash looks for a ".bashrc" file.
    I cannot find any of the above files (I have Finder set to show hidden files already). Somehow, following some instructions from the internet without really knowing what I was doing over the past week I have set my PATH as follows:
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/*****/src:/usr/X11/bin
    but I cannot find the file that is setting this PATH. I have tried creating a new ".bash_profile" shell file and putting it in various places such as "/bin" and "/usr/bin" but the file is not being read.
    * As a temporary workaround I tried using the command "source .bash_profile" upon login to set the PATH using the .bash_profile file that I created, but it does not work.
    * I am able to temporarily alter the path using the command "PATH=/usr/local/bin:$PATH" but this only lasts for an active shell; when I close out and reopen a new shell, it reverts to the default.
    So my questions are:
    Is it correct that there is a "/etc/profile" somewhere that is setting the default PATH? If so where is it? Should I alter it, or create a new ".bash_profile" somewhere to set the PATH? If not, where is my PATH being set? If I should create a new ".bash_profile", what exactly should go in it?
    Thanks in advance for any assistance.

    ... I created a new ".bash_profile" file directly under my home directory and it worked like a charm. Below is the content of the file:
    "PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/"
    What are the "..."'s? Is that just you, or is the contents of the file actually inside of double quotes?
    is there an 'export PATH' also in the file? As in
    PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/
    export PATH
    And did you either restart your Terminal session so your .bash_profile was read, or issue a 'source .bash_profile' command to execute the .bash_profile after your change?
    The only remaining problem is that from the home directory, I'm unable to directly run programs in the above-designated subdirectories (without first navigating to the subdirectory containing the file. Is there something wrong with the syntax or order of the directories I put in the path?
    For example: there is a file called "newprogram.rb" in the "Ruby" directory listed above. I should be able to execute it from the home directory using "ruby newprogram.rb" but it does not work. The same command works fine from within the "Ruby" directory.
    Does the 'ruby' command search PATH to find its scripts?
    Have you read the "man ruby" man page to see if it talks about PATH?
    A common Unix feature is that programs and scripts with the executable bit set, and are located in a PATH directory, will be run if you just type their names.
    For example, if the first line of newprogram.rb script starts with
    #!/usr/bin/ruby
    and if the script is executable
    chmod +x newprogram.rb
    And if it is in a directory in PATH, then just typing
    newprogram.rb
    should run your perl script using /usr/bin/ruby. If you want to use a different version of Ruby, then change the #! line so it point to your version of Ruby. Or if your version of Ruby is found earlier in PATH then the /usr/bin/ruby, you can use
    #!/usr/bin/env ruby
    as your script's first line which will search PATH for 'ruby' and use the first one it finds.
    Message was edited by: BobHarris

Maybe you are looking for

  • How to plot with multi colors in a single XY graph?

    Hi,   I'm making hesteresis measurements. In this case, I collect data while sweeping voltage first from 0 to 2V, and then back from 2V to 0V, and the data are plotted in a single XY graph. In the XY graph, I want forward sweep plot of one color whil

  • Calendar Event Invites - Time Zone Issue

    Hi all!  I just switched back to BlackBerry from iPhone, and love everything about it so far except one thing:  time zone issues on calendar invites.   My work uses an OS X hosted CalDAV server, and I was able to sync my existing calendars to it with

  • Gray Lines Over Image

    HELP! I have to get this DVD burned ASAP! I created a menu through after effects, but then exported a still to use as the main menu to prevent the whole animation menu to play each time you go to select a different video. The animated menu came out f

  • Query Partially Delivered Orders

    Hi!, how can I query only the partially delivered orders? Thank you.

  • HT2128 downloaded programs appear in strange icons, unreadable, garbled

    Hi I am new at understanding how the apple macbook works, for starters :I I can download software, but then I am stuck as to how to get it to open up so I can use it, instead I get a garbled picture of the download. Do I need some program that opens