A
A
Anatoly2018-04-27 18:17:26
Java
Anatoly, 2018-04-27 18:17:26

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

1 answer(s)
A
Anatoly, 2018-04-28
@TonyWrong

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 question

Ask a Question

731 491 924 answers to any question