The string version of a scanner.nextInt

is it possible to use a scanner.nextInt for string's?
I want to filter out a lettercode
input :
23 54 64 34 23 VV
If this is the input, than i want my program to know that there is a VV in it.
Hopefully you understand what I mean.

So, here's some more to the program.
First of all, I introduced accessor specifiers, public, private. There's another one, protected - and a 'hidden' one, package private. You may want to read about accessors. Find info in the Java tutorial, especially
http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html
Now, I also generalized the amount of tokens expected from the user. You are now free of the restriction that the user must enter exactly four tokens. You'll also see an if condition that aborts the demo() method if no value has been entered. All this is a better programming practice, because it makes your program more robust against unexpected input. Robustness is an important criterion in programming.
I leave you with the improved version. Keep learning, and don't hesitate to ask further question! Thanks for dropping by.
--------------------- New version -------------------------
package p3;
import java.util.Scanner;
public class Testfile
    Scanner scanner;
    String  data;
    String  lettercode;
    int     newvalue;
    int     sum;
    public static void main (String [] args)
        new Testfile ().demo ();
    private void demo ()
        int nTokens         = 0;
        int iTokenChoice    = 0;
        // Get data from user
        System.out.println ("enter your data");
        Scanner scanner = new Scanner (System.in);
        String entireInput = scanner.nextLine ();
        // Extract tokens. Last token must be one of three possibilities,
        // "AA", "BB" or "CC"
        String [] tokens = entireInput.split (" ");
        nTokens          = tokens.length;
        if (nTokens >= 1)
            iTokenChoice     = nTokens - 1;
            String letterCode = tokens [3];
            if ("AA".equals (letterCode))
                programA (tokens);
            else if ("BB".equals (letterCode))
                programB (tokens);
            else
                programC (tokens);
    private void programA (String [] tokens)
        sum = GetSum (tokens);
        System.out.println ("The sum calculated by programA is " + sum);
    private void programB (String [] tokens)
    private void programC (String [] tokens)
    private int GetSum (String [] tokens)
        int     iToken      = 0;
        int     nTokens     = 0;
        String  temp        = null;
        int     ti          = 0;
        int     ret         = 0;
        nTokens = tokens.length - 1;
        ret     = 0;
        if (nTokens >= 1)
            for (iToken = 0; iToken < nTokens; iToken ++)
                temp    = tokens [iToken];
                ti      = Integer.parseInt (temp);
                ret     = ret + ti;
        return ret;
}Here's the output from a few example sessions:
Run 1. Just hit ENTER
enter your data
Run 2.: Entered no value, then AA
enter your data
AA
The sum calculated by programA is 0
Run 3.: Entered 1 value, then AA
enter your data
1 AA
The sum calculated by programA is 1
Run 4.: Entered 2 values, then AA
enter your data
1 34 AA
The sum calculated by programA is 35
While with the old version I got a java.lang.ArrayIndexOutOfBoundsException, if I entered not enough values or programC would have always executed if I entered too many values:
enter your data
1 2 AA
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
     at p3.Testfile.demo(Testfile.java:39)
     at p3.Testfile.main(Testfile.java:19)
Now a question for you to think about:
In the GetSum method I wrote the statement:
nTokens = tokens.length - 1;What would happen if I had written:
nTokens = tokens.length;Try and test!

Similar Messages

  • Scanner, nextInt() -- what if somebody enters a string?

    How can i detect if the user enters a string? When somebody enters a string it causes some errors.
    my code.
    int iVar = input.nextInt();
    if (iVar == 1)
              System.out.println("option 1");
    else if (iVar == 2)
              System.out.println("option 2");
    else if (iVar == 3)
              System.out.println("option 3");
    else if (iVar == 4)
              System.out.println("option 4");
    else // any integer
              System.out.println("wrong");
    }if i entered a string, it causes an error
    Exception in thread "main" java.util.InputMismatchException
    at java.util.Scanner.throwFor(Scanner.java:819)
    at java.util.Scanner.next(Scanner.java:1431)
    at java.util.Scanner.nextInt(Scanner.java:2040)
    at java.util.Scanner.nextInt(Scanner.java:2000)
    at compro1_nested_if_else_statement.main(nested_if_else_statement.java:32)
    How will i detect that? for numbers (int) it is working fine.

    something like this has worked for me:
            System.out.print("Please enter a number: ");
            while (!input.hasNextInt())
                input.nextLine();
                System.out.println("Please enter only Integer input");
            int iVar = input.nextInt();

  • Workflow manager 1.0 : runtime error 400 running Add-WFHost "The api-version in the query string is not supported"

    Installing Workflow Manager 1.0 for SharePoint Server 2013 SP1 everything is fine until the last step of the configuration and last powershell command : 
    Add-WFHost -WFFarmDBConnectionString 'myconnectionstring' -RunAsPassword $WFRunAsPassword -EnableFirewallRules $true -SBClientConfiguration $SBClientConfiguration -CertificateAutoGenerationKey $WFCertAutoGenerationKey -Verbose;
    gives me the following error : 
    Add-WFHost : The remote server returned an error: (400) Bad Request. The api-version in the query string is not supported. Either remove it from the Uri or use one of '2012-03'..TrackingId:412684e3-3539-468e-91e6-17838c6eaa55_GS
    P,TimeStamp:04/04/2014 12:54:11
    At line:1 char:1
    Can't find anything about this subject except this
    thread which does not help me that much in SharePoint dev env ...
    Removing workflow manager 1.0 and service bus (leave the farm using wizzard, remove binaries and databases) does not help.
    Who already faces this issue and how can I try to resolve it ?
    Best regards !
    Alexandre DAVID

    The API version is hardcoded in Microsoft.ServiceBus.dll, which ships as part of the Service Bus. Each version of this lib has a different string.
    If you install workflow manager 1.0, here are the pre-requisites:
    .NET Framework 4 Platform Update 3 or .NET Framework 4.5
    Service Bus 1.0
    Workflow Client 1.0
    PowerShell 3.0
    The following are the pre-requisites to configure Workflow Manager 1.0
    Instance of SQL Server 2008 R2 SP1, SQL Server Express 2008 R2 SP1, or SQL Server 2012.
    TCP/IP connections or named pipes must be configured in SQL Server.
    Windows Firewall must be enabled. [Windows Firewall is Off on target server]
    Ports 12290 and 12291 must be available.
    Here are the reference for installing and configuring Workflow Manager 1.0:
    http://lennytech.wordpress.com/2013/06/02/installing-workflow-manager-1-0/
    http://lennytech.wordpress.com/2013/06/02/configuring-workflow-manager-1-0/
    http://social.technet.microsoft.com/Forums/en-US/c74507fb-ac2d-405f-b19c-2712b1055708/workflow-manager-10-configuration-service-bus-for-windows-server-the-api-version-is-not?forum=sharepointadmin

  • HT3529 New 7.0 version update changes the way text messages are presented.  In the new version, I cannot figure out how to delete individual texts.  I can delete entire strings of messages, but I want to delete old texts, but keep the recent texts

    The new version of the software for my iPhone 4 changed the way text messages are managed. 
    I can no longer delete individual texts from a text "conversation."  I also have not figured out how to forward texts, which I was able to do in the prior version.
    Anyone know a way to edit out individual messages without losing the entire string?
    Anyone know if there is a way to forward messages?

    When you have the conversation open, if you tap & hold on a message bubble, you should get a new menu pop-up.  It should have 2 options "Copy" and "More..."  If you select the "More..." option it will then let you select one or more message bubbles and delete the selected ones by hitting the trach can icon in the lower left corner.  As for forwarding, you probably just select the "Copy" option, then paste the contents into a new message...

  • I just bought a ScanSnap scanner and it came with Adobe Acrobat Standard for Windows - but I have a Mac - can I get the Mac version?

    I just bought a ScanSnap scanner and it came with Adobe Acrobat Standard for Windows - but I have a Mac - can I get the Mac version?

    Hi Dcee3,
    Acrobat Standard has not been developed for Mac platform so Mac version is not available. It can only run on windows machine.
    Regards,
    Anand

  • I have a password manager built into my fingerprint scanner. It worked on the older version of Firefox but it will not on this new version. It will not recognize log in pages and will not load information.

    With the old version, all I had to do was go to the log in page to any of my email accounts or membership sites and scan my finger. It would fill in the fields and open my account. I like this new version of Firefox, but if I am not able to use that password manager then I will have to install the older version.

    A 2008 black MacBook can run OS X Lion (OS X 10.7). However, if you want to use that Mac for apps that do not work with the new MacBook, I recommend you to leave it with Mac OS X 10.6.8, because OS X Lion removes compatibility with PowerPC apps.
    Do not worry about the battery of the new MacBook Pro. You can replace it yourself or take it to an Apple Store or reseller, and the cost is similar. However, it's important to take the Mac to an Apple Store or reseller if your Mac's battery fails while the Mac is in warranty, because you will get the battery replaced for free.

  • I have an HP Laptop. It has a fingerprint scanner for sign in and passwords. I just updated to the newest version of firefox, and my fingerprint scanner won't come up on websites.

    I am running an HP Pavilion dv7 Notebook PC, Windows 7 Home Premium, with an HP SimplePass for security and password storage. With the previous Firefox, when I would open a website that had sign in and password information, the fingerprint icon would come up in the top left hand side, and I could swipe my finger and it automatically entered the information. When I recently updated to the latest version of firefox, this option is no longer available. Any help would be greatly appreciated.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on anoterh computer to help determine if you have an iPod or computer problem.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar

  • My virus scanner warns it is not compatible with the latest version of firefox, so i deinstalled firefox, It is trendmicro. I would like to have an earlier firefox version back, but were can i find it

    I upgraded FireFox. My virusscanner TrendMicro complained it was nog compatible with this version.
    So I desinstalled FireFox.
    Do you know a solution?
    Otherwise I would like to have an earlier version of FireFox, but where can I download it? I don't see a link at your site
    thanx Yrram

    Hey yrram,
    There are a lot of benefits to running the latest version of Firefox. You might want to consider running the older version on [http://portableapps.com/apps/internet/firefox_portable/localization#legacy36 a USB Stick with PortableApps]. That way you'll still be able to run the latest version for your day to day activities. You could also try the workaround in [https://support.mozilla.org/en-US/kb/websites-incorrectly-report-firefox-outdated-or-in this article].
    If you still want to roll back to a previous version of Firefox, just take a look at the Knowledge Base article [[Installing a previous version of Firefox]].
    Hopefully this helps!

  • No matter how many times I try to upgrade or reinstall, it always installs an older version that allows pop ups and viruses to keep coming back. How do I upgrade to the latest version of firefox if it only somehow always restores the previous version?

    No matter what I do, I cannot upgrade firefox, and as a result, almost every site I go on that no longer supports my browser keeps telling me to upgrade, and I keep getting back unwanted viruses. Each time I try to reinstall or upgrade firefox, all it does continuously is reinstall the old version I had previously.
    == This happened ==
    Every time Firefox opened
    == Firefox Upgraded Their Browsers

    Your UserAgent string in Firefox is messed up by another program that you installed, and those websites don't know you are running Firefox 3.6.3 (which is what you do have installed).
    [http://en.wikipedia.org/wiki/User_Agent]
    type '''about:config''' in the URL bar and hit Enter
    ''If you see the warning, you can confirm that you want to access that page.''
    Filter = '''general.useragent.'''
    Right-click the preferences that are '''bold''', one line at a time, and select '''''Reset''''',
    Then restart Firefox

  • Problem with Mappings in the new Version of NWDS

    Hello all,
    i have a process which created in the NWDS (Version: SAP Enhancement Package 1 for SAP NetWeaver 7.1 SP00 PAT0000) checked in the CVS.
    Now i have the process checked out of the CVS in the new Version of NWDS (Version: SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.1 SP01 PAT0003).
    The process contains a automated activity and on the output mapping from the webservice is now n error. The Error: "Expected 'com.sap.dictionary.string,ns=.... Found list of 'char10,ns=..." I´ve changed nothing and the input mapping and the other mappings are all right. I checked out again the same process in the "old" Version of NWDS and it works fine.
    Knows somebody how i can "import" n process from an older Version of NWDS into the new Version?
    Kind regards,
    Bastian

    Hi Bastian,
                   The problem you are facing is a trivial problem. You need not worry about the importing the whole development component again. Rather your mapping error can be removed by changing the context in webdynpro perspective easily.
    Your error is telling that the automated activity requires a string paramenter and what it has found is a list of parameters.
    What this means is in the Webdynpro context, the mapping which you have done has problems.
    The webservice input requires a singleton parameter. If you look into the mapping view, you will notice a single icon for the node which you are mapping.
    And what you are sending is a list (not a singletion node)
    If you see from the left side from where the parameters is coming in you will notice multiple icons (stack on top of each other) representing non singleton nodes ie cardinatlity is 0...n or 1..n)
    So to remove the problem just go to component controller of the view and change the context setting
    Colletion cardinality of 0..1 or 1..1 and selection cardinality to 0..1 or 1..1 of the node.
    Thnks

  • Firefox crashes when I load any youtube video on the latest version, it not only crashes firefox but my whole computer goes blank and I have to restart, why is this?

    Backstory: There are two possible events that could be causing this
    1: At some point I may have followed a ''Tinyurl' link that consquently lead me to a youtube video, to which youtube worked perfectly fine before hand, and this is where i witnessed the first crash. Theories into whether this link, previously stated, may have done something to my system have been thought about, but the fact that youtube still works on the latest Microsoft Internet Explorer seems to present the idea of a virus or an error redundant. I own the latest Macfee antivirus software and Ccleaner(running the registry check) and have run them complete with disc defragment and scan disc error recovery along with an additional malware scanner. Nothing seems to have come up on anything. After doing all this, my last resort was System restore and this seemed to solve the problem, mainly because i had an earlier version of firefox. therefore i resisted updating for aslong as possible whenever it told me to update. but the otherday i thought i'd risk it again thinking it may have been a problem alot of people have been having and it would of been fixed, but sadly it hasn't. this lead me to google the problem and was advised to start firefox on 'safe mode' as there may have been a confliction between add ons or plugins with youtube or some thing like that, but sadly that hasn't worked either. The plugins i had installed with it were the ones firefox has told me to get, or recommended and the only two addons i had on firefox was Adblock plus (fanboy subscrip) and Noscript.
    Details of what actually happens: go to a youtube link, video loads for about 2 seconds(both video and audio), screen freezes, and flashes maybe once with some small lines across the bottom half of the screen horizontally towards the right corner, then the screen goes blank and makes my laptop dorment, but still running, thus I restart my system.
    Sadly now when I system restore there isn't a point far back enough before this problem. So its either i downgrade(which seems to be the only option) or simply stop using firefox, as internet explorer works perfectly fine. however running firefox with no scrip and adblock plus is the ideal browser customisation, which is why this is rather annoying.
    so number 1 was the tinyurl theory and i must admit i was abit foolish to follow such a random link, but whats happened has happened.
    2: basically there is a major disfunction with the latest firefox that has to with the addons i have included onto firefox and this seems to be causing a terrible effect on my system.
    in a nutshell: firefox worked perfectly before upgrading to the new firefox and before i followed this link, the rest of my system is completely normal and virus and error free or so it says, Other browsers seem to work also. safe mode does not cure the problem.
    Running on a customised Dell laptop, which is pretty midrange-toprange and hasn't been active long, so it has the general HD video card thats included in all Studio 15 Dell laptops.
    any help appreciated.
    cheers.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDC; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; Creative AutoUpdate v1.40.02; AskTbMYC-SRS/5.7.1.11118)

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • I am in the process of expanding a database of chemistry journal articles.  These materials are ideally acquired in two formats when both are available-- PDF and HTML.  To oversimplify, PDFs are for the user to read, and derivatives of the HTML versions a

    I am in the process of expanding a database of chemistry journal articles.  These materials are ideally acquired in two formats when both are available-- PDF and HTML.  To oversimplify, PDFs are for the user to read, and derivatives of the HTML versions are for the computer to read.  Both formats are, of course, readily recognized and indexed by Spotlight.  Journal articles have two essential components with regards to a database:  the topical content of the article itself, and the cited references to other scientific literature.  While a PDF merely lists these references, the HTML version has, in addition, links to the cited items.  Each link URL contains the digital object identifier (doi) for the item it points to. A doi is a unique string that points to one and only one object, and can be quite useful if rendered in a manner that enables indexing by Spotlight.  Embedded URL's are, of course, ignored by Spotlight.  As a result, HTML-formatted articles must be processed so that URL's are openly displayed as readable text before Spotlight will recognize them.  Conversion to DOC format using MS Word, followed by conversion to RTF using Text Edit accomplishes this, but is quite labor intensive.
      In the last few months, I have added about 3,500 articles to this collection, which means that any procedure for rendering URL's must be automated and able to process large batches of documents with minimal user oversight.  This procedure needs to generate a separate file for each HTML document processed. Trials using Automator's "Get Specified Finder Items" and "Get Selected Finder Items", as well as "Ask For Finder Items"  (along with "Get URLs From Web Pages") give unsatisfactory results.  When provided with multiple input documents, these three commands generate output in which the URLs from multiple input items are merged into a single block, which yields a single file using "Create New Word Document" as the subsequent step.  A one-to-one, input file to output file result can be obtained by processing one file at a time, but this requires manual selection of each item and one-at-a-time processing. What I need is a command that accepts multiple input documents, but processes them one at a time, generating a separate output for each file processed.  Is there a way for Automator to do this?

    Hi,
    With the project all done, i'm preparing for the presentation. Managed to get my hands on a HD beamer for the night (Epason TW2000) and planning to do the presentation in HD.
    That of course managed to bring up some problems. I posted a thread which i'll repost here . Sorry for the repost, i normally do not intend to do this, but since this thread is actually about the same thing, i'd like to ask the same question to you. The end version is in AfterEffects, but that actually doesn't alter the question. It's about export:
    "I want to export my AE project of approx 30 min containing several HD files to a Blu Ray disc. The end goal is to project the video in HD quality using the Epson  EMP-TW2000 projector. This projector is HD compatible.
    To project the video I need to connect the beamer to a computer capable of playing a heavy HD file (1), OR burn the project to a BRD (2) and play it using a BRplayer.
    I prefer option 2, so my question is: which would be the preferred export preset?
    Project specs:
                        - 1920x1080 sq pix  (16:9)
                        - 25 fps
                        - my imported video files (Prem.Pro sequences) are also 25 fps and are Progressive (!)
    To export to a BRD compatible format, do i not encounter a big problem: my projectfiles are 25 fps and progressive, and I believe that the only Bluray preset dispaying 1920x1080 with 25 fps requests an INTERLACED video  (I viewed the presets found on this forum, this thread)... There is also a Progr. format, BUT then you need 30 fps (29,...).
    So, is there one dimension that can be changed without changing the content of the video, and if yes which one (either the interlacing or the fps).
    I'm not very familiar with the whole Blu-ray thing, I hope that someone can help me out."
    Please give it a look.
    Thanks,
    Jef

  • I upgraded my Itunes to the latest version and now it won't let me view my library with the column browser. Can i get that back?

    i upgraded my Itunes to the latest version and now it won't let me view my library with the column browser. Can i get that back? I tried using the shortcut for it and nothing happens. When I try to do it from the view menu, it shows up as something I can't click on. The new library format is driving me crazy and I just want to get back to the old library view.

    We need to sort out some facts here first:
    •  You cannot be running Mt. Lion on your iMac G5.  What Mac is it?  What is the Model Identifier listed in About This Mac; More Info; Hardware Overview
    •  What is the model of your Epson Scanner?
    •  Have you attempted to scan using Image Capture, located in your Applications folder?
    •  Your Palm Pilot software will only run in Snow Leopard; so depending upon which Mac you have, you will either have to:
    1)  partition your hard drive or add an external hard drive and install Snow Leopard into it to "dual-boot" when you want to access you Palm software, or
    2)  install Snow Leopard Server (now available from Apple for $20 telephone orders USA & Canda only) into Parallels 8 to run your Palm software in Mt. Lion:
                                  [click on image to enlarge]

  • Why did Firefox "upgrade" me to a version of Firefox that is incompatible with the new version? Where do I find the previous version and reload it??ne

    I have an iMac OS version 10.4. Mozilla automatically upgraded me to the new version of Firefox EVEN THOUGH the computer should have "told" it that it wasn't compatible. I'm getting that message when I try to download Firefox from the web site today. (I've had to do that before when one of the ever-so-helpful reinstalls crashed and burned repeatedly) So, now all I get is crash reporter when I try to use Firefox.
    Where do I go to download and reinstall the previous version AND also PREVENT Mozilla from being ever so helpful in the future?
    Major glitch in the Mozilla process if you force users to "upgrade" and then it's broken. It's not an upgrade if you create problems for the user. That's very, very poor planning and service.
    I'll be writing more about this in a blog post at www.maryschmidt.com.

    Is this the HP Simplepass application? If it is EgisTec, who now provide the HP Simplepass application, have made an update of the scanner software for Firefox 4, for details see https://support.mozilla.com/questions/814397

  • How to check the verity version in our PeopleSoft Installation?

    How to check the verity version in our PeopleSoft Installation? I am not sure if the verity is installed or not and also if installed what is the version?

    yes. it says the version is 5.0.1
    Is there any difference in installation or configuration when the app and web server are in same machine and when the app and web server are installed in different servers?
    ============================================
    D:\fs840\webserv\peoplesoft>mkvdk
    mkvdk - Verity, Inc. Version 5.0.1 (_nti40, Jul 23 2004)
    Usage: mkvdk [<option>...] <filespec>...
    Where <option> can be a VDK switch, or any of:
    -about Show the collection's about resources
    -autodel Delete bulk insert file when no longer needed
    -backup <dir> Specify collection backup location
    -bulk Submit bulk insert file(s)
    -charmap <name> Specify the character map to VDK
    -collection <path> Specify the collection (required)
    -create Create the collection
    -credentials <user> Specify user[:passwd][:domain][:mailbox]
    -datapath <path> Specify VDK datapath
    -datefmt <fmt> Specify date format to VDK
    -debug Enable debugging output
    -delete Delete documents
    -description <desc> Set the collection's description
    -diskcache <num> Set VDK's disk cache size (kbytes)
    -extract Extract field values from text
    -help Print this usage information
    -insert Insert documents (default)
    -locale <locale> Specify the locale to VDK
    -logfile <file> Save output in a log file
    -loglevel <num> Set the VDK output level for the log
    -mailboxes This option is depracated. Use the credentials option inste
    ad
    -maxfiles <num> Set VDK's maximum number of open files
    -maxmemory <num> Set VDK's maximum memory usage (kbytes)
    -mode <mode> Set the indexing mode
    -modify Modify fields using field/value pairs from a bulkfile
    -nohousekeep Disable housekeeping
    -noindex Disable indexing
    -nolock Turns off locking (dangerous)
    -nooptimize Disable optimizations
    -nosave Don't save collection work list
    -noservice Prevents servicing of submitted work
    -nosubmit Don't submit work to VDK
    -numdocs <num> Number of documents to insert from bulk insert file(s)
    -numpages <num> Synonym for diskcache for backward compatibility
    -offset <num> Specify offset into bulk insert file(s)
    -online Flag for online Bulk Modify
    -optimize <spec> Optimize the collection
    -outlevel <num> Set the VDK output level
    -persist Service the collection forever
    -purge Remove all documents from collection
    -purgeback Purge in the background
    -purgewait <secs> Specify delay before purge
    -quiet Suppress all non-error messages
    -repair Repair the collection
    -servlev <spec> Advanced option for overriding service level
    -sleeptime <secs> Interval between service calls for persist
    -style <dir> Specify style directory for create
    -submit Synonym for noservice for backward compatibility
    -synch Perform work synchronously
    -topicset <path> Specify VDK topic set
    -update Update documents
    -vdkhome <path> Specify VDK home
    -verbose Output more information
    -words Build word assist list
    -wordindex Build word assist index
    The <spec> for -optimize is a hyphenated string of:
    maxmerge Perform maximal merging of partitions
    squeeze Recover space from deleted documents
    vdbopt Build optimized VDB's
    spanword Create word list spanning all partitions
    ngramindex Create ngram index into spanning word list
    maxclean Really clean (not for read-write)
    readonly Make the collection read-only
    tuneup Fully optimize for read-write use
    publish Fully optimize for read-only use
    The <spec> for -servlev is a hyphenated string of:
    search Enable search and retrieval
    insert Enable adding and updating documents
    optimize Enable opportunistic collection optimization
    assist Enable building of word list
    housekeep Enable housekeeping of unneeded files
    delete Enable document deletion
    backup Enable backup
    purge Enable background purging
    repair Enable collection repair
    dataprep Same as search-index-optimize-assist-housekeep
    index Same as insert-delete
    Error: must specify collection
    mkvdk done
    D:\fs840\webserv\peoplesoft>

Maybe you are looking for

  • CONVT_NO_NUMBER Unable to interpret "*0" as a number.

    Hi gurus, I am encountering this dump while running a report in background. The report takes process order numbers as input and updates a Z-Table accordingly. However, this dump occurs only when the report is run in background. When run in foreground

  • Multiple programs crashing wSegmentation fault in __lll_unlock_elision

    Hi, Recently I've noticed different programs crashing with Segmentation fault in __lll_unlock_elision from /usr/lib/libpthread.so.0 It has happened in chromium, vlc, gtk-query-immodules-2.0 and others. Has anyone else had this issue? I'm on xfce, com

  • IIS ARR Question

    Is it possible to publish multiple sites on 443. I have at least two sites that I want to reverse proxy and use port 443 and they use different certificates. OWA and Web Apps.

  • Barcode Fonts not showing in BIP reports in PDF format in Siebel Remote

    Hi, We have successfully setup the PDf report with Barcode fonts in Siebel Web Clinet. Now we are trying to setup the report in Siebel Mobile clinet. We did the following tomake it work in mobile clinet. 1) Copied the font file i.e. .ttf file in C:\W

  • Hello my Camera don't work

    Hello I have a question when I want to start my Camara on my iPohone 4 my screen will be black and the Camera close. Hallo ich habe eine Frage wenn ich meine Kamera starten möchte wird der Display nur schwarz und die Kamera schließt.