“Error writing file /root/RavenLite2/RavenLite.ini”

Introduction

The Linux installer for Raven Lite 2.0.5 has a bug that causes it to try to installing “Raven Lite.ini” to the wrong path. During installation  you will see an error dialog, “Error writing file /root/RavenLite2/RavenLite.ini”.

Solution #1

  1. Download RavenLite.zip.
  2. Unzip “RavenLite.zip” to create the file “RavenLite.ini”.
  3. Copy “RavenLite.ini” to “~/RavenLite2”.

Solution #2

Create a text file “~/RavenLite2/Raven Lite.ini” with the following contents:

# Java VM arguments for Raven

-XX:MaxRAMPercentage=60
-cp lib\*;jre\bin\*
-Djava.library.path=jre\bin
--add-exports=java.desktop/java.awt.dnd.peer=javafx.swing
--add-exports=java.desktop/sun.awt=javafx.swing
--add-exports=java.desktop/sun.awt.dnd=javafx.swing
--add-exports=java.desktop/sun.awt.image=javafx.swing
--add-exports=java.desktop/sun.java2d=javafx.swing
--add-exports=java.desktop/sun.swing=javafx.swing

Further Troubleshooting

Some users report that Raven Lite will not launch, even after following the advice above. When they  attempt to launch Raven Lite by typing the following in Terminal

$ cd /opt/RavenLite2
$ ./RavenLite.sh

They see the following in response:

--add-exports=java.desktop/sun.swing=javafx.swinggingwing
Error: Could not find or load main class
Caused by: java.lang.ClassNotFoundException:

This problem is caused by the use of improper line endings in “Raven Lite.ini”. Raven Lite is expecting a Unix/Linux line ending, that is a single line feed (ASCII 10) at the end of each line. If your text editor uses a Window line ending (carriage return followed by a line feed), Raven will not be able to read “Raven Lite.ini”.

Windows/DOS

  • Carriage Return (CR) + Line Feed (LF), escape sequence: “\r\n”
  • hex: 0x0D 0x0A, dec: 13 10

Linux/Unix, Mac from OS X a.k.a macOS

  • Line Feed (LF), escape sequence: “\n”
  • hex: 0x0A, dec: 10
Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support