How to accept arguments with space with a java console?

hi, i'd like to know if its possible to accept parameters with space in betwen?
such as on my command prompt..
java 'i love my keyboard'
where args[0] = i love my keyboard
instead of
args[0] = i
args[1] = love
args[2] = my
args[3] = keyboard
thanks~

thanks, i just realised it wasnt the problem with the command line intepreter..
the space seems to have created some problems when passing it as a URL over to the server.
such as, for java [name] [phone] ;
java "Albert Stephen" +60369123
on the server, it accepts as Albert null
perhaps i should use the URL Encoder

Similar Messages

  • How to accept alphabets with IP IVR script

    Hi All,
    I was wondering if it is possible to accept alphabet inputs via IP IVR script on Version 8.0.
    If it is possible, pleaes help me with steps on how can this be achieved.
    My basic requirement is that
    - Caller calls IVR
    - Enters first name of the person to whom caller wants to speak, this will be done via touch pad on the phone
    - Call gets connected to the person
    This is possible in Alcatel systems, but i am not sure about Cisco systems.
    Any help would be great.                  

    The compatibility guide lists all of the languages for which there are system prompts:
    IVR PromptsArabic, Cantonese (Hong Kong), Chiese (Mandarin), Czech, Danish, Dutch, English (AU, CA, GB, US), Finnsh, French (CA, FR), German, Hebrew (IL), Hunarian, Italian, Japanese, Korean, Malay, Mandarin (Taiwan), Norwgian, Polish, Portuguese (BR), Russian, Spanish (CO, ES, MX, US), Swedish, Thai, Turkish
    Source:
    https://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_compatibility/matrix/crscomtx.pdf
    I see that Polish support is there; however, what I don't see is the country specific support for it, as we see for example Spanish supports: Columbia.
    With that said, I tried to just enter into the Trigger: pl instead of pl_PL and it still played English for me.
    I'm trying to get my hands on a folder listing of the Prompts/system/ folder to see what the language folder is called.
    EDIT:
    I found the Prompts folder on the ISO image of UCCX 9.0, and the polish language folder is certainly: pl_PL.
    Prompts\system\G711_ULAW\pl_PL\User Dialog\name_dial.wav
    Not too mention the file does play in Polish as near as I can tell.  I have attached it here.  This looks like a defect.  You will need to open a TAC case, which you should be able to do right from this post.  Just look in the upper right corner for a link/button to open a support case.
    Post back the resolution for everyone else my friend.  Thanks for bringing this up.
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • How to make  jar with from java code for the filenames containing spaces

    I tried to make jar file using Runtime.exec method . The filenames have spaces in it .So i gave the filenames in double quotes.It works fine with windows and also from the command prompt.But when i run the same code in unix box , it creates a jar file with no content.Pls give some solution. I used the jdk1.2.2

    Pls give some solution. Pls post your code

  • How to use KAWT with "Sun Java Wireless Toolkit 2.3 Beta"?

    Hi!
    Im new to developing java for mobile devices so all of this is pretty confusing for me. I started with installing suns:s "Wireless Toolkit 2.3 Beta" and it works fine but now I want to use awt classes so I started to look it up and that�s how I found out about kawt. I followed the tutorial at http://www.kawt.de/ and i was able to use it for Java Wireless Toolkit 1.0.4_02 so that it compiled fine and was run able.
    Then I tried the same thing in v 2.3 but I got a error that looked like this "Uncaught exception java/lang/NoClassDefFoundError: awtDemo: /awt/event/ActionListener: Cannot create class in system package." when i tried to run it. It compiled fine when I pressed the build button witch wouldn�t have happened if i hadn�t installed it correctly. So I�m wondering if someone knows were to find a tutorial for installing kawt for "Sun Java Wireless Toolkit 2.3 Beta" or if anyone knows what might be wrong?
    I'd welcome any help
    Thanks!

    If using the zip install of DSEE, you need to use your own java container to host DSEE. Try downloading the latest Tomcat (http://tomcat.apache.org) and deploying your dscc in it.

  • How to do internationalization with Sun Java Studio Creator?

    Hi everybody,
    the Sun Java Studio Creator seems to be a great peace of software ;-) Currently I'm trying to design some forms for a hello-world-test-project. My question now is: how can I realize internationalization with property-bundles? I already managed it to create my own bundles, I set up a few locales (de, en, fr) and put in some "SayHello" Variables. But how can I associate my locale-variables in the .propertie-files with the value- or text-attributes of the UI-Components using the form designer?

    well... it's not working!
    I created some locale-properties. Put a
    <f:loadBundle basename="mypackage.mainlocales" var="messages"/>directly under the "<f:view>"-Tag as it is descriped in the manual.
    But when I write something like
    <ui:label binding="#{sites$main$mainmenu.label1}" id="label1" style="position: absolute; left: 312px; top: 168px" text="#{messages.test}"/>The designer crashes with an error-message:
    javax.faces.el.PropertyNotFoundException: Error testing property 'test' in bean of type null
         at com.sun.faces.el.PropertyResolverImpl.getType(PropertyResolverImpl.java:342)
         at com.sun.rave.web.ui.faces.UIComponentPropertyResolver.getType(UIComponentPropertyResolver.java:298)
         at com.sun.rave.web.ui.faces.DataProviderPropertyResolver.getType(DataProviderPropertyResolver.java:264)
         at com.sun.jsfcl.data.ResultSetPropertyResolver.getType(ResultSetPropertyResolver.java:141)
         at com.sun.rave.jsfsupp.container.DesignTimePropertyResolver.getType(DesignTimePropertyResolver.java:169)
         at com.sun.faces.el.impl.ArraySuffix.getType(ArraySuffix.java:240)
         at com.sun.faces.el.impl.ComplexValue.getType(ComplexValue.java:208)
         at com.sun.faces.el.ValueBindingImpl.getType(ValueBindingImpl.java:350)
         at com.sun.rave.web.ui.renderer.ValueHolderDesignTimeRenderer.encodeBegin(ValueHolderDesignTimeRenderer.java:59)
         at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)Nevertheless - when I deploy my application, the locales are processed correctly.
    What am I doing wrong?

  • How do I deal with a Java method which returns a class object?

    Hi, I am using JNI to talk to some Java code from c++;
    I have a java method in class B that is defined as
    class B{
    A[] As;
    A getA(int i){
    return As(i);
    where A is one of my classes.
    I would like to know the code to deal with a returned object of type A and then how to access the variables in A from c++.
    I have defined my method pointer as :
    env->GetMethodID(B, "getA", "(I)A;");and have the jclass object of type A.
    Would I do something like jclass A_CLASS = env->FindClass("A");
    jobject A_OBJECT = (A_CLASS)env->CallObjectMethod(B,getA, i) ; If so, how do I then access the fields in A_OBJECT? Please let me know, thanks.

    ilganeli wrote:
    Thanks but this doesn't really help. I know how this is done in Java (see below).Presumably you also understand how that code will fail. At least based on what you have posted here.
    I do not understand the syntax to do the equivalent thing in JNI, specifically, how to cast the returned object from the CallObjectMethod function to be of the appropriate type, namely A, and then how to access those fields. You don't cast it. Didn't do so in your java code either.
    But you define how you are going to attempt to access any object in JNI. If you mess up it fails.

  • Tip of the week: How to get started with the Admin Console

    Good e-discovery practices are becoming a higher priority for companies everywhere. With the proliferation of cloud services, social networks, and mobile devices used by employees, electronically stored information (ESI) lives in more places than ever before. Add to that the growing threat of data breaches, and you have a real need for industry leaders who can share their best practices.RecentlyGuidance Softwareconducted its annual e-discovery survey, and they’re holding a webinar in which leading security and e-discovery experts will weigh in on the survey’s findings. On the survey panel is Dropbox Head of Trust and Security Patrick Heim, formerly chief trust officer at Salesforce, and CISO at Kaiser Permanente and McKesson. He’ll be joined by Scott A. Carlson of law firm Seyfarth Shaw, Chris Dale of the eDisclosure Information...
    This topic first appeared in the Spiceworks Community

    awesome, thank you!

  • I'm using Firefox Ver 3.6.10 with updated Java console ver 6.0.22. After the updating, firefox doesn't allow pop up window anymore. Please advise.

    I also face this problem in previous Firefox version but after updated to newer release, the problem disappeared until new Java console updates again.
    The Pop up does not come out at all.
    I have tried restart Firefox but when restarting, a message pop up and tell me that another Firefox is running and after I check into my Task Manager, the Task Manager shows that there is another Firefox is still running.

    You can uninstall (remove) the Java Console extensions and disable the Java Quick Starter extension, you do not need them to run Java applets.
    See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    See also "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * [[Firefox hangs]]

  • Remembering the proxy id/password with the Java Console

    I am running IE 6 and the Java 2 Runtime environment (v1.4.1_01). I am behind a company firewall and require a login/pasword to authenticate to the proxy (in order to surf the internet). When I connect to a site that is java enabled, the java console pops up asking for the same credentials. Is there anyway to remember these credentials so that I can bypass this popup?

    The proxy configuration page has a check box for "Use Browser Settings". Alternatively, you can manually enter proxy information in the plug in.
    Here's the problem.. Either way, there is no option to save the username and password for the proxy. This is very annoying for those of us behind corporate proxy servers.
    In Firefox, I can save my proxy username and password so that I don't have to enter it every time. But, whenever a site comes up that uses the java plug-in, I have to MANUALLY enter my proxy username and password for java. Very annoying.

  • How to implement Table with Common Cell Section

    Hi,
    I have requirement of displaying mulltiple rows in single column cell for certain columns in each row of Table.
    This has to be a read only table, with alternate design support in 7.02
    The Data Source contains all the elements to display in table as seperate columns (Data1..Data7).
    I have checked at Grouped Column design, its bit different from grouped column.
    Header1     |  Header2 | Header 3  | Header 5 | Header 7
                                     | Header 4  | Header 6 |
    Row-Data1 |     Data 2 | Data3      | Data 5     | Data 7
                                     | Data4      |  Data 6    |
    Row-Data2 |    Data22 | Data33     | Data55    | Data77   
                                        Data 44   |  Data 66  |
    Please let me know, if you have any idea of achieving this form of table in WD Java..

    Hi,
    I don't know how to do this with WD Java Table UI element, and you could build simple html table using webwidget UI element but that is not available on 702 as far as I know, plus this case the filtering, sorting and other features have to be done also manually using your own algorithm.
    Here is what I just built on 730 using WebWidgets:
    I checked also the grouped column, but that worked only for the header of the column, and behaved like colspan, while what you need is probably rather like rowspan.
    I know it is not a big help, maybe someone else knows how to do this with Table UI (if it is even possible).
    Still, perhaps someone else is interested who is using a higher release like 730.
    I created a webwidget UI element and bound to its "html" property a string context element that I called "widgethtml".
    After this I added this code to the wdDoModifyView() hook method:
    StringBuilder sb = new StringBuilder();
    sb.append("<html><head>")
      .append("<style type=\"text/css\">")
      .append(".AlternateTable{width:100%; border-collapse:collapse;}")
      .append(".AlternateTable td ,th{padding:7px; border:black 1px solid;}")
      .append(".AlternateTable tr:nth-child(n){ background: #9BBB58;}")
      .append(".AlternateTable tr:nth-child(n+3){ background: #E9EEF4;}")
      .append(".AlternateTable tr:nth-child(n+5){ background: #558ED5;}")
      .append("</style>")
      .append("</head>")
      .append("<body>")
      .append("<table class=\"AlternateTable\">")
      .append("<tr>")
      .append("<th rowspan=\"2\">Header1</th>")
      .append("<th rowspan=\"2\">Header2</th>")
      .append("<th>Header3</th>")
      .append("<th rowspan=\"2\">Header5</th>")
      .append("</tr>")
      .append("<tr>")
      .append("<th>Header4</th>")
      .append("</tr>")
      .append("<tr>")
      .append("<td rowspan=\"2\">Data1</td>")
      .append("<td rowspan=\"2\">Data2</td>")
      .append("<td>Data3</td>")
      .append("<td rowspan=\"2\">Data5</td>")
      .append("</tr>")
      .append("<tr>")
      .append("<td>Data4</td>")
      .append("</tr>")
      .append("<tr>")
      .append("<td rowspan=\"2\">Data11</td>")
      .append("<td rowspan=\"2\">Data22</td>")
      .append("<td>Data33</td>")
      .append("<td rowspan=\"2\">Data55</td>")
      .append("</tr>")
      .append("<tr>")
      .append("<td>Data44</td>")
      .append("</tr>")
      .append("</table>")
      .append("</body></html>");
      wdContext.currentContextElement().setWidgethtml(sb.toString());
    Cheers,
    Ervin

  • How do I start with a circular blank space to be filled with text/pic?

    How do I start with a circular blank space to be filled with text/pic? All info I can find relates to rectangular shapes.Max

    Many thanks
    Max Emmons
    Date: Sat, 8 Jun 2013 09:30:22 -0700
    From: [email protected]
    To: [email protected]
    Subject: How do I start with a circular blank space to be filled with text/pic?
        Re: How do I start with a circular blank space to be filled with text/pic?
        created by hatstead in Photoshop Elements - View the full discussion
    Max,
    Open your picture fileAccess the cookie cutter tool in the toolbox. On the tool's option bar, click on the fly-out for the crop shapes. Select the circular shape (it's all black). Hold down the shift key on the keyboard and drag out the circle to embrace what you wish to retain. You can drag the circle to adjust further, then crop.
    To add text, get the type tool and type the text. This will be on a separate layer. Note that there are areas of transparency (checkerboard pattern) outside the circlular area.
    Use the Paintbucket tool to fill these areas. The tool uses the foreground color.
    Another option would be to place a layer below the circle layer and fill it with a pattern or whatever you want.
    Feel free to repost if this is not clear.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5390309#5390309
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5390309#5390309
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5390309#5390309. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Passing arguments with spaces through to asc.jar

    According to the docs, we can pass arguments through to llc using -fllvm-llc-opt.  Additionally, with llc we can pass arguments through to asc.jar using -ascopt.  Let's say I want to define an AS3 variable in my flascc swf/swc.  asc.jar says that I can do this using "-config <ns::name=value>".
    So it seems like I should be able to do this:
    gcc ... -fllvm-llc-opt=-ascopt=-config CONFIG::RELEASE=true
    But this doesn't work, as the "-config" parameter takes its next argument via a space and not an equals, which throws the whole thing off.  gcc thinks its another argument.  Trying it with spaces like this:
    gcc ... "-fllvm-llc-opt=-ascopt=-config CONFIG::RELEASE=true"
    also doesn't work.  The toolchain outputs:
    Error:
    LLVM ERROR: Failed to run /usr/bin/java with args:
    -Xmx1500M -jar /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/asc2.jar -merge -md -abcfuture -AS3
    -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/builtin.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/playerglobal.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/BinaryData.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/Exit.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/LongJmp.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/ISpecialFile.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/IBackingStore.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/InMemoryBackingStore.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/IVFS.abc -import /Users/asimmons/FlasCC_1.0/sdk/usr/bin/../../usr/lib/CModule.abc
    -config CONFIG::RELEASE=false -d /var/folders/cn/hjz9nbt53bdfpn1rzn6wdb900000gr/T//ccQPoczK.lto.2.as /var/folders/cn/hjz9nbt53bdfpn1rzn6wdb900000gr/T//ccZDGxMF.lto.1.as -outdir . -out output
    As you can see, the "-config" command made it to asc.jar.  What I think is happening is that its being passed to asc.jar as one argument (not two).  For example, I can copy-paste this command into bash and it will work-- just not when done from gcc.
    So: how do I pass arguments with spaces through to asc.jar?

    I believe you should be able to do this by splitting it across two fllvm-llc-opt flags:
    gcc ... -fllvm-llc-opt=-ascopt=-config -fllvm-llc-opt=-ascopt=CONFIG::release=true
    The Makefile in the 12_Stage3D sample that ships with the FlasCC SDK demonstrates this.

  • How do I get more space to update my iPhone 4 to iOS7? I am currently on iOS 6.1.3 with 6.3 GB capacity, 1.4 GB available AFTER deleting all apps, photos, music, and videos, and I need 3.8 GB.

    How do I get more space to update my iPhone 4 to iOS7? I am currently on iOS 6.1.3 with 6.3 GB capacity, 1.4 GB available AFTER deleting all apps, photos, music, and videos, and I need 3.8 GB.

    Update using iTunes on your computer. The space requirement does not apply because of how the process works via iTunes as opposed to over the air.

  • I updated to IOS 8 but my C drive is out of space i couldn't restore my data back; how could move itunes with backup to another drive

    I updated to IOS 8 but my C drive is out of space i couldn't restore my data back; how could move itunes with backup to another drive
    or what could i do

    There are two solutions . . . I run my iTunes Library off an external hard drive. However, this may limit the portability of your library. Though a La Cie Rugged external would help with that (I love mine, though I use it for diagnostics and repair, not for iTunes--but it does get around).
    You can also upgrade your hard drive as was previously suggested. I've bought my recent hardware from: http://www.powerbookmedic.com
    They have lots of parts and great manuals!
    Good luck!
    Sharon

  • Iphoto 9.6.1 how do I leave pix space blank, filled in with background color

    I'm making a photo book using iPhoto 9.6.1  How do I leave pix space blank, filled in with background color?   I want half the page taken up with a picture and the other half colored in.

    There's actually an option to iPhoto Library Manager that makes this all almost work flawlessly (and work well enough for me). With the exception of Photo Albums that the pictures are part of, if you select "Library > Rebuild Library..." and then select "Scavange Orphaned Photos" check box, then it will put all the Photos and Movies into the "Scavanged Photos" album. It matches the modified pictures to their originals. It preserves all the event names and photo groupings. All the meta-data I could spot check it got right (although with 44k pictures, I only checked a few). If you fail to select this option, however, it will find no pictures at all when it goes to rebuild the library (this was true of the small test libraries I tried as well as the big, monster 280GB library I just finished converting). The conversion process took 5 hours to run, but in the end produced a library my new iPhoto can read and that I can interact with. I'll be suggesting to the iPhoto Library Manager folks a notation that would estimate the number of Orphaned Photos and display that number as a hint to the user that the option would be useful.
    Edited: Thanks to Old Toad and LarryHN for their help in finding which of the many options to transition this library to 9.5.1 I needed to use. Sorry if I took my frustration of the past several months out on you guys for generously trying to help me.

Maybe you are looking for