printf method does not work under Linux?

Hi, guys

I created a simple java program that uses the printf method to print the results to stdout.
I found it would not work correctly under Linux (Debian) as it does on Windows. Does anyone know what the problem is and how to fix it?

REF:
[Screenshot of running on Debian | http://kawamura.blog.enjoy.jp/photos/tmp/screenshotjavadebian_scorechecker_ver10.png]

[Screenshot running on Windows | http://kawamura.blog.enjoy.jp/photos/tmp/scorecheckerwin.jpg]

Best regards
HappyJay

You use "gij" and any resemblance between it that a Java tends to be purely accidental. You use openjdk or Oracle's Linux JDK.

Tags: Java

Similar Questions

  • Satellite L50-B-166: Webcam + microphone does not work under Linux

    Hello

    I'm under Linux Slackware 14.1 with kernel 4.11 on a Satellite L50-B-166.

    Webcam and microphone are not detected by the system, and I can't find the firmware and the module for them.

    Can someone help me?

    Hello

    I get the Webcam work properly in Fedora 22 core 4.0.6 (Incidentally, kernel 4.11 does not yet exist, so what kernel do you use )
    I suggest therefore that you check the software for the Webcam settings is not simply disabled:

    F2 at the STATION
    Go to advanced > system configuration
    Make sure the Webcam is turned on.

    Tom BR

  • RHEL or centos 5.3 does not work under vmware to 6.5.2

    Hi all

    I use vmware to 6.5.2 workstation on linux.

    RHEL or centos 5.3 does not work under vmware 6.5.2. When I launch a 5.3 rhel or centos 5.3 on vmware workstation 6.5.2 on linux installation and configuration goes off well. and I can't connect to the internet as well. normally, I put a static IP address and move forward with things.

    but once I'm done for the day I closed the comments and also the host machine. When I start the computer host the next day I get a message (I moved it Cancel I copied it)

    normally, I click on "I copied it" and move forward. When I start the operating system, I find that IP in DHCP address switches and the many changes that I made to go to pot. It normally happens when I create a linked to the base OS clone original.

    never, I face this problem when I used it with vmware for windows and I used this clone related all this time.

    could someone please shed more light on this? I do not feel this type of error deskto openfiler or suse. I use clone bound only with openfiler and suse.

    that linked clones are of concern. Here's what I do.

    I have install say hundred os 5.3 as a basic OS and do not touch.

    Ok

    When I want to test something on this subject I create a linked clone (which automatically creates a snapshot).

    now when I want to create another instance of hundred bones, I create another clone related base (another cliché separate) and work on it.

    Although for Workstation is you actually have a 'new' virtual machine and if you copied or moved is a good question. The problem is that most people do not understand the consequences of the choice of one over the other. If you have NEVER 2 clones related running at the same time, then you would like just to use the "move" option In this case your linked clone is just an advanced preview where you have 2 lines long that are independent from each other.

    OTOH if you go for a start more as a related clone, then you will get problems when they are in the same network they will try both to claim the same IP because they have the same MAC address network. This can cause all sorts of weird problems. If you choose the option "clone", while these problems do not occur, but you will have to reset some settings such as address IP etc...

    --

    Wil

    _____________________________________________________

    Visit VMware developers at http://www.vi-toolkit.com wiki

  • The Stream.play () method does not work why?

    I want to create an application to switch streams and republish them under continuous flow unique to the remote server.

    In the first step, I tested "Livestream code" of the "Multipoint publishing example" p. 184 of "FLASHMEDIA SERVER 4.5 Developer's Guide ADOBE®" If ns.publish method is used. He managed.

    I try stream.play method now.

    I wrote main.asc code as in the Stream.play example (p. 162) of the 'the ACTIONSCRIPT Language Reference® to ADOBE® FLASH® MEDIASERVER 4.5 server-side", but I have a certain problem despite this.

    I try to spread on my local server (Uri - "localhost/studia") by two customers - OUT and my request for "Livestream" accordingly (with stream name "livestream2") and retraslate it to a remote server by using my "studia" on a local application.

    The connection between two servers (with application "on-line") appears in the Remote Server Admin Consol, but the flow of my local server do not come to her.

    Here's my main.asc script:

    application.myRemoteConn = new NetConnection();

    application.myRemoteConn.onStatus = {function (info)}

    trace ("Connect" + info.code + "\n");

    Respond to all customers

    for (var i = 0; i < application.clients.length; i ++) {}

    application.clients [i]. Call ("onServerStatus", null, info.code, info.description);

    }

    };

    Connect use NetConnection object remote server (the remote server works with other application wery well)

    application.myRemoteConn.connect ("rtmp://RemoteServer/live");

    Estimate of the server data flow

    application.myStream = Stream.get ("livestream");

    application.myStream = Stream.get ("livestream");

    If {(application.myStream)

    application.myStream.play ("livestream2", 0, -1, true, application.myRemoteConn);

    }

    The Stream.play () method does not work why?

    What I've done wrong?

    In this case, I recommend a mixture of solution...

    Something like that will be interesting to check:

    var tempSwitchingStream = Stream.get ("myswitchingstream"); create a stream live temp on the server local app...

    tempSwitchingStream.play (livestream1, 0, -1);      Subscribe to tempSwitching to livestream1... That is to say get the content of livestream1 in there... I can also switch to different streams inside... tempSwitchingStream will get the contents of the stream of //switched

    If (tempSwitchingStream) / / if there is

    {

    NS. Attach (tempSwitchingStream);  Subscribe to my net workflow to receive data from tempSwitchingStream

    NS. Publish (livestream, "live");  now flows net is get data from tempSwitchingStream, so publishing those data with the name "livestream" on the connection to the network... NET already know its NetConnection... See above

    }

    Did you get the point? I created a temporary stream that can pass the stream in its method of game and then I push this temporary stream to a remote server...

    However, it is tricky... Majorly, in most cases similar to yours, people write applications on the application of remote server to get the stream and he spend the pull in play method as described in the first method discussed...

  • Built an MSI that does not work under Vista but works under XP

    We have built a MSI file that does not work under Vista but works under XP. No errors occur in the installation.  Running the installation "as Administrator".  But the application does not start without errors.

    You'd better choose to post your question in the developer forum. You can try the MSDN forums below, but you should definitely provide more details when you do.

    MSDN forums - http://social.msdn.microsoft.com/Forums/en-US/categories MS - MVP - Elephant Boy computers - don't panic!

  • Reference software does not work under Windows 7

    Reference 9, a bibliographic database program, does not work under Windows 7.  It worked fine under XP.  Support of reference people were a great help and I'm stuck with the program so far.  The program opens and can be saved, but when you do a search, the first research work, but a second search will generate a message 'quote has stopped working.  A problem caused the program to sop work correctly.  Windows will close the program and notify you if a solution is available. "Then you must click on the" close program"button to close the program and then re - start.

    Are you sure that all the prerequisites for the program have been installed (like the .net Framework or VC ++ runtime libraries)?

    In addition, is the version of the reference program tested by the people of tech reference that same as you use?

    Please make sure the version of the program made for Windows 7 is available, and if yes, you can use this version of Windows 7.

    A work around:

    If the program fails to work, even if all prerequisites have been installed, you can try to install the software in Windows XP Mode (not recommended, but we can not miss this in the case of legacy programs). You can take a look at the following links:

    http://Windows.Microsoft.com/en-us/Windows7/install-and-use-Windows-XP-mode-in-Windows-7

    https://www.Microsoft.com/en-US/Download/details.aspx?ID=8002

  • application of foxpro for Dos does not work under Windows 7 Home Premium 64-bit

    Dear Expert help me!

    My foxpro for Dos application does not work under Windows 7 Home Premium 64-bit. Please advice me! How can I do for running under Windows 7 64-bit

    waiting for early response
    Thank you and regards

    SAIF Ali Sabri
    Faisalabad, Pakistan
    E-mail address is removed from the privacy *.
    + 923007960782

    16-bit applications are not taken charge/does not not on 64-bit Windows

  • The ADF Mobile preview pane does not work under Windows 8.

    The ADF Mobile preview pane does not work under Windows 8 64-bit even I use Jdeveloper 11.1.2.4.0 version, but I use windows 7 64-bit or windows xp works fine.

    How to solve this problem, please.

    Thank you!

    Hello

    I installed JDeveloper 11.1.2.4 on my machine Windows 8 and the extension of the ADF Mobile. I can open the ADF Mobile Viewer. There is therefore no problem with this on Windows 8. I used the generic facility, which is that I have installed the JDK and then run the command for installing JDeveloper Java-jar.

    Frank

  • L10-202: ACPI Module does not work with Linux SUSE 10

    I bought a Toshiba laptop L10-202 a few weeks ago and tried to install SUSE 10 on it. The installation went well but I have some problems with ACPI modules.
    I know that Toshiba recommends Windows XP but I have nowhere to ask for help because I could not find help on Linux forums. I should mention that I've recompiled the kernel because I considered that this was not necessarily.
    So far, the modules ACPI informs me on the temperature of the processor (57 degrees Celsius, the fan starts and at 52 degrees Celsius, it stops) and the only function that works is suspension on HARD drive. The battery level is not indicated because there is no file in/proc/acpi/battery/to read information on the battery. Except another ACPI hardware was detected by SUSE installation and works very well. I couldn't use the Toshiba_acpi module because this laptop has a Phoenix BIOS, but this isn't a big problem.

    You have an idea why ACPI does not work on SUSE and how could I solve the problem?

    Don't you think that there is no danger for the laptop to continue using SUSE, which limited the work of ACPI modules could cause damage to my laptop or it is safe to use SUSE?

    Thank you!

    Hello

    Well well, in my own opinion it s desirable that all functions of the laptop should work properly. But I put t think he might of s for laptop computer continue to use the Suse10.
    I would recommend using the other Linux distribution. That use you the Knoppix. This Linux you can stat from a CD or DVD and it works like a normal Linux operating system and you can also use the Windows XP.

    Little info on ACPI:
    With ACPI, the operating system can turn off devices, such as CD-ROM drives, when they are not in use. Another example: ACPI will enable manufacturers to produce computers that automatically turns on as soon as you touch the keyboard

    Good bye

  • Keyboard does not work under Vista on Satellite L300D

    Dear readers,

    I have a Satelite L300D with Windows Vista 32 bit Home Premium. It is about 5 months and so far I have not had problems.

    Today, I started the book and noticed that I was not able to type my password for Windows.
    I thought, there must be a problem with the keyboard and restarted the laptop.
    I tried to enter the Bios and I wonderd, keyboard worked as expected it. Back to Vista, the keyboard does not work yet.

    I rebooted again and activated Capslock befor the Windowsstartup and looked at the LED.
    Just after the appearance of the Windowslogo, Capslock off a keyboard was dead.
    So I thougt it must be a driver error. I deleted the two driver files Hardware-Director told me where the drivers keyboard, rebooted twice a keyboard had returned to work, but only until the next reboot.

    So I decided to make the recovery of HARD drive and reinstall Windows, thinking, this should fix the problem.

    But it's still there.

    Is there someone who could help me? If this is an error of the driver, is should have disappeared when the laptop is in a State of delivery, right?

    I would be very happy for any advice or help

    Greetings from Berlin

    Thomas

    PS: I want to say sorry for my bad English... :-)

    Hey mate

    > It's about 5 months and until now I didn't have problems.

    I wonder why this keyboard problem happened after 5 months of use?  :|
    This means that this keyboard worked fine using the Vista and the Toshiba Recovery disk operating system but recently stopped working if the Microsoft OS is running.

    In my eyes it s a hardware issue ok, it s really strange that you can use it in the BIOS and the Linux system. But I recommend to contact the ASP (certified partner) in your country and ask if the technician could test with the new keyboard.

    I think that your warranty is valid and therefore everything must be covered by the warranty!

    Good luck

  • Microphone does not work under Windows XP Home - P100

    Hi all

    I am a new user of French a P100-473 series and games. I have it downgrade to Windows XP Home edition for the goal of the game.

    I use conexant high definition driver v 3.11 and its working fine but not the microphone plug on the front of the laptop. I tried all the driver conexant Web 3.12 3.14 and after and the problem is reversed, the microphone does not work very well "using the audio msn Configurator" but I have no sound.

    The driver is working properly, no error, but not sound under windows. Does anyone have a solution for me?
    I have worked on this for 1 week and I really want to resolve the thing, because the cell phone is a great product and on vista, it works like a 486.
    Thank you very much

    Fred

    Hello

    On the Toshiba download page there is unfortunately no driver audio Windows XP Home edition for this laptop preinstalled Vista. Read some other assignments that I found the same reports sound works but mic cannot be used.

    Sorry, but it is clear at the moment, there is no solution to this stupid attachment problem. :(

    Just one last thing: try to install your own Vista without Toshiba has designed tools and utilities and let me know how your P100. ;)

  • back program does not work under XP

    When I try to open this accounting program, the command window opens and a text flashes on the screen, then it goes to a blinking cursor.  This program works very well under Windows 2000.  Is there a way to make it work in XP SP3?

    When I try to open this accounting program, the command window opens and a text flashes on the screen, then it goes to a blinking cursor.  This program works very well under Windows 2000.  Is there a way to make it work in XP SP3?

    Unlike earlier versions of Windows, Windows XP does not rest on the BACK, and as a result, Windows XP does not have a program to do many things that would allow BACK.

    On the other hand, is Windows 2000, such as Windows XP, based on Microsoft's NT operating system, and in general, a program that runs on Windows 2000 must run under XP.  You can compare, for example,
    Troubleshooting in Windows XP MS-DOS-based programs

    with

    Troubleshooting MS-DOS-Based in Windows programs (that applies to Windows 2000)

    and you will see that the documents are virtually identical.

    If the suggestions of "Troubleshooting" in the article XP don't help not (in fact, before judge you), see if you can get your old application work using the Compatibility Mode of Windows XP program.  If the configuration in Windows 2000 does not work, try Windows 95.

  • Windows Update does not work under Vista

    Hello! I have Vista Ultimate 64 bit and a few weeks ago, I noticed that my windows updates had stopped working. I followed the instructions to do a repair of my drive, but got "the upgrade is not available. Press Cancel and then select upgrade to a newer version than what you have "." However, there is nothing that gives me this opportunity. How am I supposed to fix it then?

    I have a feeling that this happened after a service pack has been installed (3?), but as I put it to the automatic updates I have not noticed exactly when he had ceased. I'm frustrated and very frankly also irritated. I paid a fair bit for Vista Ultimate and I'm basically says my drive is useless. I ran the Microsoft Fix It, and he said he solved the problem, but it didn't. I also did a system restore and that do not also not fixed the problem. The error code I get whenever I have try to do an update is 80070490. I saw a lot of messages from people having this same problem, while searching for a solution, so there's obviously a problem somewhere I would appreciate to help get it sorted please.
    Thank you and best regards,
    Sharon

    Cannot install updates in Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2
    http://support.Microsoft.com/kb/2509997

    or

    0 X 80070490 - ERROR_NOT_FOUND
    Corrupted system file; You will need to perform an upgrade on the spot or reinstalling the operating system.

    The error you receive occurs if there is corruption in the manifest of component maintenance base.

    Ignore the title: the "Windows features" dialog box is empty in Windows 7 or Windows Vista, or you receive an error message that includes the following code when you try to use Windows Update: "0 x 80073712".
    http://support.Microsoft.com/kb/931712
    "Explains the SFC / Scannow.

    See also: how to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    A repair install is the usual solution of SFC/scannow does not work.
    However, a repair (AKA In-Place Upgrade) installation will be not solve the problem if it is due to a hijackware infection.

    You receive an error code "0 x 80070490" when you use Microsoft Update or Windows Update Web sites to install updates
    http://support.Microsoft.com/kb/958044

    NB: If you have installed SP1 or SP2 for Vista

    Step 7 (method for Windows Vista), the * UPGRADE option is not available because Service Pack/s are installed and that your operating system is newer than the system you are trying to reinstall, so service pack/s must be removed in this case.

    Uninstall the Service Pack/s: How to uninstall Windows Vista service packs as a troubleshooting step
    http://support.Microsoft.com/kb/948537

    See also:

    How to overcome error 0 x 80070490 when installing updates in Windows Vista/Server 2008
    http://blogs.msdn.com/andrekl/archive/2008/09/29/how-to-overcome-error-0x80070490-when-installing-updates-in-Windows-Vista-Server-2008.aspx

  • CD/DVD does not work under Vista

    I have a laptop Compaq Presario F700 under Windows Vista Home Premium.  For the first year and a half i have owned my laptop, my CD/DVD drive worked perfectly.  A month ago it has stopped working completely.  It does not appear in my computer or Device Manager and it does not open.  I don't think that the drive is defective because it will open when the first Compaq screen shows up, but when the Microsoft Corporation loading screen is up, it stops working.  I used Google to good use, but none of the solutions I found worked.  I tried to delete upper and lower filters but they aren't there, and I tried all the solutions Microsoft Fix - It nothing works.

    Any help is greatly appreciated

    Hello

    Reader might indeed have gone wrong.

    Check with support from Compaq and their forums for known problems.

    Compaq - Support
    http://www.Compaq.com/country/cpq_support.html

    Compaq (HP) - Fourms
    http://h30434.www3.HP.com/PSG/

    Step 1: Please do all the same underneath if you did some before as is often total
    a process that solves the problem.

    Try this - Panel - Device Manager - CD/DVD - double click on the device - driver tab.
    Click on update drivers (this will probably do nothing) - RIGHT click ON the drive - uninstall.
    RESTART this will refresh the default driver stack. Even if the reader does not appear to continue
    below.

    Then, work your way through these - don't forget the drive might be bad, could be a coward
    cable or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs-
    a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to
    for Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error in Windows
    Vista installation after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the manufacturer of system and
    manufacturer of device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD
    Burn and CD and DVD read). So it is not unusual for 1 or 2 operational so that other parts
    do it right.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are
    the entries in registry that the troubleshooter does not solve and those who "might" be the cause.

    Check with your Maker system and a device for the two possible firmware updates and
    the correct registry entries for your car.

    Here are the keys that I of course are those in question - for the subkeys of the CD/DVD drive
    as there will be other subkeys in these keys. Do not forget to ask specific keys involved as well as
    the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    -----------------------------------------------------------------------

    You can probably find more info here and maybe even the exact registry for your CD/DVD settings
    drive from someone with the same model.

    Forums - a lot of expert real help
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Use DevManView to locate the CD/DVD in the registry (be careful and do a prior Restore Point)
    nothing change) - find the DevManView device and then make a right click on it free in RegEdit.

    DevManView - free - an alternative to the standard Windows Device Manager, which displays all the
    devices and their properties in flat table, instead of the tree viewer
    http://www.NirSoft.NET/utils/device_manager_view.html

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • AMD Radeon 7400 (switchable graphics) on dell vostro 3350 does not work under Windows 8 (error code 43)

    Hello

    I just installed Windows 8 and switchable graphics does not work on the system. The most annoying is that I can't use the radeon graphics card, because the stop system it works.

    I've attached a screenshot of what I see:

    What I have tried to solve the problem:

    • Install the latest drivers AMD radeon HD (http://support.amd.com/us/kbarticles/Pages/AMDCatalyst1211betadriver.aspx)
    • Reinstall the driver built-in Intel (HD Graphics 3000)
    • The latest version of the A09 bios for laptop
    Nothing has worked.
    Switchable graphics worked very well under Windows 7 64-bit.
    Help, please!

    and the version of the driver:

Maybe you are looking for

  • Re: Graphics driver for Satellite C640!

    My laptop came with Windows 7 Home Basic Edition. I bought a Windows 7 Ultimate and went to the drivers page for my computer laptop and downloaded and installed everything. Everything seems fine except my graphics. In Device Manager it says 'Standard

  • HP Simplesave does not

    I brought the 1 TB HP SimpleSave two years and used without any problems. Whenever I have plug into the computer it starts to run. Recently encountered this problem, when I plug it into the computer, there is no run at all. He is there not only blue

  • Satellite L300 PSLB8A display, only a black screen

    Hi guys Please help if you can; This morning I turned on my laptop (Satellite L300 PSLB8A-04R004 running Vista family) and all I get is a black screen. I tried removing the battery and turn on while plaugged in the power supply, same black screen. I

  • How can I change the iTunes music player?

    I cloned my hard drive for an SSD earlier, so I have 2 identical copies of my library of music on the c: / (my new SSD) and E: drive / (my old hard drive). I want to delete all my music from my SSD and iTunes play entirely from the drive hard, how ca

  • Microsoft Report Viewer

    Hello. I am usig microsoft report viewer. I want to delete a footer on any page. Is this possible?