AFAIK the interaction pane is for running Java code snippets without having to write the class structure etc. You can't run Java.exe from there, for that you need a command prompt.
If the IDE is telling you something is out of sync then recompile it or rebuild your whole project so it gets back in sync.
The thing is Java-Editor works for the 2 examples fine for (5) and (Hello World!!) .. Dr Java works for (Hello world!!) only .. I went to Dr Java - Edit - Preferences - Resource Locations - Tools.jar Location and I typed "C:\Program Files\Java\jdk1.8.0" and I run Compile/Run it works for the (5) fine but not (Hello World!!) anymore, gives me an error "Current document is out of sync with the Interactions Pane and should be recompiled!" it became the other way around!
Campbell Ritchie: Dr Java is not in German, Java-Edit is and I cant change it! If it was English I wouldn't face the problem with Dr Java
I find that post difficult to understand. It sounds more like an IDE than an editor. Follow Tony Docherty's suggestion of running your code from the command line or terminal.
sasa anali wrote:.. I went to Dr Java - Edit - Preferences - Resource Locations - Tools.jar Location and I typed "C:\Program Files\Java\jdk1.8.0"
In this same window, try setting the "Extra Classpath" field to your working directory (where you are saving your Hello.java and Variables.java files). When I used JrJava for a class I was taking I set this "Extra Classpath" to my working directory and it worked fine.
sasa anali wrote:.. I went to Dr Java - Edit - Preferences - Resource Locations - Tools.jar Location and I typed "C:\Program Files\Java\jdk1.8.0"
In this same window, try setting the "Extra Classpath" field to your working directory (where you are saving your Hello.java and Variables.java files). When I used JrJava for a class I was taking I set this "Extra Classpath" to my working directory and it worked fine.
and this is how my journey started being successful!