Any other alternative for console??

Just wanted to ask if there is any other alternative instead of using console in this program.....
Console c = System.console();
        if (c == null) {
            System.err.println("No console.");
            System.exit(1);
        String enter = c.readLine("Enter your username: ");
        char [] oldPassword = c.readPassword("Enter your old password: ");
......................can i use any other function that is available and has almost the same as console...?

Why? What is wrong with upgrading to 1.6 (which the code is written for and which you were told here: http://forum.java.sun.com/thread.jspa?threadID=5226598)? But, the "Console" stuff added to Java 1.6 come form an earlier third party library (if I remember right). I don't remember which one, but you should be able to Google Java Console API and find it rather it easily.

Similar Messages

  • I've tried everything but can't access iTunes store from my ipad. Apple ID is fine and logged in to iTunes on pc. Still no luck. Anyone any other alternatives? Thx.

    I've tried everything but can't access iTunes store from my ipad. Apple ID is fine and logged in to iTunes on pc. Still no luck. Anyone any other alternatives? Thx.

    You may think you are connected to the internet, but maybe not. Click on Safari and see if it connects.
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
    The Complete Guide to Using the iTunes Store
    http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-using-t he-itunes-store/
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    This works for some users. Not sure why.
    Go to Settings>General>Date and Time> Set Automatically>Off. Set the date ahead by about a year.Then see if you can connect to the store.
     Cheers, Tom

  • Can we writeoff/any other solution for difference amount in group currency?

    Hi All,
    One of the G/L account are getting difference between Local Currency (Co. Code Currency - CAD) and Group Currency (USD) as follows. Our Client wants to clear this amount in Group Currency (USD). Can any one help me out on this?
    Problem description: at month end of february 2008 the Cumulative balance needs to be zero (blank) and it is zero in the local currency (CAD)
    whereas it is showing an odd amount of USD 528 for the same, which we want to get rid of somehow,  to make it show as blank. in USD also for the month end february 2008.
    Hence please suggest any method to write off that balance/ reverse / any other alternative. so that both in USD and CAD it would be blank for month end february 2008
    To view: FS10N  with currency USD and with currency CAD

    Hi Prasad,
    In Logistics Invoice Verification, when you enter an invoice in foreign
    currency, the system automatically translates the foreign currency
    amounts to local currency. The system calculates the exchange rate using
    the following rule:
    1.If the buyer entered a fixed exchange rate in the purchase order, the
    system uses this rate to translate the amounts to local currency.
    2.If an exchange rate was entered in Invoice Verification, the system
    uses this rate to translate the amounts to local currency.
    3.If an exchange rate was entered neither in the purchase order nor in
    Invoice Verification, the system uses the exchange rate pre-defined in
    Customizing for Financial Accounting valid for the posting date.
    Exchange Rate Differences
    If a purchase order is entered in foreign currency,the amounts are
    translated from foreign currency into local currency at goods receipt.
    If you enter the invoice for the purchase order in the foreign currency,
    this can lead to currency translation differences between the goods
    receipt and the invoice receipt.
    How these differences are posted depends on how your system is
    configured in Customizing for Invoice Verification
    Exchange Rate Rounding Differences
    When an invoice is posted in a foreign currency, the amounts are translated into local currency.Since the system rounds off the amounts in each posting line, this can lead to rounding differences due to the currency translation.
    These differences are posted to an expense or income account.
    Addition in transaction OB22 for the second local currency, it should be defined 'Translation taking transaction currency as a basis' is defined.
    Pls. also  refer to note:335608  Trnsln of 2nd and 3rd lcl crcy fm 1st lcl/trns crcy.
    I hope the above information helps you out......
    Best Regards,
    Gladys Xing

  • I lost my administrator password and can not install Mavericks (or any other software for that matter). How can I find my administrator password?

    I lost my administrator password and can not install Mavericks, or any other software for that matter. How can I retrieve an administrator password?

    Forgot Your Account Password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password, OS X Mountain Lion- Reset a login password, and
         OS X Lion- Apple ID can be used to reset your user account password.
    For Snow Leopard and earlier with installer DVD
         Mac OS X 10.6- If you forget your administrator password
    For Snow Leopard and earlier without installer DVD
        How to reset your Mac OS X password without an installer disc | MacYourself

  • Some calendars in iCal appear corrupted but OK on iPhone. If I sync will the calendar data on the phone restore info on the desktop iCal? any other ideas for how to sort this please?

    Some calendars in iCal appear corrupted (ie have red exclamation mark by them) but are still OK on iPhone. If I sync, will the calendar data on the phone restore info on the desktop iCal or will I lose that as well? Or could I back up the calendars on my iPhone somewhere and then import them into iCal? any other ideas for how to sort this please? it's driving me mad. thanks.

    I don't think there will be a solution to this. Exchange 2003 just isn't supported.

  • How do i get itunes or any other program for ipod to play one song and then stop instead of contiuing playing. I need it to be in the same playlist and ready to play the next song when I press play?

    how do i get itunes or any other program for ipod to play one song and then stop instead of contiuing playing. I need it to be in the same playlist and ready to play the next song when I press play?

    Good luck.  I tried to do this to cue sound effects for a theater, and never found anything.  iTunes will definitely *not* do this, nor was I able to find any player that would play one song at a time in a single playlist. 
    In my case, I ended up using AutoHotkey to tie individual tracks to the keys on an external keypad. This was an excellent solution for my problem, but I don't think AHK runs on Macs.
    One workaround is to make a folder, and fill it with *shortcuts* to the songs you want (ie, the actual files).  You can change the names to start with numbers to get them in the right order.  Then if you double-click on one it will play just that song.  You'll still have to double-click on each song.
    Might be a good time to learn AppleScript   It would  also be pretty easy to write a Java app to do this.

  • If we dont want to use sleep/wakeup button for dissconnect the call so there is any other option for dissconnect the call without using sleep/wakeup button in ios 8.1.3. kindly suggest

    if we dont want to use sleep/wakeup button for dissconnect the call so there is any other option for dissconnect the call without using sleep/wakeup button in ios 8.1.3 . kindly suggest..!

    Hello kumar kalptaru, 
    Thank you for participating in the Apple Support Communities. 
    It sounds like you're wondering how to hang up a call besides using the Sleep/Wake button. 
    Other than this, you can tap the red hang up button on the Phone app. See the iPhone User Guide for more help:
    While on a call - iPhone
    End a call. Tap  or press the Sleep/Wake button.
    Best Regards,
    Jeremy 

  • HT1420 i can't seem to get my iPad to synch with my new iMac.  The iTunes prompt says that this computer isn't authorised although i have registered it on iTunes.  Any other ideas for how to overcome this block?

    i can't seem to get my iPad to synch with my new iMac.  The iTunes prompt says that this computer isn't authorised although i have registered it on iTunes.  Any other ideas for how to overcome this block?

    What do you mean by 'registered it on iTunes' ? You've authorised your account on your Mac's iTunes via the Store > Authorise This Computer menu option ? And you've copied your library onto the Mac ?
    Copying content between computers : http://support.apple.com/kb/HT4527
    You may also find this page for syncing to a new computer useful : https://discussions.apple.com/docs/DOC-3141

  • How to I use my Ipad mini with  keynote to project my presentations, do I need any other app for that?I have a lighting to VGA cable already

    How to I use my Ipad mini with  keynote to project my presentations, do I need any other app for that?I have a lighting to VGA cable already

    If you are using Keynote, then no, you would be fine with just the adapter and a cable hooked up to the projector.

  • Is there any other solution for Adobe Flash plugin crashing than the posted one about updating Flash and Mozilla? I cannot open any PDF files online and updated both Mozilla and Flash player to most recent with no change in the crashing.

    I was able to open PDFs online until version 8. Since upgrading to version 9 and now 10, I have crashes every time I try to open a PDF online and can see the form briefly for about two seconds before the plugin crashes. I followed instructions on the solution to update Adobe Flash and Mozilla, and they are both to the most recent version and it still crashes every time, no dent in the symptoms with the upgrades. I tried also downgrading to version 3, and it sill crashes. Although in some cases I can get around by saving the PDFs for reading them through Acrobat on my PC, it is a hassle as I do not want to save everything to my drive just to see what it is, plus sometimes forms are generated on a click and I cannot see these forms at all.
    I had to migrate to Chrome as I needed the PDFs and could not wait any longer - any suggestions to make Mozilla work again would be appreciated.

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode] after enabling only the PDF plugin in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons''' > '''Plugins'''. You can also '''Disable''' the PDF plugin and try an alternative, for eg. [https://addons.mozilla.org/en-US/firefox/addon/pdfjs/?src=cb-dl-created pdf.js]. Please also go through the add-on reviews, ratings, help and FAQ.
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
    [http://support.mozilla.com/en-US/kb/Cannot%20uninstall%20an%20add-on Cannot Uninstall Add-on]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins Troubleshooting Plugins]
    [http://kb.mozillazine.org/Testing_plugins Testing Plugins]

  • Are there any other alternatives to Adobe software? I don't want to buy your products anymore because I don't like Creative Cloud.

    I've purchased many versions of legitimate packaged and registerable Adobe software in the past. But I'm afraid that I've come to the end of the road with Adobe because it no longer sells boxed software amd jas fprced a;; pf ots isers tp [ircjase Creatove Cpid/
    Do any other users feel the same way?
    Would you like to express your displeasure with this policy?
    If so, type your comments here.
    Also, if others can mention alternatives to Adobe's software, it'd be greatly appreciated, as I'm looking for them.
    Thanks.

    I have had nothing but issues with creative cloud.  The programs will not run properly, Its been two months and neither Adobe or I can figure out what is going on.  About the only option I have left is to format my hard drive and try on a fresh Windows install.  Talk about a waste of money.

  • Progress monitor!Any other alternative?.

    hello sir,
    i need an dialog window when scanning is going on and the window automatically closed when my scan completed.
    I try to implement threadstopped () method etc. But, its not give the solution.If any other methods avilable.

    Why? What is wrong with upgrading to 1.6 (which the code is written for and which you were told here: http://forum.java.sun.com/thread.jspa?threadID=5226598)? But, the "Console" stuff added to Java 1.6 come form an earlier third party library (if I remember right). I don't remember which one, but you should be able to Google Java Console API and find it rather it easily.

  • StreamTokenizer or any other alternative?

    I am looking for a way to read a file that contains words and decimals separated by ;
    The file looks something like this:
    String ; Decimal
    String ; Decimal
    String ; Decimal
    I think that StreamTokenizer could be a way to do it, but can't find any info on it.
    Any ideas on where to find the info or other alternative to play around with?
    Thanks!!!

    I thought StringTokenizers were hard, but that's not the case. I think it would be best to use a StringTokenizer in this case, so here's how I would do it...import java.util.*;
    class Token
        public Token ()
            String str = new String ("String ; Decimal");
            // A regualr string with things we want to "filter" out.
            StringTokenizer st = new StringTokenizer (str, "; ");
            // The delimeters are ';' and ' ' (a space). So when
            // the string is printed, you get just the words, nothing
            // else. This can easily be adapted and re-arranged, so play around
            // with it and try different things.
            while (st.hasMoreTokens ())
                System.out.println (st.nextToken ());
            // The part above has to iterate over the sentence and collect tokens
            // to print. While it does have more to print, it prints each one.
        public static void main (String [] args)
            new Token ();
    }And try this link: http://java.sun.com/j2se/1.4/docs/api/index.html it has info about the different classes in Java, the StringTokenizer is in java.util.StringTokenizer; or java.util in short.
    Check it out!

  • Is there any other alternative instead of using of WAIT UP TO X SECONDS?

    Hello
    I am developing a inteface function module that gets iits input data from another system (HR system), in that I am using WAIT UP TO 5 SECONDS statement, but my lead is not OK for using it, pls. let me know can I achieve the same by using any other way? Bcz my lead said, it depends on the environement DEV / ACC / PRD, hence lead is not OK for that
    Pls. let me know alternatives
    Thank you

    Please note the language of this site is professional English. Therefore please spell words out in full - because not bcz. Not everyone here's first language is English and abbreviations like this, besides being unprofessional, make your question harder to understand for them.
    On to your question.
    Why not ask your lead for an explanation and a solution? I.e. ask your lead for some leadership - it's his/her job!
    Why are you needing to wait? What are you waiting for?
    What I do is something like.
    DO 20 TIMES. "or thirty or some configurable number of times
      check for a condition being met - perhaps a lock being released.
      if condition is met.
         set a flag
         exit loop.
      endif.
      wait 1 second
    enddo.
    if flag not set
      issue error condition - resource not available or suchlike.
    endif.
    In this way, it doesn't matter what your environment is; as soon as the resource is available you're away. I agree with your lead that an arbitary wait is a bad thing. Even if you adjust the length for dev/q/prod, it can lead to difficulties - e.g. if your program ends up being called in a loop, that 5 seconds over a thousand iterations is a long delay.

  • Any other place for setting classpath?

    Hi,
    I have deployed an .ear file. I have made changes in the go.bat file and added the .jar files I needed into the classpath here.
    Is there any other place to set the classpath other than the go.bat file?
    My environment : Windows 2003 server. EP6.0 sp2. HF4.0, WAS 6.20, MS SQL Server 2000.
    Thanks
    Bhanu

    Hi Dagfinn/ Filip
    Thanks for your responses. 
    Dagfinn -
    Including .jar files in the the .ear file and deploying them gave us some issues, when we tried this a few weeks ago. (Basically, it was classloader error).  I will check that out further before I know if it worked fine or if that has any issues.
    Also, we did try out adding the references as suggested in the link too, sometime ago.  But that gave us a deployment error. 
    So alternatives to my question are to include in the .ear file or add references. If a new one exists let me know
    Thanks
    Bhanu

Maybe you are looking for

  • What about the security we support when the BIA is not SSO with EBS

    For the following security mode, if all of them need the SSO with EBS? Operating Unit-Based Security for Oracle EBS Inventory Org-Based Security for Oracle EBS Ledger-Based Security for Oracle EBS Business Group Org-Based Security for Oracle EBS HR O

  • Content-based image retrieval

    I am doing a research project of content-based image retrival using oralce92. I am interested in using Oracle's content-based retrieval feature for images.Can anyone tell me more about how the feature vectors or signatures are created from the color,

  • Wireless problems of TC

    i'm living all the problem of TC... just since somedays, i found a stable use of it... i don't know exactly why, but i changed some preferences... i try to connect this new stable way, to the change of the system of the password... i set it to WEP...

  • Reports containing session variables do not cache

    I have a general report that is filtered using information from session variables, for example which teamleader or supervisor the user has to tailor the report. BUT the problem is that any request with a session variable in it from Answers does not h

  • Auto Item Upload/Assign Item

    Hi, I have two questions in Oracle Inventory: 1: Is there any automatic way to assign items to sub inventories in specific Organization? the same question for assign locators for that item in the sub inventories. 2- Is there any automatic way to assi