How to execute program from any dir?

For example javadoc.exe is in D:\jdk1.3\bin.
And I need to execute it from current dir.

If you are running a Javadoc from DOS or the WinNT command shell, the proper command is
D:\JDK1.3\BIN\JAVADOC.EXE <params>
If you want to avoid typing this each time, type the following at the command prompt:
PATH=%PATH%;D:\JDK1.3\BIN
The command JAVADOC.EXE will then function without specifying the directory. The proper action is normally to add the JDK to your PATH environment variable when installing it.
In Windows 2000, you can modify your PATH variable by right-clicking My Computer and selecting the Advanced tab followed by the Environment Variables button. It is usually best to edit the PATH in the System Variables section to ensure that all users on your system receive the updated PATH variable.
In Windows 95/98, I -think- that the appropriate action is to open your AUTOEXEC.BAT file and locate the last line that says PATH=<stuff>. Add the following to that:
Old: PATH=C:\ADIR;C:\ANOTHER
New: PATH=C:\ADIR;C:\ANOTHER;C:\JDK1.3\BIN
I think this is appropriate for Win 95/98, but I'm not sure. Correct me if I'm wrong.
Good luck!

Similar Messages

  • Does any one know how to execute program in Jump developer desktop

    hi,
    Does any one know how to execute program in Jump developer desktop,
    actually i copied the hello world project from my eclipse workspace to jump
    developers workspace and once i run the program it asks for the main class
    and then i gave main class as my HelloWorld Class,it generates error as
    java.lang.NoSuchMethodError: main
    Exception in thread "main"
    Can any one help me to come out of this problem.....
    Thanks
    MRaj

    i solved it,
    thanks
    MRaj

  • How to start an executable program from a java program ?

    Hi,
    does someone know how to start an executable program from a JAVA program ?
    Thanks, Fred.

    Take a look at the Runtime class.
    -S-

  • Run program from any directory on Linux

    Hi, I'm using a shell on a Sun computer to run a Java program.
    The program requires the user to specify the name of an output file and and then an input file, manipulates the text in the input file, and prints it to the output file.
    I would like to be able to run the program from any directory.
    An IOException occurs if the input file is not in the same directory as the directory where you run the program.
    If I have an input file which I want to manipulate in a different directory to where the actual program files are located (.java and .class), how do I specify that?
    Thanks

    When you execute a java program from a given directory, all relative file paths (i.e. foo.txt) are resolved using the current directory. You can most likely run the program from anywhere as long as you specify an absolute path to your files and have permissions to both read and write. I say most likely because you could be doing something incorrectly in your code.
    If you want to run a program from anywhere, it must be:
    1) on your PATH
    2) be able to find its classes
    An easy way to do that is write a small "wrapper" shell script and put that on your path.
    I guaruntee you that a wise combination of terms used in this reply to compse a search engine query will yield you a useful tutorial or example.

  • How do install  program from external drive to mac book air

    how do install  program from external drive to mac book air

    DVD or CD sharing: Using Remote Disc - Apple Support

  • HT4673 how to uninstall programs from Mountain Lion?

    how to uninstall programs from Mountain Lion?

    Hi,
    Theres a couple ways to uninstall programs. The launchpad is the rocket icon on the dock. If you open that you should see your apps spread out as icons as if it would be on a iphone or other iOS device. If you just click the icon with your mouse button and continue holding the mouse button the will shake and show the X. If you click that X it will ask if you want to delete the program. This only works for programs downloaded through the APP Store. If a program does not have an X then proceed to the next way of uninstalling
    -- The way to delete a program that will not delete the previous way is as followed:
    Open finder
    - On the left side you will see applications > Click that
    - Then you will see all the programs on the right side.
    - If you click on the program and drag it to your trash bin it will ask if you would like to make changes and delete.
    - Just make sure not to delete anything that was preinstalled with you Mac

  • HT2584 How to delete programs from my mac book pro hard disk?

    How to delete programs from mac book pro hard disk?

    There is a better chance of getting help if you are specific.
    Does dragging to the trash work? does it use an uninstaller? new to mac and unsure?
    There are even 3rd party utilities to help remove programs.

  • How to execute sql from table

    For a migration I have created a sql script that puts the full statement to be executed in a specific table column
    I'm now looking for a way how to execute those statements.
    Table structure like: oldName, newName, sqlStatement, id, otherField, otherField2
    Instead of the full statement(sqlStatement) it would also be possible to use the oldName, newName and id field if that simplifies the problem.
    The reason for building the statement and running that one is a) to validate upfront b) a self join is applied to the query result table to prevent some items for update.
    The initial idea was to take the sql statements and execute them as a sql script but that process is pretty slow.

    user2833655 wrote:
    For a migration I have created a sql script that puts the full statement to be executed in a specific table column
    I'm now looking for a way how to execute those statements.That is wrong, tables are for data not executable code
    Re: ref cursor - result set not known
    http://en.wikipedia.org/wiki/Data_%28computing%29
    >
    Data is often distinguished from programs. A program is a sequence of instructions that detail a task for the computer to perform. In this sense, data is thus everything that is not program code.
    >
    user2833655 wrote:
    The initial idea was to take the sql statements and execute them as a sql script but that process is pretty slow.This alternative will just make it difficult, complicated and unreliable as well.

  • How do unistall programs from my macbook pro?

    i just cant seem to find out how to unistall and remove programs from my macbook pro. any suggestions?

    It depends upon how the application got there in the first place. Many applications can be uninstalled by simply dragging them from the Applications folder into the trash. (You may have to authenticate.).  Some applications come with their own uninstaller, usually in the Applications folder or in a folder in the Applications folder dedicated to the application in question. 
    If you have a dock icon left over, you can just drag it off of the dock.
    charlie

  • How to download programs from OVI-Store?

    Hello,
    I need some assistance for downloading programs from OVI-Store.
    Is there a way to download over the PC, N8 is connected to the PC?
    I'm unable to find any download button or something similiar? Besides this, I can only send 5 programs a day (Germany) to the N8.
    I'm totally new to smartphones stuff!
    Thx for any hint in this case,
    Lichtfaenger

    Have a look..
    /t5/Ovi-com-Ovi-Store-Ovi-Share-and/How-to-Download-OVI-apps-on-computer/td-p/500445/highlight/true/...
    --------------------------------------------------​--------------------------------------------------------​--------------------------------------------------​--If you find this helpful, pl. hit the White Star in Green Box...

  • Execute programs from stored procedures

    I will execute a extern program from a stored procedure. Is there anybody who knows that or how to send mail from Oracle without UTL_SMTP?

    See my reply to 'chaitanyadatir' just below your post.
    null

  • How to execute code from a text file?

    Hello all!
    How to execute some code lines from a text file? For example my file is:
    String varname = "somecontents";
    JFrame frame = new JFrame();
    frame.setVisible(true);How can I get contents of this file and parse them if I want get new JFrame and access to the variable varname?

    I mean the PHP would generate a readable Java source,
    for example some variables with some data, and I just
    dont know what to do with file if I want generate the
    xls file from my saved data, could You help? :)Some variables, some data, PHP, Java, XLS file??? Al rather vague.
    You need to explain in more detail what it is you're trying to do if you want an answer to your question!

  • How to execute programs on different hosts/ severs?

    HI all,
    In my SAP 4.6C system, two instances are running.
    I would like to execute programA on instance1 and programB on instance2.
    How could this be achieved?
    thanks in advance,
    holger

    @Srinivas:
    You can execute these two programs online. See how:
    - Write a RFC FM that executes an given report
    - Call this FM by coding
    CALL FUNCTION 'FUNCTION1'
      DESTINATION dest
    - this FM again calls another RFC FM:
    CALL FUNCTION 'FUNCTION2'
      STARTING NEW TASK task
    taking this way, both jobs will run 'online' (in dialog process).

  • How to transfer programs from old computer to new

    I have an older pavillion dv6000 and have now purchased a pavillion dv6.  I would like to transfer some programs from the dv6000 to the dv6.  How do I do so seamlessly?

    http://www.adobe.com/support/flashplayer/downloads.html
    ps: again wrong forum

  • How to Move programs from QAS to DEV

    Hi,
      I have a list of 50 program, which they deleted from FROM DEV and are available in QAS. Now they ask me to move back the programs from QAS to DEV.
    How to do this. Please let me know. I will surely reward the points.
    Priya.

    You may be able to retrieve them from version management.  If one of your programs was called Z_MYREPORT, for example, go to SE38 on DEV, enter Z_MYREPORT then menu Utilities->Versions->Version Management.  Even though the report was deleted, you'll be able to select the last version and retrieve it.
    Note, however, this only works where the object was transported from DEV to QAS in the past.  It works only with objects that support version management - so not sapscript layouts, for example.
    And as others have noted, you basis team can construct a transport in QAS and transport it to DEV - but this should be last resort.
    And you can always cut and paste. :-D
    matt

Maybe you are looking for

  • Capturing Excise Invoice (EI) at depot

    Hi gurus I am facing an issue while capturing Excise Invoice (EI) at depot. If non-batch material and batch material are combined into one material document which is generated after post goods issue (PGI) to create EI, two separate Excise Invoices ar

  • How can you tell when your new tablet was first actervated

    I bought a HP Omni 10 window's 8.1 tablet display model (last one) and was told it was never turned on ,when i first turned it on windows was activated and the tablet was running and i did not have to set any thing up . My question is ,is there a pla

  • Netflix no longer working on iPad

    Please help. Netflix was working this morning. I deleted the App, cleared the history and cache and reset the network. I then reinstalled the App still not working. Any suggestions please?

  • Bottom-left part of screen loose, also no longer connects to Wi-Fi

    First, the whole bottom-left of the screen of my brand-new 32gb iPod Touch is loose, and can easily be pushed in. There is also a bleeding effect of light from behind the screen. Will this be a problem? I've only had it since Christmas, so would I be

  • Playback/viewing mxf files

    Hi Ive just been experimenting with creation of DNxHD .mxf files and find that using the VLC player, some display video, other don't (all playback audio)  For example, a clip created with the 365x_1080p_50 settings plays back fine (ie max rate and 10