Intellij not refreshing executable between runs
Rank newbie here.
I wrote a "Hello world!" program in Java and ran it (in Intellij, using the little green arrow), and saw what I wanted to see.
Just to be sure, I changed the text to "Goodbye, world!" and ran it again. It greeted me with "Hello. world!". Repeated changes of the source code have not changed the output.
I am seeing Make run, and it says it built the code. The output does not change with the code. Same story when I debug.
What did I forget??
Eric
Attachment(s):
HelloWorld.png
Please sign in to leave a comment.
Looks like your project isn't configured properly. Could you please attach .idea directory and *.iml files?
--
Nikolay Chashnikov
JetBrains
http://www.jetbrains.com
"Develop with pleasure!"
Here they are ... it is a zip file, renamed to fool the mailers ...
It looks like the site re-zipped the file. I made a zip file and appended a .TXT extension. Unzip it, rename it to strip of the extension, unzip again. That should do it.
Thanks
Eric
Attachment(s):
java0.zip.txt.zip
Hello,
'java0' module is specified in 'Use classpath of' field in the run configuration in your project. However you don't have 'java0' module in the
project, you have only 'untitled104' module (File | Project Structure | Modules). Although you have 'java0.iml' file (identical to 'untitled104.iml')
under the project root this file isn't imported as a module to the project. So to fix the problem you can open Run | 'Edit Configurations' dialog,
select 'Main' configuration and change 'Use classpath of' field to 'untitled104' module. It's strange that IDEA didn't show error for that
configuration, for me it shows red cross on 'Main' configuration.
--
Nikolay Chashnikov
JetBrains
http://www.jetbrains.com
"Develop with pleasure!"