HELP !!! URGENT !!! How to read passwd (console) without printing it ???

Hello !!! I need help. I write program for console.I'd like to read for example password. I dont like it to be written on screen. I use:
BufferedReader is = new BufferedReader( new InputStreamReader(System.in));
passwd = is.readLine( );
but default all i can read is printed on screen ???
What to do with this code not to print pressed keys on screen ???
I dont like to use primitive way - reading char by char and delete char
each time.
Could you help. It's very urgent and important for me.
Thanks
[email protected]

http://java.sun.com/features/2002/09/pword_mask.html

Similar Messages

  • How to download garageband old version? i mean version 1.0 to install it on iphone 4s with ios 6.0.1??? please help urgently, how to download garageband old version? i mean version 1.0 to install it on iphone 4s with ios 6.0.1??? please help urgently

    how to download garageband old version? i mean version 1.0 to install it on iphone 4s with ios 6.0.1??? please help urgently, how to download garageband old version? i mean version 1.0 to install it on iphone 4s with ios 6.0.1??? please help urgently

    I did this a few weeks ago to be sure it was going to work for a young person I was giving my ipod to.  Then I reset the information for her and now it will not load.  Very sad.  She is so talented and she really needs this.   Anyone know?

  • Help me,  How to read data from USB ???

    Help me, How to read data from USB ???

    If its a disk on key or some portable hard drive than once its connected to the usb and recognized by the system you can access it through java like you would access your hard drive.

  • Help on how to read the content of an XML file from the payload

    I have a receiver channel / mail adapter, that sends e-mails with a XML attachment.
    I’m trying to write a Bean, that should make it possible to rename the attached XML file dynamically.
    In the Bean I want to read the content of the attached XML file, it could be the “order number”.
    The filename should then be “Order number”.XML.
    <u><i>Can anyone help me with how to read the content of the XML file from the payload.</i></u>
    <i><b>Frank</b></i>

    hi,
    check this: http://jakarta.apache.org/poi/

  • Urgent:How to modify a script without changing the print programme

    Hi all,
    Can any body pls tell me <b>How to modify a script without changing the print programme</b>
    Give m esome real time examples.
    Good points willbe rewarded
    Thanks

    Hi
    You can write a external Subroutine to fetch the extra data into the script program
    see the following sample code
    How to call a subroutine form SAPscripts
    The Form :
    /:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
    /:USING &EKKO-EBELN&
    /:CHANGING &CDECENT&
    /:ENDPERFORM
    The report :
    REPORT zkrpmm_perform_z1medruck .
    DATA : BEGIN OF it_input_table OCCURS 10.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_input_table.
    déclaration de la table output_table contenant les
    variables exportées
    DATA : BEGIN OF it_output_table OCCURS 0.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_output_table.
    DATA : w_ebeln LIKE ekko-ebeln,
    w_vbeln LIKE vbak-vbeln,
    w_zcdffa LIKE vbak-zcdffa.
    FORM CDE_CENT
    FORM cde_cent TABLES input output.
    it_input_table[] = input[].
    it_output_table[] = output[].
    READ TABLE it_input_table INDEX 1.
    MOVE it_input_table-value TO w_ebeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = w_ebeln
    IMPORTING
    output = w_ebeln.
    SELECT SINGLE zcdffa FROM ekko
    INTO w_zcdffa
    WHERE ebeln = w_ebeln.
    it_output_table-name = 'CDECENT'.
    MOVE w_zcdffa TO it_output_table-value.
    MODIFY it_output_table INDEX 1.
    output[] = it_output_table[].
    ENDFORM.
    COPING SCRIPT
    There are some Standard Sap Scripts in SAP. We cant directly execute them in scripts we have to use some T-codes and by giving some input to the required fields we can see the output printform.
    I will show one example. There are some Standard Sap Scripts such as MEDRUCK which is a standard Sap Script for Purchase Order and RVINVOICE01 for billing and so on...
    To see oupt of MEDRUCK go to T-code ME9F give purchase order number and execute select one number and click on dislplay messages button on application tool bar you can find the print form of MEDRUCK.
    You cannot change the Standard Sap Scripts but you can use Standard Sap Scripts and Copy them to userdefined Script and can make changes to them and replace standard Sap Script with usedefind script.
    Ex: Go to SE71,
    on menu bar u find Utilities->copy from Client. click on it u ll find new screen showing
    Form name:
    Source Clinet:
    Target Form:
    give Form name as usedefined form name EX: ZFORM1
    Source client as 000 and
    Target form as MEDRUCK.
    execute.
    Now, the standard from MEDRUCK is copyied to your form ZFORM1.
    NOW, go to SE71 and give form name as ZFORM1 and do some changes to the form such as adding logo any thing. save and Activate.
    Now, you have done changes to the Form ZFORM1 and u have to replace your form with standard SAP Script.
    Go to NACE Transaction.
    on Applications select EF for purchase order and click Output types button on application tool bar.
    now select NEU as output types dobule click on Processing Routines.
    now click on Change option on application tool bar and on right side u find MEDRUCK in form place replace MEDRUCK with ZFORM1 and SAVE.
    go back twice and now go to T-code ME9F give the purchase order number and execute and select one option and click on display messges button .
    you will find the changes that you have done in ZFORM1. so we cant chage the standard Sap Scripts by copying the Standard Sap Scripts we can chage and replace with our forms
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=4089895&messageID=3239299
    Regards
    Message was edited by:
            Kiran Sure(skk)

  • [Urgent] How to read files from different directories?

    I am new to Java Programming, I would like to know how to read files from directories other than the current one? (example as follows)
    ProjectDirectory
    |--MainDirectory
    |--MainProgram.java
    |--SupplementDirectory
    |--SupplementProgram.java
    |--Pictures
    |--Image.gif
    What should I write in the MainProgram.java so that I can use the supplementProgram.java from MainProgram and read the Image.gif file from the MainProgram.java?
    Thanks

    Run through the I/O tutorial here. It should get you up to speed on this sort of thing...

  • (Urgent help needed) how to read txt file and store the data into 2D-array?

    Hi, I have a GUI which allow to choose file from the file chooser, and when "Read file" button is pressed, I want to show the array data into the textarea.
    The sample data is like this followed:
    -0.0007     -0.0061     0.0006
    -0.0002     0.0203     0.0066
    0     0.2317     0.008
    0.0017     0.5957     0.0008
    0.0024     1.071     0.0029
    0.0439     1.4873     -0.0003
    I want my program to scan through and store these data into 2D array.
    However for some reason, my source code issues errors, and I don't know what's wrong with it, seems to have a problem in StringTokenizer though. Can anybody help me?
    Thanks in advance.
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.StringTokenizer;
    public class FileReduction1 extends JFrame implements ActionListener{
    // GUI features
    private BufferedReader fileInput;
    private JTextArea textArea;
    private JButton openButton, readButton,processButton,saveButton;
    private JTextField textfield;
    private JPanel pnlfile;
    private JPanel buttonpnl;
    private JPanel buttonbar;
    // Other fields
    private File fileName;
    private String[][] data;
    private int numLines;
    public FileReduction1(String s) {
    super(s);
    // Content pane
         Container cp = getContentPane();
         cp.setLayout(new BorderLayout());     
    // Open button Panel
    pnlfile=new JPanel(new BorderLayout());
         textfield=new JTextField();
         openButton = new JButton("Open File");
    openButton.addActionListener(this);
    pnlfile.add(openButton,BorderLayout.WEST);
         pnlfile.add(textfield,BorderLayout.CENTER);
         readButton = new JButton("Read File");
    readButton.addActionListener(this);
         readButton.setEnabled(false);
    pnlfile.add(readButton,BorderLayout.EAST);
         cp.add(pnlfile, BorderLayout.NORTH);
         // Text area     
         textArea = new JTextArea(10, 100);
    cp.add(new JScrollPane(textArea),BorderLayout.CENTER);
    processButton = new JButton("Process");
    //processButton.addActionListener(this);
    saveButton=new JButton("Save into");
    //saveButton.addActionListener(this);
    buttonbar=new JPanel(new FlowLayout(FlowLayout.RIGHT));
    buttonpnl=new JPanel(new GridLayout(1,0));
    buttonpnl.add(processButton);
    buttonpnl.add(saveButton);
    buttonbar.add(buttonpnl);
    cp.add(buttonbar,BorderLayout.SOUTH);
    /* ACTION PERFORMED */
    public void actionPerformed(ActionEvent event) {
    if (event.getActionCommand().equals("Open File")) getFileName();
         if (event.getActionCommand().equals("Read File")) readFile();
    /* OPEN THE FILE */
    private void getFileName() {
    // Display file dialog so user can select file to open
         JFileChooser fileChooser = new JFileChooser();
         fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
         int result = fileChooser.showOpenDialog(this);
         // If cancel button selected return
         if (result == JFileChooser.CANCEL_OPTION) return;
    if (result == JFileChooser.APPROVE_OPTION)
         fileName = fileChooser.getSelectedFile();
    textfield.setText(fileName.getName());
         if (checkFileName()) {
         openButton.setEnabled(false);
         readButton.setEnabled(true);
         // Obtain selected file
    /* READ FILE */
    private void readFile() {
    // Disable read button
    readButton.setEnabled(false);
    // Dimension data structure
         getNumberOfLines();
         data = new String[numLines][];
         // Read file
         readTheFile();
         // Output to text area     
         textArea.setText(data[0][0] + "\n");
         for(int index=0;index < data.length;index++)
    for(int j=1;j<data[index].length;j++)
    textArea.append(data[index][j] + "\n");
         // Rnable open button
         openButton.setEnabled(true);
    /* GET NUMBER OF LINES */
    /* Get number of lines in file and prepare data structure. */
    private void getNumberOfLines() {
    int counter = 0;
         // Open the file
         openFile();
         // Loop through file incrementing counter
         try {
         String line = fileInput.readLine();
         while (line != null) {
         counter++;
              System.out.println("(" + counter + ") " + line);
    line = fileInput.readLine();
         numLines = counter;
    closeFile();
         catch(IOException ioException) {
         JOptionPane.showMessageDialog(this,"Error reading File",
                   "Error 5: ",JOptionPane.ERROR_MESSAGE);
         closeFile();
         System.exit(1);
    /* READ FILE */
    private void readTheFile() {
    // Open the file
    int row=0;
    int col=0;
         openFile();
    System.out.println("Read the file");     
         // Loop through file incrementing counter
         try {
    String line = fileInput.readLine();
         while (line != null)
    StringTokenizer st=new StringTokenizer(line);
    while(st.hasMoreTokens())
    data[row][col]=st.nextToken();
    System.out.println(data[row][col]);
    col++;
    row++;
    closeFile();
    catch(IOException ioException) {
         JOptionPane.showMessageDialog(this,"Error reading File",
                   "Error 5: ",JOptionPane.ERROR_MESSAGE);
         closeFile();
         System.exit(1);
    /* CHECK FILE NAME */
    /* Return flase if selected file is a directory, access is denied or is
    not a file name. */
    private boolean checkFileName() {
         if (fileName.exists()) {
         if (fileName.canRead()) {
              if (fileName.isFile()) return(true);
              else JOptionPane.showMessageDialog(null,
                        "ERROR 3: File is a directory");
         else JOptionPane.showMessageDialog(null,
                        "ERROR 2: Access denied");
         else JOptionPane.showMessageDialog(null,
                        "ERROR 1: No such file!");
         // Return
         return(false);
    /* FILE HANDLING UTILITIES */
    /* OPEN FILE */
    private void openFile() {
         try {
         // Open file
         FileReader file = new FileReader(fileName);
         fileInput = new BufferedReader(file);
         catch(IOException ioException) {
         JOptionPane.showMessageDialog(this,"Error Opening File",
                   "Error 4: ",JOptionPane.ERROR_MESSAGE);
    System.out.println("File opened");
    /* CLOSE FILE */
    private void closeFile() {
    if (fileInput != null) {
         try {
              fileInput.close();
         catch (IOException ioException) {
         JOptionPane.showMessageDialog(this,"Error Opening File",
                   "Error 4: ",JOptionPane.ERROR_MESSAGE);
    System.out.println("File closed");
    /* MAIN METHOD */
    /* MAIN METHOD */
    public static void main(String[] args) throws IOException {
         // Create instance of class FileChooser
         FileReduction1 newFile = new FileReduction1("File Reduction Program");
         // Make window vissible
         newFile.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         newFile.setSize(500,400);
    newFile.setVisible(true);
    Java.lang.NullpointException
    at FileReductoin1.readTheFile <FileReduction1.java :172>
    at FileReductoin1.readFile <FileReduction1.java :110>
    at FileReductoin1.actionPerformed <FileReduction1.java :71>
    .

    1) Next time use the CODE tags. this is way too much unreadable crap.
    2) The problem is your String[][] data.... the only place I see you do anything approching initializing it is
    data = new String[numLines][];I think you want to do this..
    data = new String[numLines][3];anyway that's why it's blowing up on the line
    data[row][col]=st.nextToken();

  • Help-urgent - how to update service pack and apply patches for ADS

    Dear all,
       I've just download the sp 11 and the patch ,how should i update my ADS? I've try to search the forum but to no avail. Pls advise,thanks.
    Regards,
    Joan

    Hi Joan,
    To deploy an SCA or SDA, proceed as follows:
          1. Make sure you have downloaded the SCA or SDA from SAP Service Marketplace.
          2. Start the SDM GUI. To do this, execute the following file:
                a) Windows: RemoteGui.bat in folder \usr\sap\<SID>\<instance>\SDM\program
                b) Unix: RemoteGui.sh in folder /usr/sap/<SID>/<instance>/SDM/program
          3. The SDM GUI screen appears.
          Note: With SAP Web Application Server 6.30 the SDM server is started whenever you start the SAP system. To check whether the SDM server is running, use the tools SAP Management Console (Windows) or jcmon (UNIX).
          4. Choose "SDM Gui -> Login" or the icon "Connect to SDM Server". The dialog box "Enter Login Information for SDM Server" appears.
          5. Enter the following information:
                a) Password
                The initial password is "sdm" (without quotes).
                b) User description (optional)
                c) Hostname
                d) Port
                With instance number 00, the default port number is 50018. If your instance number is different from 00, the port number changes to
                Port = 50018 + 100 x <instance number>.
                You have to calculate the new port number and enter it manually.
          6. Choose "Login". The SDM GUI appears.
          7. Choose tab "Deployment".
          8. Choose "Add SCA/SDA to Deployment List (Local File Browser)". A file selection screen appears.
          9. Select the SCA or SDA file you would like to deploy and choose "Next" to read the information on the following screens.
          10. Choose "Next" until the "Start" button appears.
          11. Choose "Start". After the SCA or SDA has been completely deployed, a success message appears.
          12. Choose "Confirm" to return to the SDM GUI.
          13. When you have finished work, log out from the SDM server. Choose "Deployment -> Logout" or the icon "Disconnect from SDM server" for this.
    If this answers your question, please mark the question accordingly and do award points if helpful.
    Regards,
    Arafat

  • HELP URGENT How do I use an activation key to re-activate my 30 day trial ?

    I am asking this question on behalf of my sister-in-law who is on dial up in a rural area and recently purchased an iMac with the 30 day trial of i-work. She purchased an activaion key on line but does not know how to re-activate the existing software. She did not receive any e-mail on how to re-activate the existing software on the computer.
    What is the process at apple on how someone would re-activate a trial copy of i-work? Does she get an e-mail with the key and instructions on how to use it?
    Her children are in the middle of a project that is needed for school and they cannot get back in to print anything.
    Need your help ASAP.

    Welcome to the discussions, Desi.
    If Keynote is still on the machine, they should only have to double-click the icon. When the application opens, there should be a button to press to enter the registration number. Some details are here.
    http://docs.info.apple.com/article.html?artnum=301608
    I haven't had to do this myself, post back if it doesn't work.

  • Help! How to open PSE 7 without opening catalogue

    Tried to migrate from PSE 7 to PSE 9. After catalog conversion the browser seemed to open normally, however crashes in a few seconds. Called the Adobe helpdesk, they come to the conclusion that the catalogue is corrupt, however catalogue functioned normally in PSE 7. Since the catalogue has now been converted, it cannot open in PSE 7 anymore. I was happy having made a back up, but if I want to restore the back up,  PSE 7 is automatically opening the old - converted/ corrupt - catalogue and... hangs. Has anybody within Adobe thought of the possibility to open the software without, automatically, opening the catalogue. Seems particulary useful in these kind of circumstances.
    I have tried to open and at the same time helding the ALT + SHIFT+ CTRL keys but that does not work.
    First of all I d like to migrate with my old catalogue to PSE 9, but at least I would like to still be able to open my old catalogue (back up version) in PSE 7.
    Many thanks in advance
    Paul
    OS: Windows Vista

    Ken,
    The converted catalog is on its original location (hence original version is overwritten). PSE 7 crashes when opening this catalog.
    The backup of the original catalog is on an external drive. Now I want to restore the back-up catalog, my understanding is I need to do this with PSE 7. (I tried it with PSE 9 too but got an error message).
    However when I open the PSE 7 software/ organiser it starts automatically to open the converted/ corrupted catalogue and the program crashes...
    So key question is: how can I start up PSE without opening automatically a catalogue (then being able to restore the BU)
    Thanks for your help.
    Regards, Paul

  • HELP about How to connect with Database without JDBC ?

    Hello all,
    i have oracel8i database and my programe work fine with JDBC
    but now
    i want to connect my programe with database without using JDBC connection please any body tell me syntex for that,
    Class.forName("oracle.jdbc.driver.OracleDriver");
    databaseConnection = DriverManager.getConnection("??","arif","arif");
    i have user arif in my database and my computer name is "ABCD"
    Please help me,
    i m thanksfull,
    onlyforjava.

    Thanks i try it,
    url = "jdbc:oracle:thin:@ABCD:1521:" + sid;
    connection = DriverManager.getConnection(url,"arif","arif");
    but after that i got exception,
    java.sql.SQLException: Protocol violation
    Please help me,
    i m thanksfull.
    onlyforjava.

  • Help! How do I import Hotmail without Entourage?

    I'm not sure if I should keep my pbook G4. I can't believe that I'd have to use Entourage from Office 2004 for Mac ($399.95) just to get Hotmail! Is there an uncomplicated way or good program for me to use?
    I have old mail from Outlook that I would like to keep & access as well. Am I forced to buy Office 2004 just so I can access my other documents? Thanks in advance...Diana
    Mac Powerbook G4   Mac OS X (10.4.3)  

    Hi Diana.
    There is a plug-in for Apple's Mail app called 'httpmail', which I use to access my Hotmail thru Mail. Give it a go, it's free and downloadable from MacUpdate.
    With regard to other Mail you have in Outlook, the following is an excerpt from one of Apple's 'Switch' pages:
    Email messages and settings
    If you use a web-based email service to view and send email, such as Yahoo! Mail or Google’s Gmail, then you won’t need to copy your email or email settings to your new Mac. You can continue using web-based email with our Safari Internet browser.
    However, if your email is managed by a separate application like Outlook or Eudora, then you will probably want to migrate your old mail to your new Mac. Different email programs use different methods of storing messages. We’ve collected some useful links to help.
    Microsoft Outlook and Outlook Express use a proprietary format for storing messages. Microsoft’s web site has a tutorial on how to transfer email files. Or you could invest $10 in Little Machines’ Outlook2Mac, which is compatible with Microsoft Outlook only, not Outlook Express.
    Eudora, Netscape Mail or other mbox-based mail application use a standard mail format. Read this article for information.
    You should also make note of your existing email settings. Later, when first using your new Mac, you’ll use this information to set up email. Open your email application, find the “Accounts” area, and write down the following information about your existing email setup:
    Account type: POP or IMAP
    Email address
    Incoming mail server
    Outgoing mail server
    User name and password
    Hope you find something of use in there; sorry for not providing more specific help, I've not personally had to copy email over from a PC. Best of luck!

  • Hi experts   it is urgent,  how to read current row when f4 is pressed

    hi all
    i have a field xyz which is input/output enabled.  this field is attached with f4 help. 
    my requirement is to get or read the row when user press f4 on that field so that restrict value should come in f4 help.
    right now f4 is showing all data, but i want data with respect to the row.
    so how to get or read the row when user press f4 i.e user will choose any row and this out is on alv grid and there are multiple records.
    i  hope u understood the query.
    thanx
    rocky

    Hi,
    Use function module DYNP_VALUES_READ and then read the Tables parameter of this function module to get the value of the field. for demo program see this report 'DEMO_DYNPRO_F4_HELP_MODULE'.
    Thanks and regards.
    Tanweer

  • [urgent] How to enable session state without modifying web.config ?

    HI ,
    We have customized a new master page to our site. We have a requirement to use session (HTTContext.current.session) , to save data , then we have an error session is null , so we excuted the
    Enable-SPSessionStateService-DefaultProvision
    We have no access to the web.config ! so we cant change the ligne from <pages enablesessionstate="false"  to <pages enablesessionstate="true" , so we wanted to add enablesessionstate="true" in the page wich caused
    the probleme and we had a new error "enablesessionstate is not allowed in this page".
    How can we resolve this problem without modifying the Web.config ?? a have benn blocked since 2 days ! Any help will be great. Thanks in advance :)

    Hi Bouhmind,
    Thanks for posting this issue, you can enable session by setting enablesessionstat="true" in page directive as you try. Also, you need to do some configuration in your IIS. Kindly browse the below mentioned  URL to do that configuration in
    IIS.
    http://ammarfassy.wordpress.com/2012/04/06/session-state-can-only-be-used-when-enablesessionstate-is-set-to-true/
    I hope this is helpful to you. If this works, Please mark it as Answered. 
    Regards, 
    Dharmendra Singh (MCPD-EA | MCTS) 
    Blog :
    http://sharepoint-community.net/profile/DharmendraSingh

  • URGENT: How to read the content of a PDF-file in Java?

    Hello
    What I need are some classes which can read a pdf and translate it in normal Text, so that I can write the content of the pdf in my database.
    Where can I find those classes? Or how else could I get there?

    www.lowagie.com/itext
    www.etymon.com/pj
    www.retep.org.uk/pdf
    www.pdflib.comwww.pdfzone.com
    www.planetpdf.com
    www.purepdf.com
    www.adobe.com
    www.pdfstore.com
    www.adobe.com/proindex/acrobat/formsresources.html
    www.partners.adobe.com/asn/developer/acrosdk/forms.html
    www.rrsys.com
    www.javafoundry.com/javapdf
    www.novagraphix.com/internet_publishing_with_acrobat/forms/forms_tutorial.html
    www.binarything.com

Maybe you are looking for

  • Playing video on tv using ipod universal dock with s-video

    i am not able to play with my 180gb ipodclassic video on my tv using s-video on universal dock. the message "TV Out Enabled" please connect Video Accessory". This should work because apple support tells us so see the last picture; http://support.appl

  • PDFs from InDesign for print then web?

    The workflow is supposed to be: we simply take the PDF files which were created from InDesign and then sent to our printer, and give them to our web service company who has our online edition finished by morning. But we're upgrading our photo process

  • Sound in a movie clip malfunctions when play head is moved backward

    Problem summary: A sound (stream) placed inside a movie clip that is within another movie clip will start playing continuously when I use the play control to jump around on the main timeline. Details: I am using Flash CS3 but the same issue occurs wi

  • Wrong modified dates in my folders

    Hi, I have this nagging problem for a while, all the "date modified" in most of my folders (application, documents,utility, libraries, download, etc.) are wrong. They all show up with january dates, some this year, some previous years.Recent modifica

  • Changing values of substitution variables on the basis of selection in Page

    Hi All, I am developing a classic planning application using hyperion 11.1.2.1. All of my data forms are based on substitution variables i.e. I define three variables: sv_CurrYear = FY12 sv_CurrYearMinus1 = FY11 sv_CurrYearMinus2 = FY10 and i am usin