System.out not working on eclipse

Greetings...
I am no longer a newbie on Java, but I have been facing an issue lately that I have been unable to resolve myself, even though it seems to be something so silly.
I have been using eclipse for development, and by developing a simple "Just to practice" code I have found myself unable to use System class or any of its methods at a certain point. See the code below:
package one;
import java.util.Scanner;
public ClassOne {
public static void main (String args[]){
Scanner reader = new Scanner(System.in); /*Works just fine here*/
int x = 0;
System.out.println("Type in the number of objects expected"); /*Does not work at all, like if System was something I could not use at all. Not an identifier */
Scanner readertwo = new Scanner(System.in); /*System does not work here either*/
}Even if I rewrite the code after that, by erasing the import statement and all other System references in the code, System does not work again.
If anybody has ever faced the same issue and knows what I am doing wrong and what I can do to fix it, I'd really be grateful.
Thanks to all, and happy 2009.
Santana T

Santana_Thiago wrote:
It works on NetBeans.
On eclipse I get the following error:
ERROR: JDWP Unable to get JNI 1.2 Environment, jvm->GetEnv() return code = -2+
*JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]*+
The funniest thing is that if copy and paste the code from somewhere else into eclipse it works. What a drag!!!!
Thank you.
Santana TNever seen that error but it sounds to me that your Eclipse installation is screwed up!

Similar Messages

  • My sound system is not working after my last updates on my imac,what shall i do to get fixed?

    Hello any body who can help me out here?
    My sound system is not working on my imac after the last updates,
    WHAT SHALL I DO FOR????

    apollos211,
    You marked this as solved, so chances are no one else will respond.
    You can try going Applications>utilities>audio MIDI set up, output tab and check to see if built in is selected.
    Also check in system preferences>sound >output and see what is selected there.
    If you look in the headphone port and see a red light (this means it is in digital mode), try taking a set off headphones and plugging them in and out several times also wiggle them around gently. There is a micro switch that sometimes gets stuck.
    Hope this helps, if still no joy try reposting so that more contributers might check it, as once checked as solved it reduces the number of people checking.
    All the best

  • External sound system is not working

    Hi, the sound system is not working for my MacBook. It is working perfectly for my PC, however, when I plug it into my mac, every sound playing is being paused (e.g. iTunes are being paused on the second playing). What could be the issue?

    That is what I am asking. It just does not make since that the Macbooks audio out/headphone plug works on some systems and not on that particular system.
    If the system you are trying to use does not plug into the AC wall socket to get power then that could be one of the problems. But I believe you have try to tell us that is does plug into the AC wall plug and then plugs into the Macbooks headphone plug.
    Is it possible that the Jack on the sound system you are experiencing problems with is bad?
    Does the sound actually pause or just cut sound in/out similar to how a loose speaker wire might sound like?
    Have you tried using this sound system on a different computer to see if the problem still exist?

  • Security and privacy system preferences not working after Lion install.  What to do?

    Security and privacy system preference not working after Lion install.  Not sure if it happen with Lion installer or after updating. What to do?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Terminal in the page that opens.
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” (without the quotes) and press return. You should then get a new line ending in a dollar sign.
    Step 1
    Copy or drag — do not type — the line below into the Terminal window, then press return:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
    Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.) You can omit the final line ending in “$”.
    Step 2
    Repeat with this line:
    sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}'
    This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning.
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step.
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null
    Important: If you synchronize with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting.
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
    Remember, steps 1-5 are all drag-and-drop or copy-and-paste, whichever you prefer — no typing, except your password. Also remember to post the output.
    You can then quit Terminal.

  • My sound system does not work AFTER installing pc to tv wireless connection

    my sound system does not work after installing hp pc to tv wireles device when I am using lap top for other purposes.

    Hi,
    You don’t install VS2010 on the client PC, then where did the Form Invoice not work? When you run it from another version of VS? Or when you run the application with application.exe?
    Based on your description, one form works well, another form does not. I assume that two forms are in two different projects, then please check the .Net Framework used by the two projects. If they are different, you can use the
    one used by the Form contact for Form Invoice.
    Because this issue is a project issue, I recommend you to consult it on some application forum such as Windows Forms General forum for better support.
    VS General Question forum mainly discusses
    the usage of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help
    System and Visual Studio Editor.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • A device attached to your system is not working!!

    I am trying to connect to Oracle8i Personal Edition through a JDK1.2.1 application using the classes111.zip or classes12.zip package. After running the application I get this error message: UnsatisfiedLinkError: ocijdbc8: A device attached to your system is not working. I you have any idea what is happening, please answer inmediately.

    You are using the oci8 driver so your program is looking for the native mode Oracle Client software. Install the Oracle Client software or use the thin driver.

  • HT1212 my phone touch system has been destroyed i have to make a backup in laptop but when i m connecting ma device to itunes of ma laptop so its saying your device have a paascode like ma phone touch system is not working how should i type ma pass word ?

    my phone touch system has been destroyed i have to make a backup in laptop but when i m connecting ma device to itunes of ma laptop so its saying your device have a paascode like ma phone touch system is not working how should i type ma pass word ??? is there any way to open ma device from laptop nd sync my data , contacts etc to ma laptop ... i have to make my phone repair then...please help with thiss...

    Sorry No, if your screen is broken, then you won't be able to unlock your phone.
    You do backup your phone on a regular basis right?

  • I have hp laptop from last 2 days sound system is not working

    hi my laptop sound system is not working i cant hear the music

    Go to the link below.Enter your Product Number as listed on Service Tag attached to bottom of notebook (may be under battery). You can also get the Product Number by pressing Fn + Esc key. After entering PN, click Next ,then choose Software & Drivers.On the next page use the dropdown to select your OS (probably Windows 7 64bit). A list will populate with drivers. Download & install the latest Audio driver.
    http://h10025.www1.hp.com/ewfrf/wc/siteHome?cc=us&​lc=en
    ```````````````````````````````````````
    If still no sound,try a hard reset, works sometimes.Disconnect all external devices first.
    1-remove power cord and battery
    2-press power button for 30 seconds
    3-reinstall only power cord for first startup.
    4-power on
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Logon to system is not working in ChaRM solman 7.1sp2

    Hello,
    I have configured Urgent change in solman 7.1sp2 version.
    Logon to system is not working in Landscape bar.
    Please help on this.
    Regards,
    Karthik

    No authorization issue. Using the RFC's i am able to logon to satellite system.
    In Solman 7.1 ChaRM , Creation of Request for Change(Rfc) in CRM Web Client UI Interface.
    So they removed Logon action in SMHF, added in Landscape Block in portal page.
    Both Logon to system(Landscape Block) and Maintenance cycle (Related Transcation block) not able to open.
    It doesn't show any error in trace.
    I have created the SAP ticket for the same.
    Rg,
    Karthik

  • The rating system is not working.  I'm using LR 5.4 on a Mac with OS 10.8.5.  Any suggestions please?

    The rating system is not working.  I'm using LR 5.4 on a Mac with OS 10.8.5.  Any suggestions please?

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
    If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html

  • Soundblaster X-Fi Titanium Optical Out not working???

    Hey friends,
    I purchased a Sound Blaster X-Fi Titanium PCIe yesterday to run on Windows 7 64bit to trigger VSTi instruments. I can hear the VSTi play fine when I have headphones plugged into the soundcard but I want to send the audio sound OUT via the Optical Out into my Steinberg MR86x firewire audio card. ?
    I can see the light on the optical cable but no sound seems to be being sent from the sound blaster into the steinberg card.
    ?Now before people start saying you cant do that, I have have been doing this for the last 3 years and it has been great apart from my RME Audio card is not compatible with Windows 7 64bit hence why I purchased the soundblaster.
    I really am at a loss as to what I can try next, I have been through this forum and tried a few recommended tweaks but nothing? Am I missing something obvious here?
    I am using the following drivers
    Driver: v2.7.008 Windows 7 64bit
    DTS Connect: for Windows 7 64bit
    Also in the Audio Control Panel / SPDIF I/O all options are greyed out apart from the Digital Output tickbox, I only want to use this card for Audio as in creating music or specifically for triggering VST synths.
    I would really appreciate any advice
    Thanks in advance
    KiloHurtz

    Re: Soundblaster X-Fi Titanium Optical Out not working?I have same card, same?OS?and lots of problems.
    Analog outputs(control panel->sound->speakers) disappears when boot or reboot, sometimes it works week, sometimes a hours. When it works, it's works ok, but suddenly during boot,?all sounds is lost, when trying launch for example Creative Audio Control Panel this message appears: There are no supported audio device available. You need to close the application. Click OK to close the application now.
    And when analog outputs disappears, no any sound via SPDIF, even it shows in notification area and control panel->sound and in device manager.
    I have owned card about two months, once change card in warranty, and?several uninstall, cleaning traces, reinstall and card works for while?and?out of blue, when boot computer, no sounds at all and only way to get sounds back is driver uninstall, cleaning and reinstall.
    Creative Customer Support seems to be clueless, but make Technical Support Request if problems continue. And all other too, if problems like that appears, contact to Creative, maybe they really try?to do?something abuot it and not just send instructions how to uninstall and reinstall drivers.

  • The operating system does not work

    my friend has white mackook pro, the operating system does not work. When i click the power button, it starts booting but it never open the the welcome window. How i can solve that problem?  i do not have cd from mac OS. thank you.

    If you do not have an install dvd youll have to take it to an iStore ...
    (I doubt he has lion, so the recovery partition doesnt exist)

  • HI,Have 10.10.3 version email system does not work at all it display emails up to the installation of the new version, no incoming or outgoing emails

    HI,
    Have 10.10.3 imac version- email system does not work at all it display emails up to the installation of the new version, no incoming or outgoing emails

    That helped thanks-
    I was able to solve this by deleting all "Envelop Index*"- and "ExternalUpdates*"-files in ~/Library/Mail/v2/MailData. After that I restarted Mail and let it reindex all mailboxes.

  • Sound system is not working. Stand option no more available.

    I have HP pavillion dv 1000. After formatting the laptop, sound system is not working. I can't hear any video sound; stand by and hibernate options are no more available. Please help me.
    This question was solved.
    View Solution.

    Nazia2011 wrote:
    I have HP pavillion dv 1000. After formatting the laptop, sound system is not working. I can't hear any video sound; stand by and hibernate options are no more available. Please help me.
    Well actually, if you really performed the impossible as you stated "formatted the laptop" how could anything work?
    One can format and partition a hard disk which is a component of a laptop. Without reinstallation of an OS how can anything work?
    Please restate in clearer terms what you did to which component to achieve nothing working.
    Identify your notebook in more concise terms than just the series number from the front. Turn your notebook over and look at the tag. Post all but the serial number from the barcoded tag.
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Tv out not working on ios 8? please tell me what is problem?

    When i update my iPhone 4s to iOS 8.1 tv out not working .     Help mee plzz

    If those numers are ordered correctly it sounds like you are using a faulty charger with your iPhone.  It should charge faster with the charger than a USB port as the charger supplies a higher current.  Different batteries are going to charge differently based in part on differences in the ways they have been used.
    Try using your friends charger with your iPhone and see how long it takes to charge compared with your charger.

Maybe you are looking for

  • UCCE 7.5.8 with CAD Agents sitting in India

    Hi all, I've got a scenario and am looking for some inputs. I've got a centralized CUCM 7.1.3 with UCCE 7.5.8 and CAD 7.5.8. Today I only phones at our India office and all is working perfectly fine with no issues. I am looking into having CAD agents

  • Java, VTK and OSGi

    Hi everyone, I am currently working on a Java application based on OSGi (http://www.osgi.org), the dynamic modules framework for Java applications. For this application, I have to create an OSGi bundle embedding VTK, the Visualization ToolKit (http:/

  • Freehand X quits when I go to print

    I just got a 20" iMac Duo. Everytime I go to print from Freehand X the application quits "unexpectedly". But it will sometimes go ahead and print though the print will look pretty crummy. I am printing to a Canon printer (not postscript). I can print

  • TOSHIBA Blu-ray Disc Player not compatible with USB speakers

    I have a P850, using Logitch Z305 USB speakers. The speakers work fine with all other multimedia software such as WMP, iTunes or MPC, but not with TOSHIBA Blu-ray Disc Player. The Toshiba program either won't work or will crash if the speakers are pl

  • $700 over payment... now past due?

    ten year customer.... i made my $70 payment, but fat-fingered the amount, and actually paid $770.  so my account showed a $700 credit.  fabulous!  so the following month when the statement printed, they deducted my following month's charge of $70, an