Answer the question
In order to leave comments, you need to log in
Why doesn't JShell editor save code?
jdk-10.0.1 windows 10
I launch the editor in JShell, I write code there, I press Accept, I launch it again, and all the text is gone except for the first line! If you repeat this cycle of actions, then another line is added there, and so on.
Help me please.
I tried to put another editor /set editor
, but the same garbage happens ...
Answer the question
In order to leave comments, you need to log in
Since saving the code via /edit does not work, I used an alternative solution:
by default, JShell on Windows saves and opens files from the user's home folder, so it's quite convenient to simply create files with code in this place in any convenient editor and run them from JShell using/open filename
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question