How to connect scanner or printer or barcode reader with java

hello friends
How to conncect printer ,scanner or barcode reader with java program directly .
please send some suggestion .
Thanks in advance
Nitin

922264 wrote:
Thanks for the feedback. I'm having trouble getting my getText method to return the actual value, but here is my updated code:
BufferedReader br = new BufferedReader( new StringReader( getText() ) );....
public void getText(Document doc)
Element e = doc.getDocumentElement();
     NodeList nodeList = doc.getElementsByTagName("Interface");
     for (int i = 0; i < nodeList.getLength(); i++)
          Node node = nodeList.item(i);
          if (node.getNodeType() == Node.ELEMENT_NODE)
               Element element = (Element) node;
               NodeList nodelist = element.getElementsByTagName("Description");
               Element element1 = (Element) nodelist.item(0);
               NodeList ndLst = element1.getChildNodes();
               //System.out.print((ndLst.item(0)).getNodeValue());
     return doc;
}Here is the compiler error I am getting:
ImportDesc.java:32: error: method getText in class ImportDesc cannot be applied
to given types;
BufferedReader br = new BufferedReader( new StringReader
( getText() ) );
^
required: Document
found: no arguments
reason: actual and formal argument lists differ in length
Note: ImportDesc.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 errorThoughts?
Edited by: 922264 on Mar 21, 2012 10:33 AMYour getText method is not returning anything.

Similar Messages

  • How to connect to Pgsql on server through jdbc with java on local machine

    I am developing an application in which I have to connect to my database that is in Pgsql and Pgsql is installed on Linux server. I am going to access that from my java program and the java is here on my local computer(in Linux). All the intranet connections are there. How can I get accees to that database? I have heard of java SSL tunnel. Is this the only solution or there is something else that I can use more easily. Also if I use java installed on th same server as Pgsql then what I will have to do to call the java methods using AMI. Will the java at server be able to make connection to Pgsql more easily? Please tell me about it if you know.
    Thanks

    The closer java and pgsql, the easier it is of course to connect. So the easiest way is to have everything on the same machine. If you are in the same network you will need an IP based network, which is pretty much standard these days. In this case you need to modify the pg_hba.conf file to allow connections from other machines. In both cases you have to start the postmaster with the -i option to enable enable TCP/IP connections.
    Having java and pgsql connected through the internet is a different story, I do not have any experience with that. But you can use ssh to build a tunnel and connect to a local ip address / port from java which is then forwared securely via the internet to the server.
    In all cases you will need the postgres jdbc driver in your classpath. You can find information about postgres and jdbc on the postgres web site.
    good luck

  • Barcode Reader with java

    I�m graduating in IT and todo so my group has to provide a software that establishes communication with a barcode reader.
    Is it possible in java, which classes could I use, where can I get more information about integrating java with barcode readers?
    I�d be very grateful if u help me. anything is welcome
    charlles cuba
    brazil

    Results from googling on the net:
    - Java Barcode Linear Package
    http://downloads-zdnet.com.com/Java-Barcode-Linear-Package/3000-2412_2-10320737.html
    - Java Barcode Applets, Servlets, JavaBeans and Bar Code Class Libraries
    http://www.idautomation.com/java/
    - Java Plug-In for Barcodes
    http://www.i-fax.com/g/java/java_barcode.html

  • How to connect Canon MX870 printer to Macbook pro with retina display

    please help

    What have you tried thus far? The latest drivers and the user manuals can be found on Canon's website.
    Clinton
    MacBook Pro (15” Late 2011), OS X Yosemite 10.10, 16GB Crucial RAM, 960GB M500 Crucial SSD, 27” Apple Thunderbolt Display

  • How can I find a printer that is compatible with my ox 10.4.11 operating system

    Helllo,
    I have several questions but my most current one is how can I find a printer that is compatible with my current operating system?

    Brother is good about supporting older Mac OS versions. We have their HL5250DN b/w laser that supports all the post-1997 Macs in the house, including a 1998 vintage Beige G3 minitower running OS 10.3.9. There is also a driver with OS9 support on the Brother web site.
    The bigger problem, based on posts I see in these forums, is not a printer failing to support an older OS but one not supporting a new Mac OS. There are numerous posts after a big OS version change (like the intro of Lion) where people run out and buy whatever printer looks cute/sounds good without researching whether the device supports the new OS yet. Printer makers are often not good about having updated drivers developed by the time Apple rolls out a new OS.

  • BarCode Reader In Java

    Hi Every One
    My problem is how can i manage barcode reader in java.
    thanks

    Hi,
    What type of barcode reader/scanner r u using?I'm using symbol
    LS 1000 series barcode scanner.It's same like using keyboard.
    Once i scan the barcode it decodes and sends the output to screen/
    any editor.
    I generated barcode image using a program which is bigger in size,but
    I have to generate very small barcode.I don't know how to that.Do u have
    any idea?
    thanx,
    jmos

  • How can I develop co-broswing on Windows platform with java language?

    How can I develop co-broswing on Windows platform with java language?
    The function will be realized
    Now I want to develop a co-broswing system with java language on Windows platform.That is to say I will develop
    a application run on client to track the present browser.Wheh the URL address of your present if changed(for example
    when you click a link or submit a form),the application will capture the new URL address and send it to the other
    client that make co-browsing connect with you.The browser on the other client side will catch the new URL and refesh
    the page to show the page.
    The question I fall across and want to ask you
    (1)How to watch system process with java on the Windows platform?Because I want to get the process information of
    the present broswer,and then get the URL address of the present broswer.
    (2)Develop an application to watch the URL address of the present broswer continuance,If the URL address is changed,
    then send the new URL address to the client on the other side,let his broswer to show the new page using the new URL.

    Paulc, A proxy server is not the right thing.
    What our man here is looking for is a solution for two
    users to kind of surf the net "in tandem" - when one
    user navigates to a different web page, so does the
    other user,
    These are typically used in call center applications
    where the advisor guides a caller through , say
    filling in an insurance form or pointing him to the
    right product specification pages.
    Xing, why are you using Java for this ? You need
    something that has better windows integration. If you
    look on MSDN.microsoft.com and search for "explorer
    bar" you will find solutions to the questions that you
    raised.
    There are also commercial products on the market that
    already do this kind of stuff. there is one from
    www.genesyslabs.com which is considered to be the best
    of breed.
    It is difficult or almost impossible to do this in
    Java for a commercial application.
    If you are developing this as an academic exercise,
    give it a try. Post your email address here, and I
    will contact and help you out if you like.my e-mail is below ,I want to contact you and need all of your help.
    [email protected]

  • How to connect my wireless printer (HP 1102w) to my ipad2

    How to connect my printer (HP 1102w) to my iPad 2?

    Firstly, try asking in the iPad forum. This is the iPhone forum.
    http://support.apple.com/kb/HT4356?viewlocale=en_US&locale=en_US

  • How to connect my wifi printer to my MacBook Pro

    Hello - Could you please advise re: how to connect my HP Deskjet 3050 to my MacBook Pro?  I gather I have to connect the printer to my Wifi network first, but the instructions aren't clear for a Mac.
    Please help.  Thank you -

    Mac OS Printing/Fax (any version), OS X Lion, OS X Mountain Lionhttp://www.apple.com/support/osx/
    printing in OS X Mountain Lion
    http://support.apple.com/kb/HT4670
    Configure it directly while connected via USB first generally works.
    However here is what Canon support has.
    Direct you to the proper forum for MacBook :
    MacBook Series Forums
    https://discussions.apple.com/community/notebooks?view=discussions
    http://www.apple.com/support/macbookpro
    Mac OS X Forum
    https://discussions.apple.com/community/mac_os?view=discussions
    This forum deals with a desktop/tower 65lb Mac Pro
    http://www.apple.com/support/macpro

  • How to connect i phone printer

    I CHANGED MY INTERNET PROVIDER BOX AND RE SET MY PRINTER TO WIRELESS SUCCESSFULLY...HOWEVER IMY I PHONE NO LONGER CAN FIND THE PRINTER??? NO PROBLEM BEFORE THIS...I COULD PRINT FROM MY PHONE WITH NO PROBLEM

    Hi,
    Are you using the airprint function of the iPhone or a print app like HP ePrint? It might be worth downloading the HP eprint app and trying to print using the app.
    I know that you've laready tried this but restart the iPhone again to see if it re-establishes a connection.  Once the phone and printer are on the same wifi network, you should be able to see the printer via airprint and any print apps.
    Alternatively, you can use the wireless direct funtion of your printer by turining on the wireless button on the front of the printer. This allows the printer generate it's own wifi singal that you can connect to through any wireless device. To find the wireless password, simply hold down the wireless direct button for more than 3 secs and it will print the password on plain paper (make sure paper is loaded).
    "Although I work for HP, I'm speaking for myself and not on behalf of HP"
    "Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

  • How to connect to a print server

    Just bought a MacBook. Can connect to the internet through airport, but can not connect to my print server through the network. Can anyone help resolve this??

    Can anyone help resolve this?
    I'm sure someone can, but without more information, such as any clue about the type of printer/print server, or some idea about your network setup, this is the kind of task that is impossible to do blind.

  • How to connect XLSX(MS Office 2007 Excel file) in java

    i successfully connected ms office 2003 *.xls* file with the help of JXL library
    can any one tell me how can i connect XLSX (MS Office 2007 Excel file) in java.

    http://www.smartxls.com/indexj.htm is commercial library (not free) also a poor documentation
    can you give me a sample code of reading and writing xlsx file
    http://poi.apache.org/spreadsheet/index.html free library.
    but sample code are difficult to understand .
    if you have a good and simple example code please give me OR any other reffrences

  • How do I speed up Printing from Adober Reader X?

    Adobe Reader used to print quickly. Now, there is a long wait before the printer starts (Adobe Reader X). What changed? How can I get Adober to print sooner. (No other program has such a long wait.)

    Hi,
    How old is your printer ? Is it in this list:
      http://support.apple.com/kb/ht4356
    You also need this to be able to print from your iPhone.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to connect Asus mother board P5B sound card with Creative Inspire 5.1 5200 speaker system?

    Hi, I am not sure how to connect them, as I find that there is no sound from centre speaker, please help me, thanks?

    mg,
    Have you check through your motherboard manual for the proper setup of your onboard audio with 5.1 speaker system?
    Jason

  • How to connect WPS (BlackBerry phone) on wi-fi with airport express ?

    My boyfriend (not sold to Apple yet) wants to connect his BlackBerry phone on our wi-fi network.  Because it is WPS, it detects the network but I we don't know how to connect.  We need help !!!

    If I were to connect the AirPort Extreme to my modem (DPC3825) via an Ethernet cable and then (wirelessly) connect my new iMac to the netowrk, would I receive 802.11ac or just b/g/n still?
    802.11ac would be received by the iMac if it connected to the AirPort Extreme wireless signal....and....the iMac was in close proximity to the AirPort Extreme.
    802.11ac uses the 5 GHz frequency, and these signals only work well then the router and computer are in the same room or have a line-of-sight relationship  to each other, or very close to that ideal.
    In addition, when I connect the AirPort Extreme to my modem, will it create two networks
    The AirPort Extreme will create a network with two bands or frequencies.....one  2.4 GHz for "b", "g" and "n" wireless devices and another band, the 5 GHz signal for "n" and "ac" devices.
    If you assign the same name to  the AirPort Extreme network that you use for your existing network, and both routers are using the same wireless security settings and password, then everything will act like one "big" network.
    If you assign a different name to the AirPort Extreme wireless network, then you will have two different networks....one produced by your existing router and the other produced by the AirPort Extreme.
    If you move from one area to another, you will have to log off of one network and log back onto the other network.

Maybe you are looking for

  • How do I get to save my pass words and login so they appear when I doulbe click on a text box?

    I previous versions when I typed in a login or password for the first time it asked if I wanted to save the li&pw. It has stopped doing that. Also can there be a place in the Password storage to enter PW's that will appear once you start typing.

  • Can I change the location of files in Adobe Bridge

    I have a small SSD for my program files. Adobe Bridge is usingit to store image data and I believe backups of the images. Can I agjust the locaion of these files?

  • Heeeelp .

    okay , i have an ipod touch , and i've had wifi on it before. its worked. and been connected. For the past two months i've been trying to connet on my ipod and , it wont connect, it says no wi - fi available , when i had no problems connecting with m

  • How do I get an XML file on the client side hard drive

    Is there a way to get XML files from a Flex form and get it to the hard drive on the client side? I realize Microsoft got impaled by allowing this sort of thing with ActiveX. We would like the app to be browser based but need XML files dropped off on

  • Oracle application development

    hi! iam mirza kamran i want to ask that how can i get guides and training of oracle application development tools like EJB JAVASERVLETS JSP but specifically for databases