Apparently, version 5.00.01 does not create ~/.storybook5 directory when it does not exist.
The error (it appears many times, with tons of backtraces):
br@galadriel:.../br/bibisco$ ostorybook
Java VM version:
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2ubuntu0.16.04.2-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
starting oStorybook ...
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Create new Preferences in /home/br/.storybook5/oStorybook.ini
Unable to save Preferences (file not found) Exception:/home/br/.storybook5/oStorybook.ini (No such file or directory)
java.io.FileNotFoundException: /home/br/.storybook5/oStorybook.ini (No such file or directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
[etc...]
If I create ~/storybook5, then launch ostorybook, the message does not appear, the oStorybook.ini is correctly created, and read a following launch;
br@galadriel:.../br/bibisco$ mkdir ~/.storybook5
br@galadriel:.../br/bibisco$ ostorybook
Java VM version:
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2ubuntu0.16.04.2-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
starting oStorybook ...
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Create new Preferences in /home/br/.storybook5/oStorybook.ini
done.
br@galadriel:.../br/bibisco$ ostorybook
Java VM version:
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2ubuntu0.16.04.2-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
starting oStorybook ...
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Load Preferences from /home/br/.storybook5/oStorybook.ini
done.
My system and JRE versions:
br@galadriel:/export/home/br/bibisco$ uname -a; cat /etc/lsb-release
Linux galadriel 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
br@galadriel:/export/home/br/bibisco$ java -version
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2ubuntu0.16.04.2-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
Beside that, PermGen disappeared with Java 8 (thus MaxPermSize parameter).
Thanks !