jshell depends on some windows registry?
Robert Field
robert.field at oracle.com
Wed May 4 17:15:16 UTC 2016
We need to be able to store and retrieve info between JShell tool sessions.
Perhaps we should have a backup of Preferences fails?
-Robert
On May 4, 2016 7:14:07 AM Roger Riggs <Roger.Riggs at oracle.com> wrote:
> Hi Robert,
>
> Is there any alternative to the Preferences API. What state is stored
> in it?
>
> It would be better not to have too many dependencies in JShell.
>
> Thanks, Roger
>
>
> On 5/4/2016 12:48 AM, Robert Field wrote:
>> Hi Max,
>>
>> There is no concept of "installing" jshell beyond having JDK9 installed.
>>
>> The jshell tool uses the Java Preferences API, which seems to be
>> failing in this case -- the Preferences API uses platform specific
>> functionality to save/restore preferences.
>>
>> I don't know the specifics of how it works on different platforms --
>> anybody have an idea what is going on here? We may need to file a
>> Preferences bug.
>>
>> Just to be sure everything is lined up right, can you do:
>>
>> java -fullversion
>>
>> jshell -fullversion
>>
>> Thanks,
>> Robert
>>
>>
>> On 05/03/2016 09:32 PM, Weijun Wang wrote:
>>> I copied the images to my own computer (without running any
>>> installer) and running jshell in jdk9/b116 shows this
>>>
>>> $ jshell
>>> May 04, 2016 12:30:25 PM java.util.prefs.WindowsPreferences <init>
>>> WARNING: Could not open/create prefs root node
>>> Software\JavaSoft\Prefs at root 0x80000002. Windows
>>> RegCreateKeyEx(...) returned error code 5.
>>> | Welcome to JShell -- Version 9-ea
>>> | For an introduction type: /help intro
>>>
>>> jshell>
>>>
>>> Then if I enter anything, it just hangs forever.
>>>
>>> Must I install it? What if I am building my own jdk?
>>>
>>> Thanks
>>> Max
>>
>
More information about the kulla-dev
mailing list