I have an issue with Eclipse that has baffled me and I've tried everything I know to try.
I have the simplest print statement:
public class Test {
public static void main(String[] args){
System.out.print("test");
}
}
When I open eclipse from the .exe file (or any shortcut) this executes, and leaves a <terminated> main[Java Application] ...
note above the console, but there is no output.
If I open Eclipse from the installer (clicking the launch button after the install completes) this prints and works fine.
When opening from the .exe (without re-installing eclipse) NONE of my other applications will print to the console. Creating a new java project and writing a "hello world" application also does nothing.
I'm not 100% familiar with eclipse, but I have checked all the following:
- I am using 64 bit versions of both Eclipse and jre
- Verified "Allocate Console" is checked in the run configurations from this
- Not getting any errors in the Event Viewer or anywhere visible in the console/Eclipse
- Can run the application from the command line and DO get output this way.
- Checked the dropdown/toggle on the console and viewed all versions, the output is not on any of them.
- Restarted Eclipse, and the Machine in case there were any orphaned instances of the app running causing this behavior.
- Deleted and created a new workspace with a new "Hello World" project.
Because of #4 and the fact that this was working not that long ago convinces me this is an Eclipse issue.
Note
I am on a Windows 7 64 bit machine.
Using Eclipse Neon
jdk1.8.0.101
I can temporarily work around this issue by running the installer, "installing" Eclipse (which is fast, because it's already installed) and then clicking the "Launch" button that shows up afterwards. When I do this, the print statement works and the application runs as expected.