简体   繁体   中英

No console output in Eclipse Juno

Pretty straight forward. I've been working in Eclipse Juno for a while now and my console always worked. When you output to the console with

System.out.println("Something");

In java, or just when you compile and build your project there's always some output in the console. But today, I started up the IDE, and nothing. No console output. I've restarted Eclipse, reset the perspective.. Nothing is happening.

Using the Java EE version just btw. Any help would be appreciated. Thanks!

SOLVED : So after struggling for how long, I shut down my server. Killed eclipse. And restarted everything and the console is now working again. No idea how this happened in the first place.

There is a small pull-down icon on the right of the console that lets you select which console you want to see. Maybe you accidentally selected a different console.

Go to run as and choose Run Configurations -> Common and in the Standard Input and Output configuration see if Allocate Console is selected.

Run Configurations: 在此处输入图片说明

Commons view: 在此处输入图片说明

You can just re-open the console view from Window>Show View> Console. It worked for me, just before posting the answer here.

for this same i did the following things and it's worked for me

Here's what i did:

[1] Uninstall - Removed all traces of Eclipse (64-bit). - Removed all traces of MinGW (and/or Cygwin). - Removed all traces of Java (SDK and JRE).

[2] Restart PC

[3] Install - Installed latest Java JDK (includes the JRE) 32-bit. - Installed Eclipse IDE (Java Edition) 32-bit. - Installed MinGW (with Msys). - Installed the necessary CDT tools from within Eclipse.

And it works fine!

For installation compiler/CDT installation, i followed this guide (making my own alterations where needed): http://max.berger.name/howto/cdt/cdt.jsp

Hope it works for you! And thanks for the tip-off that it was working 100% on a 32-bit machine. Very Happy

How to System.out to console: Right click on your glassfish (Server Tab) and go to View Log File

在此处输入图片说明

Make sure the console setting is directed at your server.log file:

在此处输入图片说明

Go to run as and choose Run Configurations -> Common and in the Standard Input and Output configuration see if Allocate Console is selected.

Mark file option as ticked and browse to your current workspace. This will work for you

For me, using eclipse-luna the problem was related to a specific workspace. Whenever I used this workspace, one specific plugin failed to do console-output. I re-installed the plugin, I even re.installed eclipse itself and whiped out the ".eclipse-luna" folder, but the problem still was there.

I finally fixed the problem by deleting the folder ".metadata" in this workspace.

I also had no output in the console after some error. The answer from Narendra Pathai worked for me.

  1. Deselect the Allocate Console

  2. Run the application => I got output in my console directly

  3. Select it again

After doing that, I got output.

First Go TO (Window->Show view->Console)

Then select " Show Console when started out changes " icon in the right end of the console window.

通过清理.metadata解决了

转到窗口->显示视图->控制台

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM