Hi guys,
This is not extremely important (at least I can find another way to do what I want to do) but I noticed a small problem when trying to run rainbow from the command line :
julien@ubuntuSERVER:~/okapi/lib$ java -jar rainbow.jar -x TranslationKitCreation /home/julien/test.html -o /home/julien/test/xliff
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
at org.eclipse.swt.widgets.Display.create(Unknown Source)
at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
at net.sf.okapi.applications.rainbow.Main.main(Main.java:33)
Before that, there was another error, that mentioned missing libraries, so for the record, if anyone bumps into it I could fix that one by installing package "libswt-gtk-3-java" on my Ubuntu Server 16.04 LTS
julien@ubuntuSERVER:~/okapi/lib$ java -jar rainbow.jar -x TranslationKitCreation /home/julien/test.html -o /home/julien/test/xliff
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-pi-gtk-4528 in java.library.path
no swt-pi-gtk in java.library.path
/home/julien/.swt/lib/linux/x86_64/libswt-pi-gtk-4528.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
Can't load library: /home/julien/.swt/lib/linux/x86_64/libswt-pi-gtk.so
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.gtk.OS.<clinit>(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
at net.sf.okapi.applications.rainbow.Main.main(Main.java:33)
I want to insist on the fact that this is Ubuntu Server with no desktop environment, no graphical anything (it seems there is a need for gtk2 as well), because I don't have a need for it. This is a bit of a pity that I'm not able to run through command line, when all I need is to generate files. I am not installing Eclipse just to run this command... ;)
FYI, this is the same machine where I run Longhorn, which runs great as expected.
Of course, if I am doing something wrong, please let me know!
Thanks,
Julien