Editing autoexec.bat when setting up j2sdk

I have grown tired of entering the full location of the Java executables, so I attempted to edit my autoexec.bat as documented on the j2sdk instructions. When I entered my sysedit, the autoexec.bat file had a message stating that that particular file was "created as a placeholder and the actual autoexec.bat file was stored under a file named autoexec.tsh." Does anyone know how to edit the path for this kind of file? Where do I find this file?
Thanks in advance for the help.
Frank

Now, can I do the same for the classpath, since it is not declared? If so, what should my statement look like for the >classpath?The following is from an old response of mine re classpath.
CLASSPATH contents depend totally on what you establish as your Java environment.
A classpath value tells Java to look "here" for the files that you create and for the files that your files need during compiling and running. (Java knows where it's "own" files and jars are, we don't any longer have to tell it where to find them.)
If no classpath variable is set. Java uses a default CLASSPATH of the current directory. Many people can run this way.
If you set a classpath it cancels the default setting. Therefore, it's necessary to start it with a period, which represents the current directory. Use a semicolon to separate this and subsequent entries.
Follow that with directory paths that point to directories that you want Java to search to find files and jars that you create or that applications need to use. Do NOT quote directory paths that include spaces, the quotes cause a problem.
If Java needs a file or jar and it can't find it in one of the classpath entries, it will complain with a "classpath not found" error.
Here's my SET CLASSPATH statement:
SET CLASSPATH=.;C:\NetRexx\lib\NetRexxC.jar;C:\j2sdk1.4.0_01lib\tools.jar;C:\mnrx;C:\NetRexx\NrxRedBk
The subject has quite a bit more meat to it. If you're interested, here's reading:
http://java.sun.com/j2se/1.4/docs/tooldocs/windows/classpath.html
http://java.sun.com/j2se/1.4/docs/tooldocs/findingclasses.html

Similar Messages

  • Can't edit bookmark title when setting it initially

    When setting a bookmark you should be able to edit the bookmark title in the popup; now in 3.68 it doesn't seem like this is working. You have to set the bookmark, then go to Organize to change it

    I can confirm that this problem exists and that disabling all add-ons does not resolve the problem.

  • Autoexec.bat problem

    I added the following line to my Autoexec.bat file. It still would not let me compile, and now it won't let me edit autoexec.bat. I keep getting Bad Command or Filename. When I rebooted, I had to cd\Windows, then key in Win to boot up. I think I really messed up my Autoexec.bat file.
    set path=c:\jdk1.3.1\bin;

    you needed to type this as
    set path=%PATH%;c:\jdk1.3\bin
    so that you suffix the existing PATH, not replace its valuable set of individual path entries. This is stated in the install docs, please read them carefully

  • AUTOEXEC.BAT PERMANENT PATH

    I downloaded J2SDK1.4.0 for windows 98 and it says to set the path permanently to AUTOEXEC.BAT file.I found the file ,opened it and this is what it reads : SETCLASSPATH=C:\ProgramFiles\PhotoDeluxe2.0\AdobeConnectables, in this path where do i insert \J2SDK1.4.0_<version number >\bin? <----is this typed right or do i leave out version number,do i need to add something else?please help if you can,im still new at this and i really want to learn all i can .Thank You

    The CLASSPATH is where the Java executable looks for the classes it needs. It already knows how to find the built-in classes, so you don't need to mess with that for now. The PATH is where Windows looks for the Java executable, and that's what you need to set. Just add this line to the end of your AUTOEXEC.BAT file:
    set PATH=C:\j2sdk1.4.0\bin;%PATH%...or wherever you installed it.

  • Can I edit the size of my photo when setting up an email signature?

    Can I edit the size of my photo when setting up an email signature?

    Not sure what you mean by "photo screen?" Do you mean your Photo Stream?
    In the Photos app there are several ways to view the photos. Tap on Albums. Your Photo Stream is one Album but there may be others including the Camera Roll, albums made on the iPad with photos from the Camera Roll, and albums of photos copied to your iPhone by syncing with your computer.
    To remove albums from the Camera Roll, tap on the Camera Roll album to see the small thumbnails of the photos there. Tap on Select, tap on the photos to delete, then tap on the trashcan. The photos will then be moved to another album called Recently Deleted. They remain there for 30 days to allow you time to reconsider whether you really want to delete them or not. After 30 days they will automatically be deleted from your iPhone. But if you are sure you want the photos deleted from your iPhone delete them again from the Recently Deleted album.
    Albums created on the iPad with photos from the Camera Roll can be deleted in the same way.
    To delete albums copied to your iPhone by syncing with your computer running iTunes are deleted by doing another sync. But before you click on Sync deselect the albums in iTunes. Then when you click on Apply or Sync the albums will be removed from your iPhone but they will remain on your computer.

  • Set up apple Id with invalid email so can't validate new account. How can I edit account  info when I can't sign in for anything? Thx

    Set up apple Id with invalid email so can't validate new account. How can I edit account  info when I can't sign in for anything? Thx

    Hi Franklin777,
    If you are having issues with your Apple ID, this article will get you started.
    Frequently asked questions about Apple ID
    The first step is to find and edit the Apple ID you created:
    Apple ID: Finding your Apple ID
    If you need to reset your security questions this article will help ... 
    The rescue email address is a different address than the one you use for your Apple ID. 
    Rescue email address and how to reset Apple ID security questions
    You can edit or delete your rescue email address at My Apple ID. To edit your rescue email address:
    Navigate to My Apple ID using your web browser.
    Click "Manage your account"
    When prompted, sign in using your Apple ID and password.
    Click Password & Security
    You'll be asked to answer 2 of your 3 security questions before you can make any modifications. If you are unable to remember your answers, you can choose to send an email to your rescue email to reset your security questions.
    Hope you get back on track soon!
    - Judy

  • Autoexec.bat help

    I've recently purchased a book called "Object-Oriented Programming With JAVA Second Edition" by Barry J. Holmes and Daniel T. Joyce. I've downloaded and installed version 1.2.2 of java because that is what the book refers to. That's no problem. I've also installed the avi package that came on cd with the book, that went well except for one thing, it asked me to edit my autoexec.bat file to tell the PC how to interact the two programs. I have no idea how to do this, although I do know where my autoexec.bat file is. This is what I have now:
    SET PATH=%PATH%;C:\PROGRA~1\COMMON~1\AUTODE~1
    This is what it says I need to have:
    @C:\PROGRA~1\NORTON~1\NAVDX.EXE /Startup
    set CLASSPATH=.;c:\
    path=c:\jdk1.2.2\bin
    Here's the instructions given to me:
    Now that the SDK and the AVI package has been installed on your computer, you must set up your computer so that these programs can be located when needed. Use the NotePad utility to open the autoexec.bat file that is stored on your C drive. Amend the file to include the jdk1.1.2 directory in the path entry. Also include a CLASSPATH entry. The following listing of an autoexec.bat file illustrates how the path and CLASSPATH entries have been modified to include jdk1.2.2 and the avi package.
    @C:\PROGRA~1\NORTON~1\NAVDX.EXE /Startup
    set CLASSPATH=.;c:\
    path=c:\jdk1.2.2\bin
    The interpretation of the CLASSPATH entry follows. The pathways are separated by the semicolon, hence there are two pathways the computer should use when searching for the named packages. The first pathway is signified by the use of a period . which implies the current directory. The computer will search all subdirectories of the current subdirectory to find the subdirectory of the avi package.
    The second pathway is signified by c:\ which is the root directory of the C drive. The computer will search all the subdirectories of the root directory to find the subdirectory of the avi package. If you use software that also requires a CLASSPATH entry, append the entry to the one shown here. Separate the entries with a semicolon, and only set the CLASSPATH once.
    The path entry signifies where on the C drive the computer can find the Java development environment. Once again, if you use software that requires a path entry, append the entry to the one shown here, separating different pathnames by a semicolon.
    Save the modified autoexec.bat file, and finally restart your computer.
    Please help me.
    Also, I'm new to this site, if there was a better place to post this, please let me know. Thanks.

    thanks guys, it now works but I'm getting a strange error for the test code, here's the test code I was using:
    // program to write the text literal "HELLO WORLD" centrally on the screen
    import avi.*;
    class Example_1
         public static void main(string[] args)
         // create a window object screen
         Window screen = new Window("Example_1.java","bold","red",72);
         screen.showWindow();
         screen.write("\\n\\n\\n\tab\tab\tab HELLO WORLD!");
    The error it was giving me was:
    class string not found on line 7 and it had a pointer looking at the 'm' in the "public static void main(string[] args) line. I did this in the command console using 'javac Example_1.java' command. Am I missing something?, or should I just start using something else? I've done C++ but this has me boggled.

  • Open File dialog window when setting the value of a path type input argument in a VI call

    Hi,
    I am new to TestStand (running 4.0) and I want to create a sequence of VIs to turn on, setup and measure a device. One of my VIs sends a configuration file to my device. An input argument to this VI is the path of the config file. I would like to make it simple to modify this path when setting up the sequence by popping up the File Open dialog window and choose my file. Is this possible? I do not want to manually change the file during execution, just to have multiple calls of one VI, each call opening a different file according to the path given to it during the setup. 
    So far I have only succeeded in manually entering the absolute path each time I add this step. What makes it even more annoying is the fact that LabVIEW interprets the path with the escape codes, rendering the path unusable. Manually adding a 2nd backslash at each '\' occurence adds another step to the process. I tried both String and Path type of inputs, and the SearchandReplace() or ToUpper() (trying to bypass the escape codes) functions in TestStand don't seem to help m.
    Your help is very much appreciated,
    Fred

    Eudaemonic,
    If you want to create a series of easy to configure step types so others can develop sequence files easily, you could use custom step types. When you create a custom step type you implement your own configuration dialog. Since you have control over what controls you expose in your configuration dialog, you can design it so the desired path is selected using a open file dialog. Refer to chapter 13 of the TestStand reference manual for more information about custom step types.
    If you do not want to create a custom step type but you still want to give access to your sequence developers to pre-configured steps, you can use templates. A step template is a snapshot of a step that you can reuse later. Let's assume that instead of asking your users to edit the step to enter the desired path, you create several step templates with different pre-configured paths and based on their applications requirements they could use the appropriate template. Refer to the NI TestStand Help for more information about the Templates list on the Insertion Palette.  
    Hope it helps.
    Antonio Lie. 

  • TS3988 when setting up my iCloud account i mistakenly misspelled my login and i would like to change this

    when setting up my icloud account i mistakenly mispelled my login and would like to correct

    Hi ken,
    Thanks for using Apple Support Communities. I understand that when setting up your iCloud account you accidentally misspelled the login info.  The iCloud account username is an Apple ID and there is a terrific article that can show you how to edit that Apple ID and correct it. Be sure to make sure you follow the top section, Before you change your Apple ID, before proceeding to the steps to change it.
    Apple ID: Changing your Apple ID
    http://support.apple.com/kb/ht5621
    Cheers,
    -Joe

  • Autoexec.bat Not Being Executed

    I am able to invoke autoexec.bat from JAVA with
    Runtime rt = Runtime.getRuntime();
    Process p = rt.exec("c:\\autoexec.bat");
    where autoexec.bat is coded to compile a .java file, as in
    C:
    CD JDK1.4\BIN
    javac JavaClass.java
    This batch code runs fine if I manually run it from the command prompt. However, the trouble is that when I run it from Java, the command prompt shows up very briefly, then closes without executing the batch code. What is up?!

    So you don't have a JavaClass.class file when it's done? It seems to me that there are errors in the comiple, so no class file is generated. Have you tried to compile the file normally, and does it work? Also, make sure the CLASSPATH is correct for this batch file. For debugging, you should print the output like this:
    Runtime rt = Runtime.getRuntime();
    Process p = rt.exec("c:\\autoexec.bat");
    BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
    while((str = in.readLine()) != null)
        System.out.println(line);
    }

  • Running  .class file from autoexec.bat (in Windows Xp environment)

    How to run a .class file from autoexec.bat file. I have WinXP installed on my PC. I tried the solution given by Forum memebers but they didn't work.
    after setting the classpath
    i wrote
    java -cp simple in autoexec.bat , but results were not satisfactory.

    What does "not satisfactory" mean? If the commans works from any .bat file, it'll work from autoexec.bat, too.
    May I ask what you're trying to accomplish? I'm not sure whether XP dtill uses autoexec.bat for console initialization after all.

  • Problem got when setting up Sharepoint 2010

    Hi,
    As Filter pack 2.0 is one pre-requisite of Sharepoint 2010, but when setting up this
    Microsoft Filter Pack 2.0 (KB2837594) 64-Bit Edition
    I get this 
    As I'm setting up Sharepoint 2010 on the server, BTW, can I use ASP.NET v4.0, instead of v2.0, mentioned below?
    Many Thanks & Best Regards, Hua Min

    SharePoint automatically provisions for IIS Application Pools that are .NET 2.0 only. If you manually changed them, you simply need to change it back via IIS Manager -> Application Pools, identify the pool in question, go to Basic Settings, and change
    from .NET 4 to .NET 2.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Does editing a pre-fix set for bgp in IOS-XR cause a loss of network connectivity

    Hi,
    I have to edit an existing prefix-set for bpg in ios-xr.  When I went to do it the first time it told me it would wipe the existing information so I aborted the change.
    I have since read that you need to redo the whole list and add the new network you want.
    For example.
    existing
    pre-fix set TEST
    10.10.10.0/24,
    11.11.11.0/24
    new
    pre-fix set TEST
    10.10.10.0/24, 11.11.11.0/24, 12.12.12.0/24
    1st) is the above correct?
    2nd) when this is done will there be any drops in connectivity?
    Thank you.

    1) It is correct, when you create the new prefix-set with the same name as the old one, it overwrites the old one. Meaning that, it wont "append" to the old config, it creates a new prefix-set from scratch
    2) Depends on where are you referencing the prefix-set. For example, on BGP route-policy, there wont be any drop on BGP connectivity, you might even have to do a soft refresh in and out to refresh the advertised/filtered routes

  • Edit in iPhoto when in photobook mode when have external editor

    I have not figured out a way to edit in iPhoto when in photobook mode. No matter what, it jumps me to the external editor. Sometimes I just want to crop my photo into a portrait orientation from landscape or vice versa so the photobook treats it that way for layout purposes. Especially with the copying issue going on now with an external editor, this is becoming annoying. It takes a little while for my external editor to load the photo anyways.... and all that malarky for cropping it?
    Please help!!!
    Maybe I could turn off external editor for my default, but would that mean I wouldn't be given the option to edit in an external editor????

    I did try that and that seems to work.... but still it seems that in photobook mode, you are limited to only one editor.... whatever you have made as your default editor in your preferences. So, I suppose each time you want to do an edit in the external editor (if set up like as discussed above), you need to go into your preferences and switch it around, then back again once the edit is done.

  • Autoexec.bat, Environment settings and XP

    I'm running XP Home, and sdk1.4.1_02. Initially I modified autoexec.bat to include SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\j2sdk1.4.1_02\bin, but to understand the symbol javac, I'd have to c:/autoexec.bat. I read a few ealier postings of people having the same problem, and went to the control panel -> system -> environmental settings and added new definitions for PATH, CLASSPATH, J2EE_HOME and JAVA_HOME, and still the only way I get javac to be recognized it to execute autoexec.bat each time from the DOS prompt. What am I doing wrong? Thanks.

    winxp ignores autoexec on bootup (if it exists) as it merely a legacy thing and is looked upon by the system as just another batch file... u need to put the paths for the java bin and j2ee bin directories (as you have in the autoexec inside the PATH variable in your environment variables dialog...

Maybe you are looking for