Command Prompt Issue

Hi everybody,
I've dloaded the latest JDK, and have been using JCreator to compile and run programs. I do need to, however, use the command prompt to compile/execute programs as well. (e.g. javac myProgram.java) Java commands are not recognized as internal or external commands for some reason. I'm running windows XP pro, btw. Is there any way to manually fix this problem? Any help is appreciated.

ok I think I got it to work, but I've got a noob question. To comile you type: javac filename.java, but I forgot how to run the program. I thought it was: java filename. Sorry this is such a dumb question, but I just started java.

Similar Messages

  • Command prompt issue from VBscript

    So I have this script that works perfectly for parsing out a COM number and then sending data to said COM port via the command line (things like 'ipconfig > //./COM15'). The issue is that it only works when I use the /K modifier which tells the command
    windows to stay open.  I don't want them to stay open, but whenever I remove the /K, it doesn't work. Nothing gets copied to the COM port. I suspect the cause of this is the command prompt closing before things like systeminfo can finish running. So is
    there a way to have the command prompt window stay open for a short amount of time and then close?
    'Part 1: FindCOM port
    fileName = "C:\rtlstuff\COM.txt"
    Set regex = New RegExp
    regex.Pattern = "COM(\d+)"
    regex.IgnoreCase = True
    regex.Global = True
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set file = fso.OpenTextFile(fileName)
    text = file.ReadAll()
    file.Close
    Dim ComPort
    Set matches = regex.Execute(text)
    For Each m In matches
    ComPort = m.SubMatches(0)
    Next
    'Part 2: Set file dictionary
    set oDic = CreateObject("Scripting.Dictionary")
    oDic.Add 0, "ECHO %DATE% %TIME% > //./COM"
    oDic.Add 1, "ipconfig > //./COM"
    oDic.Add 2, "systeminfo > //./COM"
    v = 3
    'Part 3: Set COM Variables
    Set oShell = WScript.CreateObject ("WScript.Shell")
    MODE = "MODE COM" & ComPort & " 9600,N,8,1,P"
    oShell.run "cmd.exe /C" & MODE
    'Part 4: Data transmission
    Dim Command
    x=0
    do while x < v
    Command = oDic.Item(x) & Comport
    msgbox Command
    oShell.run "cmd.exe " & Command
    x=x+1
    wscript.sleep 10000
    loop

    Can you help me with syntax? I'm still not hugely familiar with VB and I'm not sure how to set this up. This current iteration does not work.
    'Part 1: FindCOM port
    fileName = "C:\rtlstuff\COM.txt"
    Set regex = New RegExp
    regex.Pattern = "COM(\d+)"
    regex.IgnoreCase = True
    regex.Global = True
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set file = fso.OpenTextFile(fileName)
    text = file.ReadAll()
    file.Close
    Dim ComPort
    Set matches = regex.Execute(text)
    For Each m In matches
    ComPort = m.SubMatches(0)
    Next
    'Part 2: Set file dictionary
    set oDic = CreateObject("Scripting.Dictionary")
    oDic.Add 0, "ECHO %DATE% %TIME% > //./COM"
    oDic.Add 1, "ipconfig > //./COM"
    oDic.Add 2, "systeminfo > //./COM"
    v = 3
    'Part 3: Set COM Variables\par
    Set oShell = WScript.CreateObject ("WScript.Shell")
    MODE = "MODE COM" & ComPort & " 9600,N,8,1,P"
    oShell.run "cmd.exe /C" & MODE
    'Part 4: Data transmission
    Dim Command
    i = True
    x=0
    do while x < v
    Command = oDic.Item(x) & Comport
    msgbox Command
    oShell.run "cmd.exe " & Command , ,True
    x=x+1
    wscript.sleep 10000
    loop

  • Exchange Powershell issue while loading the snapin on command prompt, in Exchange server 2010.

    Hi,
    When we launch the Exchange powershell via command prompt..  with below command:
    PowerShell.exe -PSConsoleFile "D:\Program Files\Microsoft\Exchange Server\V14\Bin\ExShell.psc1"
    it throws the following error:-
    Following errors occured when loading the console
    D:\Program Files\Microsoft\Exchange Server\V14\Bin\ExShell.psc1:
    can not load windows powershell snap-in microsoft.exchange.management.powershell.e2010 because of the following error:
    no snap-ins have been registered for windows powershell version 2
         We are using Exchange server 2010 SP3 rollup 5 and EXCHANGE Server 2010 SP01.We see the issue on both the servers
       Can you please provide the steps to reslove the issue.
    Thanks & Regards,
    Sanjeev Gupta

    I have got the resolution of the problem. In my environment, the Powershell.exe which was being launched from command prompt, was 32 bit exe, while it was needed 64 bit exe.
    It was occuring because in system path there was 32 bit powershell.exe was present. So, after replacing the exe with 64 bit exe, the problem was solved.
    Thanks for the help provided above..
    Regards,
    Sanjeev

  • Issues executing report from command prompt

    I'm using Oracle 10g Reports and attempting to execute a report from my workstation to output in a spreadsheet format. We don't have a Reports Server implemented at this time, so I'm simply connecting to the database with Reports Builder and running reports. I can execute a report just fine from Reports Builder and output as PDF; however I'm not familiar with how to output as spreadsheet. From what I understand, spreadsheet output cannot be accomplished through the tool, only from the command prompt. I've tried executing the a command inthe following format from Windows XP command prompt, but no luck:
    rwrun report=test_report.rdf userid=[usernam/pwd@db] desformat=spreadsheet destype=file desname=c:\temp\test_report.xls
    Nothing occurs...no output, nothing when this command is entered. What is the issue? Can rwrun.exe even be used for executing on the client-side? According to Oracle documentation, rwrun is the executable that runs a report using the OracleAS Reports Services.

    Hello,
    Even if the parameter is deprecated, you can use errfile=c:\temp\reports.err and check if there are some errors ..
    or check for a file reports.log
    Regards

  • Issue with KeyEvent for Command Prompt

    Using below code, when Event keys like “F7” are executed on the application to test while running from openscript it works fine.
    Whereas if the same script is executed using command line as below, then “F7” is executed for command prompt itself instead of application to test. 
    “C:\OracleATS\openScript\runScript.bat \\10.184.82.45\SharedRepository\Mysharedscript\Mysharedscript.jwg -delayPercentage 1”
    Code =>
    ft.typeKeyCode(KeyEvent.VK_F7);

    Try using
    ft.keyDown(KeyEvent.VK_F7)
    ft.keyUp(KeyEvent.VK_F7)

  • Query running on sql commands prompt not running on report region

    Hi All,
    Facing a weird issue now. I have written a report query which is running absolutely fine in sql command prompt but when i trying to run this as a report it is just processing and the report is not loading. What could be the reason behing this?
    Thanks in Advance
    Regards

    Hi,
    With no other information about the problem is hard to know what's happening. If you could at least provide us with the query then I think it would be easier for us to help you.
    Regards,
    Sergio

  • I have an hp p3005dn printer. how can i print to "lpt1" in command prompt mode. win 7.

    I am trying to get my printer so I can print to it from "Command Prompt".  I have done the "Port" thing to allow Windows to accept "LPT1" as an alternate printer spool name.  I know there are a command or two that are required in Command Prompt itself, but I do not know them.  Can anybody help with the commands required in Command Prompt.
    Thanks

    Hello Greenwood Newton HS,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/ts3147
    Reset the printing system, then add the printer again.
    If the issue still persists, reset the printing system again.  Download and install your printer's drivers. Then, add the printer again.
    Best of luck,
    Mario

  • Error when running a scenario from Command Prompt

    Hi I edited the parameter file and I am trying to run an interface that joins two tables from HR schema and loads into a table in different schema. I am able to run this in the Designer, but I receive an error message when I try to run it through command prompt.
    Here is the error message I get when I try to run it
    09/09/2009 11:58:42 AM(main): Creating session for scenario:DEMO_INTERFACE - 001
    09/09/2009 11:58:42 AM(main): Session : 88010 is running
    com.sunopsis.core.SnpsInexistantObjectException: There is no connection for this
    logical schema/context pair:HR / GLOBAL
    at com.sunopsis.dwg.dbobj.SnpConnect.getSnpConnectByLSchemaNameAndContex
    t(SnpConnect.java)
    at com.sunopsis.dwg.dbobj.SnpConnect.getSnpConnect(SnpConnect.java)
    at com.sunopsis.dwg.dbobj.SnpSession.getDwgConnectLst(SnpSession.java)
    at com.sunopsis.dwg.dbobj.SnpSession.getConLst(SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenar
    io.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.i(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    09/09/2009 11:58:43 AM(main): Session : 88010 finished with return code : -1
    com.sunopsis.core.SnpsInexistantObjectException: There is no connection for this
    logical schema/context pair:HR / GLOBAL
    at com.sunopsis.dwg.dbobj.SnpConnect.getSnpConnectByLSchemaNameAndContexur
    t(SnpConnect.java)
    at com.sunopsis.dwg.dbobj.SnpConnect.getSnpConnect(SnpConnect.java)
    at com.sunopsis.dwg.dbobj.SnpSession.getDwgConnectLst(SnpSession.java)
    at com.sunopsis.dwg.dbobj.SnpSession.getConLst(SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenar
    io.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.i(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    DwgJv.main: Exit. Return code:-1
    Thank you for your help.
    Kranthi

    Hello,
    Try to remove and recreate your package and scenario, I had the same issue and solved doing it.
    It seems for me that the package cannot update its contents, for example, if you change something in your interface, you must recreate your package and scenario to update the changes.
    What ODI version do you use? If you use an old version, try to update to ODI 10.1.3.5
    Regards,
    Wallace Galvão
    São Paulo - Brazil

  • Vista bootmgr compressed VISTA - need command prompt!

    I am at wit's end and even though my 8 year old bought his HP G60 with his own money, I am about to hurl it out the window as I wasn't "consulted" and would not have condoned this unfamiliar to me Vista O/S.
    All I wanted to do was reset the computer/system to factory defaults.  He is gaming now a few years later with nothing important and seemed the quickest way to clean up the PC.  I create recovery disks, a NICE LITTLE PROCESS that took 3 entire days.  NO JOKE.  I had to place every few hours COLD PACKS under and on it because this thing from day one runs hotter then heck. 
    So voila, it's done.  And reboots.  And I hope there is some other bored GEEK reading this because I can't find ONE POST on the entire Al Gore Internet that gets me to a command prompt without using install disks.  This HP shipped with no install o/s disks.  I created the recovery as a safety net, and it's starting over AGAIN and personally, I don't have 3 more days and hot pack maintenance in me before I just buy a new one.  PLEASE HELP.  It seems simple enough to get to a command prompt and uncompress something I never even intended to compress nor did in any keystroke of my imagination.
    He is losing faith in his mother who he believes created MPLS....  got a network problem, I'm your gal.  Word won't load, call IT.  Windows XP has an issue, UNIX, learning Win7... but this Vista?  grrrrrr.  Where's the wine for my WHINE?

    I guess I only said it in the subject. boot gets BOOMGR is compressed. Press Control Alt Del to restart. Tried the normal ways to boot and get into some start up, but seems I need a command prompt to uncompress...

  • How to use addKeyListener in a program running using command prompt

    Does anyone have any idea how to add the addKeyListener to a program running using command prompt.
    Let me explain how the program run.
    The program is start and accept call from other program. But from time to time, I need to issue some command by pressing the keyboard, let say, ESC is closed the program, F1 is showing the stated. F2.... (This is all need to run in the command prompt windows)
    My problem is this program does not have any gui interface, so how can it be added?
    i do it this way
    public void key(){          
    addKeyListener(this);
    But it have compile error.
    mainServerImpl.java:87: cannot resolve symbol
    symbol : method addKeyListener (mainServerImpl)
    location: class mainServerImpl
    addKeyListener(this);
    I did implement KeyListener. But just don't know how to solve this error.
    can anyone tell me how to solve it or point me a source that can help.
    Thank in advance!
    Regards,
    Tai Tan

    Write your own Thread, to do this:
    public class KeyThread extends Thread {
       public void run {
          while(true) {
             int i = System.in.read();
             if(i == 123) {
                break; // to stop the thread
    // in your main:
    Thread keyThread = new KeyThread();
    keyThread.start(); // calls run() of the thread

  • Copy and Paste from PDF to Command Prompt

    Hi,
    When I convert a Word doc to PDF, that includes instructions to the user to cut and paste commands from the doc into the command prompt window, the pasted text is rejected by the command prompt window.
    I recently upgraded to the Adobe Technical Communication suite. Prior to this I was using Word's native convert to PDF plugin. None of the text in PDFs generated by this method causes any issue. I remade the PDF using this method after the previous one made with Acrobat caused issues and it worked fine.
    I would like to continue using Acrobat because the auto-generated bookmarks are a nice feature for the end-user.
    Any suggestions?
    Thanks,
    Donal

    Hi Donal,
    This forum is 3D issue specific. Your quesrtion would be better handled on the Acrobat User-toUser forum. There are many brilliant folks there who might be able to answer your very quickly.

  • Can't create database from command prompt

    I am using Oracle 9i over Win XP. I can create new database using OEM wizard without any problem. However, when I try to create new database from command prompt, using following commands, I get an error.
    sqlplus /nolog
    connect / as internal (when I issue this I get message TNS no listener)
    CONNECT SYS/password AS SYSDBA (can't understand how to use this, I don't have password because I've not created the database)
    Can anyone help me how to create new database from command prompt?
    Thanx

    "TNS No Listener" => Start the listener
    To be connected as SYSDBA you dont need a password if your are logged in the DBA group, you just have to :
    PROD_:id
    uid=102(oracle) gid=103(oinstall)
    PROD_:sqlplus "/ as sysdba"
    SQL*Plus: Release 8.1.7.0.0 - Production on Wed Jul 23 11:46:50 2003
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.4.0 - Production
    SQL> show user
    USER is "SYS"
    SQL>
    Fred

  • Win 2003 Sevver Command Prompt not working

    Hi,
    It seems somehow the command prompt are not working on my server and hence one of my software installation is failing on the server.
    it seems the CLI commands work fine when the Command prompt is executed directly from the /system32 dir. But when we use it from Start>run>cmd, the commands don't respond.
    For Example:
    C:\>ping
    'ping' is not recognized as an internal or external command,
    operable program or batch file.
    C:\>nslookup
    'nslookup' is not recognized as an internal or external command,
    operable program or batch file.
    And when I execute it from the /system32 :
    C:\WINDOWS\system32>ping
    Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
                [-r count] [-s count] [[-j host-list] | [-k host-list]]
                [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name
    Options:
        -t             Ping the specified host until stopped.
                       To see statistics and continue - type Control-Break;
                       To stop - type Control-C.
        -a             Resolve addresses to hostnames.
        -n count       Number of echo requests to send.
        -l size        Send buffer size.
        -f             Set Don't Fragment flag in packet (IPv4-only).
        -i TTL         Time To Live.
        -v TOS         Type Of Service (IPv4-only).
        -r count       Record route for count hops (IPv4-only).
        -s count       Timestamp for count hops (IPv4-only).
        -j host-list   Loose source route along host-list (IPv4-only).
        -k host-list   Strict source route along host-list (IPv4-only).
        -w timeout     Timeout in milliseconds to wait for each reply.
        -R             Trace round-trip path (IPv6-only).
        -S srcaddr     Source address to use (IPv6-only).
        -4             Force using IPv4.
        -6             Force using IPv6.
    C:\WINDOWS\system32>nslookup
    Default Server:  dns-blr2.cisco.com
    Address:  72.163.128.140
    Please check and suggest!

    Hi Aryanadonis  ,
    Thanks for posting here
    According what you mentioned, I thought system can’t located command programs path when you perform this command .
    Seems that you can perform these command with assign path, what I thought is this issue occurred because wrong environment variable setting.
    I noticed that you have posted the Environment Variable result here, I checked and highlight wrong values that could cause this issue. please correct it and try perform
    command again.
    C:\WINDOWS;
    C:\WINDOWS\system32;
    C:\WINDOWS\system32\\wbem;
    C:\PROGRA~1\CSCOpx\objects\smarts\lib;
    C:\PROGRA~1\CSCOpx\objects\smarts\bin;
    C:\PROGRA~1\CSCOpx\campus\bin;
    C:\PROGRA~1\CSCOpx\MDC\tomcat\bin;
    C:\PROGRA~1\CSCOpx\MDC\Apache;
    C:\PROGRA~1\CSCOpx\MDC\Apache\bin;
    C:\PROGRA~1\CSCOpx\MDC\jre\bin;
    C:\PROGRA~1\CSCOpx\MDC\bin;
    C:\PROGRA~1\CSCOpx\lib\jre\bin\server;
    C:\PROGRA~1\CSCOpx\objects\db\win32;
    C:\PROGRA~1\CSCOpx\bin;
    C:\WINDOWS\system32\\wbems\smarts\binPROGRA~1\CSCOpx\MDC\ApacheOGRA~1\CSCOpx\lib\jre\bin\serverCOpx\lib\jrebin\serveremRoot%\System32\Wbem;
    C:\Other Programs\net snmp\bin
    This article below introduce how to modify environment variables in windows XP , but you may also reference to it and modify environment variable on you windows 2003:
    How To Manage Environment Variables in Windows XP
    http://support.microsoft.com/kb/310519
    Thanks.
    Tiger Li
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Command prompt appearing on several machine after install ?

    I have several machines running intune now, some previously GFI and before that eset, but this is also occurring on new clients, every now and then a command prompt window is opening up and closing very quickly the only thing I can pinpoint is intune as
    this happens moments after every install and happens daily at different times I have noticed it myself but it occurs far less for me compared to other machines (seeing this first hand) and we just use the 1 policy  ?

    I know this is very old but I’m trying to clean up old posts. Did you ever solve this? If so it would be good if you could post the solution to assist others. If not, at this
    stage, as nobody has answered, I would recommend that you call Intune support if the issue still exists.
    You will find your local Intune support number here
    http://technet.microsoft.com/en-US/jj839713.aspx
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • What command to use in command prompt inside HP Recovery Manager to recover hard drive?

    Hi,
    I'm trying to use HP's Recovery Manager to restore my hard drive to the original factory settings. When going into Recovery Manager via "F11" during computer startup, all of the options are greyed out except, "Run Computer Checkup." Inside that option, all options are greyed-out except, "Open a command prompt."
    Once I open a command prompt, the window title is "Administrator: X:\Windows\system32\Cmd.exe" and the command line in the window is "X:\Windows\RM\>"
    I have no idea what command to enter here to recover the hard drive! What command should I use???
    Why are all the normal options in Recovery Manager greyed out?
    Background: I dropped my laptop and afterwards the computer will power on but not boot up from the hard drive - it says there is a hard drive error. I have been able to recover most/many files from the harddrive by taking it out and connecting it to another computer and using a recovery software program. I am not sure if the hard drive is physically/irreparably damaged, but it does spin and I have recovered many files from it. Now ready to recover it back to original state and then reload my recovered files.
    Computer: HP Pavilion DM3-1030us purchased in January 2010
    OS: Windows 7
    Thanks for any suggestions anyone can offer!

    There isn't a command that I am aware of to use at the command prompt that will recover your computer. If you dropped your computer, it is likely that the hard drive suffered physical damage. Please see HP Notebook PCs - Testing for Hardware Failures (Windows 7, Vista) for instructions on testing the hard drive. It is also possible that the HP Recovery partition was damaged and you may need to use the HP Recovery Media you created when you first setup your computer
    If you didn't create this media, please contact official HP Customer Support in your region / country, via the HP Worldwide Support Portal, to see if HP Recovery Media is available for your computer. Software may not be covered by the warranty and there may be a charge for the HP Recovery Media.
    If you have any further questions, please don't hesitate to ask.
    Please click the White KUDOS "Thumbs Up" to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

Maybe you are looking for

  • Log Files out of Control - How to manage size?

    This is a two part question: 1) Our Apache2 error log has grown to 41 GB!!! How can we clear it? 2) Is there a way to limit log file growth? 3) Is there an application to manage log files on a server? We are running Leopard Server 10.5.x. Thanks!

  • Design Questions

    I have an application where the user is able to select from a web page what database they want to view. They can change the database at any time. All of the databases reside on the same server. I started to code it where each user would get their own

  • Generate XML document

    Hi, My problem is about generating XML document. I'd like to be able to generate automaticaly (like what we can get at this kind of URL http://xdbserver:8080/oradb/USER/table_name) XML documents for any relational tables, I want the document being sc

  • Slices

    I am trying to get something to work on a prototype project I am working on.  Here is my dilemma: I have 3 radio buttons on a master page.  The first radio button shows information regarding a loan contract directly below the radio button.  The secon

  • Rollover effects

    what i want to achieve is a rollover effect, when i rollover my home button i would like a line with the button (PHOTOGRAPHY) to transition fade in and appear next to it. Example is provided.