No console output in Eclipse Juno

痞子三分冷 提交于 2019-11-26 20:57:39

问题


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.


回答1:


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.




回答2:


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:




回答3:


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




回答4:


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




回答5:


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:




回答6:


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




回答7:


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.




回答8:


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

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




回答9:


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.




回答10:


Solved it by cleaning the .metadata




回答11:


Go to Window->Show View -> Console



来源:https://stackoverflow.com/questions/18504493/no-console-output-in-eclipse-juno

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!