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

Similar Messages

  • 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

  • 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.

  • Where i can set the path to retreive the Km files

    Hello All,
    How to access the KM content files in my portal Application. Where I can set the path to retrieve any file from KM. Please  can any one help me.
    Thanks in Advance

    hi
    I am using the Following code. it gives error.i think i need to import some jar file. can you help which jar file to import and where i can find those jar files.
    Thanks in Advance.
    import com.sapportals.portal.prt.component.*;
    import com.sapportals.portal.prt.resource.IResource;
    import com.sapportals.portal.prt.resource.IResource.*;
    import com.sapportals.portal.security.*;
    import com.sapportals.portal.security.usermanagement.*;
    public class test extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              //IUser user = WPUMFactory.getUserFactory().getEP5User(request.getUser());
              com.sapportals.portal.security.usermanagement.IUser user = null ;
              IResource resourceContext = new ResourceContext(user);
              RID rid = RID.getRID("http://epd.symbol.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.webdav/symbol_productinfo2/cs1504/images");
              try {
                IResource resource = ResourceFactory.getInstance()
                                          .getResource(rid, resourceContext);
                if( resource != null ) {
                   // resource found
                   System.out.println("resource " + resource.getRID() + " found");
                } else {
                   // resource not found
                   System.out.println("resource " + resource.getRID() + " does not exist");
              catch( Exception e ) {
                // problem while retrieving the resource
                System.out.println(
                                       "exception while trying to get resource " + e.getRID()
                                       + ": " + e.getMessage()

  • Error when setting the path in KAWA IDE Help !!

    I am using SDK 1.4 and KAWA IDE .. when i set the path ... it showing an error message...also when i complile it shows correct the bin ,lib settings wht i do....... help me...

    thnks replysssss i got corrected by mine itself
    thnks

  • 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

  • To set the path

    Hi everyone,
    I am in the starting stage of java & i want to know how to set the path for java..i tried it but it giving an error ,so can please help me out in this..
    shubha

    Goto:
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
    Here you will find instructions on setting the path among other info. Bad form using a Goto but I just cant resist :)

  • 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

  • Set the path of SAP HELP

    Friends,
            My Basis Admin want to set the path of SAP HELP which is not working currently, so will you pls. tell us the way through which my Basis friend can set the path for it.
            Thanks
    Hitz

    Hi Hitesh,
    Refer to the link
    <a href="http://www.sap-basis-abap.com/sapbs028.htm">http://www.sap-basis-abap.com/sapbs028.htm</a>
    Hope it helps...
    Lokesh
    pls. reward appropriate points by clicking the stars on the left side

  • How do I set the PATH to use ImageMagick under PHP on my Server?

    Hi,
    I have the ImageMagick binaries installed. They are working in the terminal.
    But when I try to use it out of a php script on the webserver, it cant find the DYLD_LIBRARY_PATH.
    The manual says:
    Set the MAGICK_HOME environment variable to the path where you extracted the ImageMagick files. For example:
    export MAGICK_HOME="$HOME/ImageMagick-6.3.7"
    If the bin subdirectory of the extracted package is not already in your executable search path, add it to your PATH environment variable. For example:
    export PATH="$MAGICK_HOME/bin:$PATH"
    Set the DYLD_LIBRARY_PATH environment variable:
    export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"
    I can do all this in the Terminal, but how and where do I set it, that it also works with the scripts on the webserver?
    Thanks and Regards,
    JO

    Joachim,
    I have not tested any of this but...
    If you are just using the default Mac OS X Server install of Apache and the PHP module, then Apache's path is /usr/bin:/bin:/usr/sbin:/sbin (when running under the user:group=www:www). Basically, if the server is running under that user and PHP inherits the basic PATH of that user's shell, then anything linked into those directories should be available to the scripts, i.e. link your ImagMagick bin and lib paths into /usr 's directories. See 'man ln' in Terminal. User www doesn't have a defined shell, though, so I don't know where the PATH comes from.
    Alternatively, you might be able to use Apache's env_module (on by default) to manipulate the PATH environment variable in a config file. See Apache's manual on environment variables.
    Another means is to utilize 'suexec' in Apache and switch the user:group of CGI execution, etc. to a actual user with a definable .bash_profile (or whatever shell you are using). There are security concerns with this. See Apache's manual on suexec. You may want to also consider compiling PHP as CGI.
    BTW: the new version of PHP has some new experimental native ImageMagick libraries built in. I assume it looks for the binaries in the usual places and/or may need to be compiled with their paths during ./configure.
    Larry

  • How can I set the PATH properly in XP?

    Ive stuffed around for hours trying to do this. Ive installed j2eesdk-1_4_2004Q4-beta-windows.
    I wrote a simple app in jGrasp, then hit compile and it comes up with
    "package javax.ejb does not exist
    import javax.ejb.*;"
    Now my PATH looks something like this
    C:\Sun\AppServer\bin;C:\Sun\AppServer\jdk\bin;C:\Sun\AppServer\lib\j2ee.jar;
    this just doesnt work....
    Can someone who writes j2ee apps in XP plz let me know how to set up the class path so i dont get these package not found errors.
    It would be a great favour, thank you.
    PS when i move the j2ee.jar file into the jre\lib\ext folder it compiles, but this seems dodgy to me. Plz help me.

    Either set the classpath pointing to j2ee.jar when building your app (javac -classpath ...\j2ee.jar) - if you are using ant scripts to build, checkout the samples or blueprints applications for examples of how to set the classpath within ant scripts
    Or set your CLASSPATH environment to ...\j2ee.jar (My Computer->Control Panel->System->Advanced->Environment Variables
    Hope this helps

  • 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

  • [CS5] set the path to include php files dynamically

    this is my code php
    #into file confstart.php i create the session
    #$_SESSION["PATH"]["CORELIB"]=$_SERVER['DOCUMENT_ROOT']."/system/core/lib";
    include($_SERVER['DOCUMENT_ROOT']."/newportal/system/config/confstart.php");
    include($_SESSION["PATH"]["CORELIB"]."/function_rvsfarm.php");
    Unfortunately, this  method of assigning variables paths dw does not understand ... can be  set statically in some menu paths?? or to understand the path dw?

    Dreamweaver wouldn't understand this locally as the document root isn't always where your files reside.  Also dreamweaver doesn't parse the php script the find your files unless you set up the dynamic content.
    I tend to create a constant and hard code the path
    define("ABSPATH", "/home/client/domain.com/public_html/");

  • 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

Maybe you are looking for

  • HR: Send Salary Receipt, as PDF form, by EMAIL

    Hello friends, Soon I'm having the requirement of sending the employee salary receipt (and probably anual income declaration), as a PDF document, by email. I think it can be done with SAP XI, changing the print program of the current smartform, to se

  • Getting  sync failed error

    Hi All, i am extermely new to Mobile developement. I created one device in the DOE, assigned the SWCV. Now i have created the UI component for Handheld,Service comp and app in the studio. I run the application and SAP netweaver mobile client is launc

  • Error while SO Invoice 'The Item Is Not Relevant For Billing'

    Hi Colleagues, I have created a Time and Material Project and when I am trying to Invoice the SO related to particular Project request getting below Error. Errro Description :- "The item is not relevant for billing" Schedule Line Number 0044 Counter

  • Connection failures

    Dear Sir, I am getting the following error sometimes when browsers (using IE5.5) take a page from my website served up with Weblogic 5.1 The page contains some JavaScript and HTML. Please note that this does not always happen but when it does it only

  • Windows 8.1 do not display last user

    Hello, does anyone know how to prevent the last user name being presented after restarting Windows 8.1 PC. Not a problem with Win7 etc as can disable interactive logon etc, but cant make it work with Win 8.1. Prefer to do with GP. This is a domain en