“Error writing file /root/RavenPro1.6/RavenPro.ini”

Introduction

The Linux installer for Raven Pro 1.6.5 has a bug that causes it to try to installing “RavenPro.ini” to the wrong path. During installation  you will see an error dialog, “Error writing file /root/RavenPro1.6/RavenPro.ini”.

Solution #1

  1. Download RavenPro.zip.
  2. Unzip “RavenPro.zip” to create the file “RavenPro.ini”.
  3. Copy “RavenPro.ini” to “~/RavenPro1.6”.

Solution #2

Create a text file “~/RavenPro1.6/RavenPro.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 Pro will not launch, even after following the advice above. When they  attempt to launch Raven Pro by typing the following in Terminal

$ cd /opt/RavenPro1.6
$ ./RavenPro.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 “RavenPro.ini”. Raven Pro 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 “RavenPro.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