Syntax for javac command line in DOS

Can anyone help me with the proper syntax fror the javac command line? Based on the Java Tutorial, I type the following line while in: C:\Program Files\Java>
c:\progra~1\java\bin\javac hellow~1.jav
This returns the following error message:
javac: invalid flag: hellow~1.jav
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
Rest deleted, you get the drift. A long time has passed since I have used DOS, but I thought that options were just that; they were not essential to run a program. If they are necessary, how do you set an option? for example, I have tried the command:
C:\Program Files\Java>c:\progra~1\java\bin\javac -g hellow~1
which gives me the following error:
javac: invalid flag: hellow~1
I would really appreciate any suggestions anyone out there has for solving this apparently simple & stupid problem.

Many thanks for these suggestions. I finally got javac to work by putting the file name HelloWorldApp.java inside of quote marks (i.e. "HelloWorldApp.java"). The program compiled the file, & I now have a HelloWorldApp.class file in my java directory. Unfortunately, I am now having trouble with the next tutorial step: getting java to use the file.
I am discovering there are some very strange things about DOS since the last time I used it. For example, the cd command recognizes either cd c:\progra~1\java OR c:\"Program Files"\java. If the quote marks are omitted a "file not found" error is returned. There seems to be some sort of problem with ways that long file names are dealt with in DOS. I notice that many contribs to this list enter long file names or directories without quote marks; indeed, this is standard format in the java tutorial. This is probably a really dumb question, but is there someway to tell DOS to recognize long names without quote marks?
Once again, thanks for the help.

Similar Messages

  • [Request] Betty: Friendly English-like interface for your command line

    Anyone with the capacities and interest to maintain Betty?
    Betty is a friendly English-like interface for your command line.
    She translates English-like phrases into commands in case you every run into situations like this.
    This means you don't have to leave your command line to look up an obscure but useful command. Just ask Betty!
    Discussion on reddit: http://www.reddit.com/r/linux/comments/ … x_command/
    Source on Github: https://github.com/pickhardt/betty

    I liked a lot of the ideas you posted.  Though I have to disagree with the idea of having tablets being into the size range of over 12".  You start getting larger than that and you may as well start using a laptop. On the flip side of that, I have to agree that there are too many of the 7" available,  which are almost too small.  The 8-10" tablets give you the portability and smaller size people want for stuffing into their bags,  purses, etc. The larger tablets are getting into that bulky area and that defeats the purpose of the tablet to begin with. Unfortunately I find myself using e-books more than I intended,  but I don't need a full, or larger than a full, sized sheet of paper.   They get harder to handle,  even with Lenovo 's great form design.  
    The only reason to have more than one tablet is if the developers can't come to terms and allow their products to be used across the board (talking of Amazon and Google here). I personally don't want to be carrying around more than one tablet and a phone. I want to simplify and streamline not add more bulk. 
    I loved that you pointed out that our voices will never replace our fingers. I don't like speaking to inanimate objects; too many experiences with automated phone services that did not end up well. 
    I congratulate Lenovo for their innovative design with the Yoga tablets. 

  • File format for username/password file for -vcusersfile command line option

    In what format do I specify username and password in a file that I can use for
    the -vcusersfile command line option?

    The text file should contain name/password pairs separated by an equal sign. Example:
    myname1=password1
    myname2=password2
    Hope that helps,
    Susan Doan

  • Variable does not work for sqlplus (command line)

    Here is an select:
    variable x number;
    variable y number;
    variable a number;
    define x = 2000;
    define y = 2*1000;
    define a = &x+&y;
    select ener from adding where ener = &a;
    When I execute it under SQL*Plus Worksheet (client installed on my PC) then I get output:
    ENER
    4000
    1 row selected
    When I execute this same under command line sqlplus (under unix shell) then I get output
    old 1: select ener from adding where ener = &a
    new 1: select ener from adding where ener = 2000+2*1000
    no rows selected
    What is worng ?

    Nothing.
    Sqlplus is correct and sql worksheet is buggy.
    Define works with strings only. You cannot use it to calculate an expression.
    Apparently sql worksheet did calculate the expression, and sqlplus didn't, submitting it as a string.
    This is the expected behavior.
    This behavior can likely vary by version, so thank you for not providing version info.
    Will anything awful happen when you do, or is this just the lazyness epidemia in this forum?
    Sybrand Bakker
    Senior Oracle DBA
    Experts: those who did read documentation.

  • Defining input file encoding type for XML Command Line parser

    The commend line parser seems to default to an input xml file type of UTF8. I would like to use ANSI xml file types.
    There is an option of xml -e <encoding> that should be able to do this.
    I have tried
    xml -ee ANSI file.xml
    xml -ee 'ANSI' file.xml
    xml -e ANSI file.xml
    xml -e 'ANSI' file.xml
    Can someone tell me what the correct syntax for thjis is.
    Thanks
    D

    An xsd can be generated of an xml file using this tool: Use this tool properly according to your file:
    The pdf however explaib about MDM xml to xsd you can try on yours:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bf0e8a97-0d01-0010-f0a2-af3b18b7f4eb
    Once the xsd will be generated you can import it in external definitions.
    Rewards if helpful.
    BR,
    Alok

  • Javac command line problem

    Why might the javac.exe, java.exe, and javaw.exe command lines not stay open? When I open these files, the command line flashes open and immediately disappears.
    I tried opening these files using "Run as..." and unchecking the "Protect my computer from unauthorized program activity" option (as my first guess was and still is that I am running into some kind of Windows security settings problem), but this seemed to have no effect.
    I am using Windows XP Professional with all updates as of 06-21-2007.

    You always want to run executables like that and things like .bat files from a command window. To open a command window, follow jverd's post, reply #2.

  • [SOLVED] Vocabulary Trainer or Learning Archit. for the Command Line

    I am writing my PhD in English which actually is not my native language. So vocabulary and expression learning is an important task. When I came to Arch part of the decision was also ralted to my whish to work as close to the Command Line as possible. So I am looking everywhere to find a vocabulary trainer for the shell. Unfortunately I was not able to find even one. I looked:
    - at the Arch Wiki 'List of Applications'
    - at the Ubuntu Wiki 'Shell Applications'
    - at http://www.jaredandcoralee.com/CLIapps.html
    - searched both the Arch and Ubuntu Wiki
    - searched Google for 'Vocabulary Trainer cli', 'Vocabulary Tainer terminal emulator', 'Vocabulary Trainer Linux Shell'
    Is anyone aware of such an application for the shell or has anyone ideas for a kind of work around using a combination of existing software/shell scripts/shell commands.
    Thanky you.
    PS: Of cause I could just start something like simple Python Script working with a csv file or something comparabla. But if possible I would like to avoud this DIY solution.
    Last edited by cutuchiqueno (2013-08-30 10:12:06)

    Trilby wrote:
    I don't know of any training tools of that variety.  Generally this is a "learn by doing" situation - which fits with language learning as well: flash cards can seem handy, but to really learn a language, you just need to start using it.
    To "just start using" the shell, I'd suggest greg's wiki
    Ok, I think there is a misunderstanding. My question does not relate to learn to use the shell. Although far from being perfect I already feel quite comfortable with the shell and its ways to interact with the system.
    It's really more basic. I have to improve my English. And in this context I need a vocabulary trainer, to learn english words and english academic expressions, nothing more. And as I am feeling quite close to the shel it would have been nice to train english vocabulary on the shell and not with something like KWordQuiz, etc.
    Sorry if my description was ambiguous. So the question still is, is there a vocabulary trainer for self defined english vocabulary to train in the shell?
    PS: Of cause also learning english is something you mostly do by learning. But I will do  that anyhow as I am writing the PhD in english and as I am presenting in English. Anyhow I experienced that there is a part in foreign language learning where there is no real subsitutde for learning it with a vocabulary trainer.

  • KeyListener for a command line application

    Hi, I'm currently writing a small command line application aimed at interacting with a database. I would like to implement features such as an automatic completion of the names with the TAB key. My problem is that the objects that sends KeyEvent are AWT components, and they do that when they have the focus. So I was wondering if any of you had already done such a thing. Until now, I tried lots of things, but there is no way I can catch a KeyEvent within the command line...
    Souk

    Write your own input routine that internally reads a character at a time instead of a complete line or string and test the character for tab etc. and take the appropriate action. This also means you will have to/can implement editing keys.
    If there is a Java class that has an dictionary to compare input with I do not know, because the last time I wrote a tool without gui was in 1985.
    Regards
    SH

  • How to Install IHAT10.1.3 for both command line and web

    Hi,
    I am trying to install iHAT10.1.3 onto my linux x86 machine. However the instruction I am following in the README is not working for me. Can anyone give me an example of how to install and view iHat for command line and the web
    Cheers
    Jat

    What stage during the instructions are you encountering problems. Can you provide the error details if any?
    The 10.1.3 iHAT is only Web based using Flash at the client for displaying compopnents. Unlike the old iHAT, there is not thick client provided to invoke from the command line.
    null

  • Looking for pfi command line arguments.

    Hey,
    I've read through all documentation but can't find a list of all available command line arguments for pfi. the pfi -help does not list any options for me. Does anyone have a link to a list or is there some way to get the -help argument to output the list?
    Thanks,
    Jonas

    Below mentioned pdf has some info on the command line args of pfi under the heading Creating an iPhone application installer file from the command line
    http://download.macromedia.com/pub/labs/packagerforiphone/packagerforiphone_devguide.pdf
    Tanu

  • Logs for BIAR command line tool XI3.0

    Hi,
            Will there be any log files generated by the BIAR command line tool, when we try to export to a BIAR file?
    Thanks,
    Ashok Kumar M

    Information regarding the import can be found in the following locations:
    - Program Files\Business Objects\BusinessObjects 11.5\Logging
    - Program Files\Business Objects\BusinessObjects 11.5\win32_x86
    - Windows Event Viewer " If an error was encountered during import, the information will often be found here.
    To generate more logs during the import:
    Create a shortcut of the Import Wizard executable. The executable is found in <installation directory>:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\win32_x86.
    Right-click the new shortcut. Click Properties.
    Click the Shortcut tab. Add "trace at the end of the Target command line as follows:
    "C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\win32-x86\ImportWiz.exe" -trace
    Click OK.
    When starting the import process, use this new shortcut instead of the previous one to start a trace. The resulting logs will reside in <installation directory>: \Program Files\Business Objects\BusinessObjects 11.5\Logging.
    Caroline

  • Lookup for WINS command line tool

    Hi ,
    Can anyone help me in finding a way to get a lookup tool or script to check WINS records.
    I have used nblookup but this only gives HostName to IP.
    I want it from IP to HostName from WINS.
    I have tried using nbtstat -A x.x.x.x also , but this is not fetching records from WINS. (not accurate)
    Sai Krishna

    Hi,
    According to your description, my understanding is that you need a command line tool to look up records from WINS.
    The command line nbtstat –A <IP address> , will returns the NetBIOS name table and MAC address corresponding to the IP address you typed, but the WINS does not queried during this process, the two
    nodes use NbtNs to request and respond the NetBIOS name between them.
    You may use netsh wins command to query names from WINS which you specified:
    >Netsh
    >WINS
    >Server <WINS IP address>
    >show name name=<record name> endchar=<16thCharInHex>
    This will find IP address and NetBIOS names according to the name. If you need to search name according to IP address, I suggest you use the
    display records in the WINS snap-in.
    Detailed information about netsh wins command line, reference the link below:
    http://msdn.microsoft.com/en-us/library/cc779375(v=ws.10).aspx#BKMK_53
    Regards,
    Eve Wang                                                                                                                                                  

  • OpenSSO Enteprise Configuration Parameters For the Command-Line Configurato

    Hi,
    As said in the title, i want to configure OpenSSO Enteprise via command lines, but after doing the command: "java -jar configurator.jar -f ../../configuration_file"
    I have the following error:
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
    at java.net.Socket.connect(Socket.java:542)
    at java.net.Socket.connect(Socket.java:492)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:174)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:240)
    at sun.net.www.http.HttpClient.New(HttpClient.java:321)
    at sun.net.www.http.HttpClient.New(HttpClient.java:338)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:814)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:755)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:680)
    at com.sun.identity.setup.OpenSSOConfigurator.main(OpenSSOConfigurator.java:172)
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
    at java.net.Socket.connect(Socket.java:542)
    at java.net.Socket.connect(Socket.java:492)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:174)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:240)
    at sun.net.www.http.HttpClient.New(HttpClient.java:321)
    at sun.net.www.http.HttpClient.New(HttpClient.java:338)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:814)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:755)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:680)
    at com.sun.identity.setup.OpenSSOConfigurator$ReadProgress.run(OpenSSOConfigurator.java:237)
    at java.lang.Thread.run(Thread.java:636)
    thanks,
    Ali

    1. Wrong forum. Try it here: [OpenSSO Enterprise formerly Access Manager|http://forums.sun.com/forum.jspa?forumID=760]
    2. Give more information and/or google it
    /T

  • Javac command line program can use class, need tomcat to do same

    This may be simple, but any assistance to a newby would be greatly aprreciated. I have a this class file:
    import java.io.*;
    public class OCrypt
    static public String getEncryptedText (String plainText)
    Runtime R;
    String _encryptedText = "";
    char[] someData = new char[16];
    R = java.lang.Runtime.getRuntime();
    try
    java.lang.Process P = R.exec("./OCrypt " + plainText
    InputStreamReader ISR = new InputStreamReader(P.getInputStream());
    ISR.read(someData);
    _encryptedText = new String(someData,0,11);
    catch (Exception e)
    _encryptedText = "***ERROR***";
    return (_encryptedText);
    Where ./OCrypt is a compiled program writtine in C in the same folder. A small test program calls the class and C code and works. Now for the tomcat part, I need to be able to call this code from tomcat. I know it has worked in the past on a much older version of tomcat. I need to figure out how to make it work on tomcat 5.5.9
    Thanks

    Thanks for the reply. Please bare with me. I am reading in the SAMS teach yourself book to know how to create the folder structure. I assumed this folder should be off of my WEB-INF/classes folder. See the full path below.
    Couple of things
    1 - Your class should be in a package. Otherwise you
    will have problems.I added the .class file to a package. Or at least I think I did. I added this line to the top of the code.
    package OCrypt;
    The file is in this folder:
    /var/local/jakarta-tomcat-5.5.9/webapps/ROOT/pss/WEB-INF/classes/OCrypt
    Then I ran 'javac OCrypt' in that folder.
    2 -
    Where ./OCrypt is a compiled program writtine in C
    I always keep the C file in the same location as the class. That may be a problem later when tomcat can resolve the class but then can't find that program. I hope that will generate a completely different error.
    in the same folder.
    In the same folder as what?
    The current working directory for Tomcat is normally
    [TOMCAT]/bin. Is that the folder you mean? I will put it there if I get the class resolved.
    If you want to use this tool, I would say put it in
    the PATH for the machine (so it can be found from
    anywhere) or use an absolute reference to it.I can put a complete path in the .java file before I compile if you think that will help.
    You> can't count on the working directory being where you
    think it is. But right now I would just like to create a simple class like adding two numbers together and returning a result. My larger issue is more of a server configuration. I am using a enterprise wide tomcat server and have been told EACH application folder has it's own classpath. I even attempted to write a JSP that would output my enviroment to a simple page. This didn't work because the env was only for the user, not the env AFTER all the startup scripts run for the server.
    >
    One solution is to use ServletContext.getRealPath().
    Is there any reason you couldn't rewrite the
    encryption into Java - that way you wouldn't have to
    bother with Runtime.exec()
    Another alternative would be to use JNI to get a Java
    interface to the C class.
    http://www-128.ibm.com/developerworks/edu/j-dw-javajni
    -i.html
    I think either of those solutions are preferable to
    using Runtime.exec().

  • REP-159: Syntax error on command line [Internet Browser]

    Hi All,
    I am running Oracle forms in Internet Explorer with Sun Plug-in. When I m trying to invoke the report for voucher slip having the following parameters like
    &para_cluster, &para_company, &para_site, &para_user, &para_je_voucher_id. The URL is converted as given below:
    http://localhost:8889/reports/rwservlet?report=D:\iERP\product\1.0.1\GL\reports\01_GL_Voucher_Slip_Report.rdf&desformat=pdf&destype=cache&userid=abc/abc@orcl&paramform=no¶_cluster=100¶_company=1000¶_site=10000¶_user=scott¶_je_voucher_id=2¶_je_voucher_cat=BPV
    What I discovered is that the string +&para+ is implicitly converted by ¶ into Browser. I don't know what to do with it. Can anyone help me in this regards.
    Thanks in advance
    Bilal

    Hello,
    Try to "URL encode" the character & : %26
    Regards

Maybe you are looking for

  • Can no longer burn DVD-R

    I've read many posts other places now regarding this issue and no one seems to have an answer. I've been burning media fine for some time now, and after the 10.4.6 upgrade, DVD's fail to burn on my G5's internal drive. I'd think it was maybe the driv

  • Data Passing from ME21N to ME22N or ME23N

    Hi, I'm using screen exit to add some custom fields in PO Creation screen. I used the enhancement MM06E005. I have to add fields in Header hence, I added those in CI_EKKODB. Then, I designed 0101 screen of SAPMM06E. Further I used EXIT_SAPMM06E_008 t

  • Left clicking mouse acts as if I'm right clicking, and comes up with right click menu?

    Hi I was wondering whether anyone could help me with this, I've had this problem for a week or so now and it's beginning to get frustrating. I have a newish iMac, bought in January, and I've been having this problem the last week or so, where when I

  • Xpath condition

    Hi, I need an xpath to convert to uppercase for <Empid> <Name> <FirstName>demo</FirstName> <LastName>test</LastName> </Name> <Empid> Need to check the element FirstName contains Demo ( by converting it to uppercase) I used various type like these: /E

  • The sound on my touchsmart tm2 has stopped working when viewing videos. sound "ding" is audible.

    How do I restore the sound on my HP Touchsmart?  The "Ding" reckognition is audible but no sound when watching videos.