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

Similar Messages

  • 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

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

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

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

  • AUTOEXEC.BAT

    This is not properly Java question is something about the PC System.
    I have an eviroment variable in AUTOEXEC.BAT named BLASTER
    are we talking about BLaster Worm?? dont think its a enviroment var.

    Much more likely to be information about a Sound Blaster sound card. (And probably way obsolete).

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

  • SAP R/3 4.6c on Windows 2000 r3setup.bat problem

    Hi SAP Gurus,
    I'm gonna install a 4.6c on Windows 2000 SP4.
    I've got a problem with r3setup.bat:
    When I try to execute the setup.bat theres the error:
    "extracting sap mmc components failed"
    I extract the mmc.sar manually with sapcar.exe and copy the files everywherer...but it doesnt work.
    I looked up in the sap.help or the web in generall and found no solutions-
    So I hope to find an answer here
    Tim

    I just have NTCLUSCD.log next to the R3setup.log
    There stands:
    INFO 2009-05-25 12:55:42
        Input for the Installation of the R3Setup Tool
    INFO 2009-05-25 12:55:42 CDINSTCOMMON_NT_IND SyDirCreate:353
        Checking existence of directory C:\Users\c11adm\Install. If it
        does not exist creating it with user NULL_POINTER, group
        NULL_POINTER and permission 7 ...
    INFO 2009-05-25 12:55:42 CDINSTCOMMON_NT_IND SyDirCreate:2207
        Changing permission for file C:\Users\c11adm from 777 to 7.
    INFO 2009-05-25 12:55:42 CDINSTCOMMON_NT_IND SyDirCreate:2207
        Changing permission for file C:\Users\c11adm\Install from 777 to
        7.
    INFO 2009-05-25 12:55:42
        Extracting the SAP MMC Components
    INFO 2009-05-25 12:55:42 CDINSTEXTRACTSAPMMCMSC_NT_IND SyIsRemotePath:249
        Checking if path C:\Users\c11adm\Install is on an NFS-mounted
        filesystem ...
    INFO 2009-05-25 12:55:42 CDINSTEXTRACTSAPMMCMSC_NT_IND SyIsRemotePath:277
        File C:\Users\c11adm\Install is not on an NFS-mounted filesystem.
    INFO 2009-05-25 12:55:42 CDINSTEXTRACTSAPMMCMSC_NT_IND SyCoprocessCreate:931
        Creating coprocess SAPCAR ...
    INFO 2009-05-25 12:55:42 CDINSTEXTRACTSAPMMCMSC_NT_IND SyCoprocessCreate:931
        Creating coprocess SAPCAR ...
        The process SAPCAR puts out:
        SAPCAR: no archives specified for extracting (error 29). There
        are no more files.
    ERROR 2009-05-25 12:55:42 CDINSTEXTRACTSAPMMCMSC_NT_IND InstallationDo:0
        Phase failed.
    ERROR 2009-05-25 12:55:42 InstController Action:0
        Step CDINSTEXTRACTSAPMMCMSC_NT_IND could not be performed.
    ERROR 2009-05-25 12:55:42 Main
        Installation failed.
    ERROR 2009-05-25 12:55:42 Main
        Installation aborted.

  • Repository Creation Utility (rcu.bat) problem starting

    Using "Getting Started with Oracle SOA Suite 11g R1 - Hands On Tutorial," Packt 2009.
    Ran through the rcu.bat tool twice. First time had DB (Ora10.2) privelege problems. Tried to correct, then ran rcu.bat a second time, but had the same privelege problems.
    Now I want to run rcu.bat (3rd time) using the Drop option to clean up the tablespaces before working with DBAdmin to apply correct priveleges.
    When I run rcu.bat though, nothing happens. I edited the batch file to echo environment and command line--if you need that I can paste into this discussion.
    Thank you!
    Michael

    Ravi, thank you for the info. But my problem is with the command script itself, or the Java application (maybe).
    To clarify, I follow the instructions on page 49 of the book (above)...
    - cd c:\stageSOA\rcuHome\bin
    - rcu.bat
    But, when I hit <enter> nothing happens. The first several times I ran the utility, this was not the case. It would take 20 or 30 seconds for the application to startup, but it did start. Now it does not start at all, ever.
    I'm going to guess I caused an UNEXPECTED exit and left the environment (mayby a log or temp file) in a corrupt state. My problem is that I don't know how to fix this.
    Thanks!
    Michael

  • JDBC MySQL connector & autoexec.bat

    This what I entered into my autoexec file but when I run my java program it gives me a 'no suitable driver' error. I do not know what I should be entering for the
    'CLASSPATH' in the autoexec. Below is what I entered. The file jar file is located in my C:\unzipped\mysql-connector-java-3.1.7/ folder.
    C:\unzipped\mysql-connector-java-3.1.7\mysql-connector-java-3.1.7-bin.jar%CLASSPATH%
    Can somebody with knowledge in installing the JDBC driver for MySQL give me some help please.

    This works perfectly in the Eclipse IDE area that I have but when I run the same program on the Net Beans 3.6 IDE area it gives me a 'not suitable driver' error. To note these are both on the same computer. I would really like to get the Net Beans 3.6 IDE working because that is what I am most familiar with using. If you know of the problem why one IDE area recognizes the driver where the next does not I would sure like to know. Somebody passed the idea that when the 3.6 area is executed there are multiple instances running and it resets the ClassPath(I think they where shooting in the dark but it is a lead none the less). Anyway if anybody has had this problem please enlighten me, Thank-You.
    The ClassPath is set to the following:
    ClassPath = C:\Program Files\Java\jdk1.5.0_02\lib;C:\unzipped\mysql-connector- java-3.1.7\mysql-connector-java-3.1.7;C:\Program Files
    \Java\jdk1.5.0_02\jre\lib\ext;
    This is the code:
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class Connect2 {
         public static void main(String[] args) {
              try {
                   // The newInstance() call is a work around for some
                   // broken Java implementations
                   Class.forName("com.mysql.jdbc.Driver");
              } catch (Exception ex) {
                   System.out.println("HERE");
              try {
                   String url = "jdbc:mysql://localhost/test";
                   String username = "root";
                   String password = "password";
                   Connection conn = DriverManager.getConnection(
                             "jdbc:mysql://localhost/test", "root", "password");
                   Statement c = conn.createStatement();
                   c.execute("insert into green values('richmond')");
                   c.execute("select * from green");
                   ResultSet rs = c.getResultSet();
                   while (rs.next()) {
                        System.out.println(rs.getString(1));
                   // Do something with the Connection
              } catch (SQLException ex) {
                   // handle any errors
                   System.out.println("SQLException: " + ex.getMessage());
                   System.out.println("SQLState: " + ex.getSQLState());
                   System.out.println("VendorError: " + ex.getErrorCode());
    }

  • Dbpool.bat Problems

    Hi .
    1) We are running WebAS 6.20 with EP 6.0
    2) We do not have an add button in the AdminGui for the Web AS under the dbpool service . So we need to use dbpool.bat with the xml file to create our pools
    3) WebAS 6.20 only runs ons JDK 1.3 .. we are running 1.3.1_13 .
    4) When we run the dbtool.bat we get a classnotfound error on the Savepoint.class . This class should be located on the rt.jar file under the JRE installation . However it is not there.
    5) We run on an Windows Platform.
    Has anyone had a similar problem ..
    Please help
    note : I do have a sollution , but it is not acceptable for the production environment

    Hi Ruan,
    We do not have an add button in the AdminGui
    for the Web AS under the dbpool service
    You have But it's hidden
    Just go to "Pool name" input field and edit - et voilà, the Add button appears. You find this annoying? In fact, it is! But this way it is ensures that experts are needed
    WebAS 6.20 only runs ons JDK 1.3 ..
    we are running 1.3.1_13 .
    No problem, for general info see
    In doubt, JDK 1.3.1_15 would be even better.
    I hope with this info you have solved all your problems!?
    Best regards
    Detlev
    PS: Please consider rewarding points. Thanks in advance!

  • Repwizard.bat problem in 10gR2

    When I installed OLite 10gR2, the repository wizard failed to run and I cannot create the repository. So I mnaually run %olite_home%\Mobile\Server\admin\repwizard.bat, I encountered the following error:
    Installation mode is : STANDALONE
    Exception in thread "main"
    And this was also the error in the installation log.
    Actually I see the script in repwizard.bat, and found many jar files (as stated in the classpath) were missing.
    Anybody encounter the same problem? and how to solve it?
    TIA
    Matthew

    ok ok, finally have Oracle Lite 10g R2 installed.
    Two major changes were made:
    1. Change the locale to English in Regional Settings (I'm using Chinese WinXP Pro sp2)
    2. Configure a loopback adapter and set a fixed IP
    The former is much critical. After installed in English, I turned it back to Chinese, but the Mobile Server cannot be started.
    So does OLite support Chinese Windows?

  • At Bat problem

    Hi there,
    I have a very strange problem with At Bat and I'm beginning to wonder if the problem lies with the Ipad itself. Basically, everything works really well, live video, audio, news etc but the main screen does not. For example, supposing the scores along the top of the screen read Toronot 6 Texas 0 top of 7th, if I click on that game, the animated batter pitcher, names of players etc never appear and the score on the main scoreboard remains 0 0. In other words the main interface doesnt work. I have tried setting refresh to every 15, 30 and 60 seconds but I have NEVER seen a score on the main scoreboard, nore the animated batter etc. I know the app is working and my connection is OK because the small scores along the top are updating.
    THe reason I am beginning to suspect the Ipad rather than the app is another app has a similar issue. I wanted to subscribe to the Spectator, but 'verifying purchase Information never resolved. Does anybody have any ideas or partial issues with apps which might build a picture. Needless to say At Bat online help is worse than useless.
    Thanks in advance
    Peter

    Hi thanks for trying to help, but as I said in my earlier post, I have tried all the different refresh options. I do wonder if I am missing an update or something, as the App Store isn't open in the UK yet, although apps are avaible to buy from Itunes on the pc. It's so annoying to see the score change at the top of the screen (proving some refreshing is going on) but never to have seen a score on the scoreboad!
    Still, maybe others will join in now. Anyone in the UK have At Bat working propely?
    Peter

  • .bat problems

    I'm trying to install my program onto my second machine, for some reason can't get the program to launch on the second machine through a .bat file.
    On the first machine, the program launches fine, here's the contents of the .bat
    @echo off
    path=%path%;C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin;C:\Documents and Settings\Neilt\jbproject\FuturesScreener\classes
    javaw futuresscreener.MainGui
    exit
    I've got different classpaths on the second machine so entered different locations for javaw.exe and the MainGui.class file but it won't work, the command window flashes up then disappears as if it can't locate javaw.
    Any ideas? I've checked the paths so many times that it can't just be them.

    Well, in that split second that the cmd window is flashing, and error message is being displayed that's telling you what's not working, be it that it can't find javaw.exe, or the correct class, or whatever. Instead of double-clicking the .bat file from windows, open up a command window and run the .bat file, and the window won't close on you.

Maybe you are looking for