Start-up Errors

From SONIVIS:Wiki

(Redirected from Startup-Errors)
Jump to: navigation, search

If you encounter any errors on startup and there are no entries in <sonivistool>/LogbackFile.log or in <sonivistool>/.metadata/.log then please copy this batch file to <sonivistool> directory and use it (in windows) to start the tool. This will output detailled error messages.

@echo off

set R_HOME=R-2.7.0
set PATH=%PATH%;%R_HOME%\bin;%R_HOME%\library\rJava\jri;%R_HOME%\library\RMySQL\libs
set CLASSPATH=%CLASSPATH%;%R_HOME%\library\rJava\jri
:: set path to eclipse folder. If local folder, use '.'; otherwise, use c:\path\to\eclipse
set ECLIPSEHOME=.
 
:: get path to equinox jar inside ECLIPSEHOME folder
for /f "delims= tokens=1" %%c in ('dir /B /S /OD %ECLIPSEHOME%\plugins\org.eclipse.equinox.launcher_*.jar') do set EQUINOXJAR=%%c
 
:: start Eclipse w/ java
echo Using %EQUINOXJAR% to start up Eclipse...
jre\bin\java -Xmx1G -jar  "%EQUINOXJAR%" -debug
::SONIVISTool.exe
pause

And for Linux:

#!/bin/bash

# set path to eclipse folder. If local folder, use '.'; otherwise, use /path/to/eclipse/
eclipsehome=".";

# get path to equinox jar inside $eclipsehome folder
cp=$(find $eclipsehome -name "org.eclipse.equinox.launcher_*.jar" | sort | tail -1);

# start Eclipse w/ java
java -cp $cp org.eclipse.equinox.launcher.Main ...
Personal tools