yoursdearboy / omegat-browser

Plugin for OmegaT for fast access to websites using Groovy scripts
15 stars 2 forks source link

"Browser script" option missing from OmegaT Tools menu #3

Open jaavieer opened 6 years ago

jaavieer commented 6 years ago

Dear all, I'm trying to use DeepL with OmegaT and have downloaded the omegat-browser-1.2 plugin. I have put it in the right folders in Windows and Linux and the option becomes available in the Windows version of OmegaT but not in Linux. Instead, I get this error message: An error occurred while processing an application startup event java.lang.NoClassDefFoundError:javafx/application/Platform Linux Mint 18.1, OmegaT 4.1.3_2 and 4.1.2 Thanks for your help! jh

yoursdearboy commented 6 years ago

Hi @jaavieer, It may be because there's no JavaFX in Linux Mint by default. Try to get it using next command: sudo apt-get install openjfx or sudo apt-get install libopenjfx-java Please tell me whether it works.

jaavieer commented 6 years ago

Many thanks, yoursdearboy! It didn't work. jh

yoursdearboy commented 6 years ago

I wonder whether packages have been successfully installed? I'll try to find a fix a bit later.

jaavieer commented 6 years ago

Thanks! jh

2018-03-14 11:37 GMT+01:00 Kirill Voronin notifications@github.com:

I wonder whether packages have been successfully installed? I'll try to find a fix a bit later.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yoursdearboy/omegat-browser/issues/3#issuecomment-372976365, or mute the thread https://github.com/notifications/unsubscribe-auth/AjYptmie2vuucK8MFAPiuOB8hWxtsWznks5tePLfgaJpZM4SkF04 .

-- skype id: javier-herrera http://twitter.com/javier_herr www.javierh.net

yoursdearboy commented 6 years ago

OK. Another reason may be that you use Java 7, but Java 8+ required. Can you run the next command in terminal and show its output java -version?

After executing next command everything should work: sudo apt-get install default-jre openjfx libopenjfx-java You can reference this guide on how to install Java 8 on Ubuntu/Mint.

jaavieer commented 6 years ago

Thanks again, yoursdearboy, This didn't work either. Java seems to be successfully updated, but to no avail. jh

yoursdearboy commented 6 years ago

Hi. Can you show java -version output?

jaavieer commented 6 years ago

openjdk version "1.8.0_131" OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11) OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

yoursdearboy commented 6 years ago

Ok. I've tried to install the plugin on my Ubuntu and it works. Please, show output of the next commands: dpkg -l | grep jfx and which omegat Also, how did you install OmegaT - from website or repository?

jaavieer commented 6 years ago

dpkg -l | grep jfx ii libopenjfx-java 8u60-b27-4 all JavaFX/OpenJFX 8 - Rich client application platform for Java (Java libraries) ii libopenjfx-jni 8u60-b27-4 amd64 JavaFX/OpenJFX 8 - Rich client application platform for Java (native libraries) ii openjfx 8u60-b27-4 amd64 JavaFX/OpenJFX 8 - Rich client application platform for Java


which omegat: [no output]


I'm using an OmT version from the website. In case it's any help, I downloaded and unzipped the package and then I enter /usr/bin/java -jar OmegaT.jar every time I need to open it. There isn't an icon I can hit. Thanks again for all the care!

yoursdearboy commented 6 years ago

No problem. Hmm, everything looks good.. Can I ask you to show the full output of java -jar OmegaT.jar and update-alternatives --display java?

jaavieer commented 6 years ago

Output of usr/bin/java -jar OmegaT.jar: 18659: Info: =================================================================== 18659: Info: OmegaT-4.1.3_2_10257 (Fri Mar 23 11:26:53 CET 2018) Locale es_ES 18659: Info: Java: ver. Oracle Corporation 1.8.0_131, ejecutado desde '/usr/lib/jvm/java-8-openjdk-amd64/jre' (LOG_STARTUP_INFO) 18659: Info: Jar usado con complementos: 'file:/home/oem/Documents/NEC%20OTIUM/OmT%20última%204.1.3/plugins/okapiFiltersForOmegaT-1.0-m30.jar' (PLUGIN_LOAD_JAR) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.xliff.XLIFFFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.text.TextFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneEnglishTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.HunspellTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.core.machinetranslators.BelazarTranslate' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.gui.scripting.ScriptingWindow' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.gui.glossary.taas.TaaSPlugin' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.externalfinder.ExternalFinder' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.subtitles.WebVttFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.infix.InfixFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneRussianTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneSmartChineseTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneThaiTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneLatvianTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.text.ini.INIFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.openxml.OpenXMLFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneCatalanTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneBrazilianTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.resx.ResXFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.core.machinetranslators.MicrosoftTranslatorAzure' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.xhtml.XHTMLFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.visio.VisioFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.android.AndroidFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneGermanTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.xtagqxp.XtagFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneNorwegianTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.hhc.HHCFilter2' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.core.machinetranslators.MyMemoryMachineTranslate' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.properties.PropertiesFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneCJKTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneCzechTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.gui.editor.mark.ComesFromMTMarker' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.flash.FlashFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.schematron.SchematronFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.html2.HTMLFilter2' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneBasqueTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneSwedishTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.latex.LatexFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneGalicianTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LucenePolishTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneTurkishTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.relaxng.RelaxNGFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.wordpress.WordpressFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneDanishTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LucenePersianTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.camtasiawindows.CamtasiaWindowsFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.subtitles.SbvFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.core.spellchecker.SpellCheckerMarker' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.core.machinetranslators.MosesTranslate' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.docbook.DocBookFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.pdf.PdfFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.subtitles.SrtFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.core.machinetranslators.ApertiumTranslate' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.svg.SvgFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.core.machinetranslators.MyMemoryHumanTranslate' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.mozlang.MozillaLangFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneSpanishTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.txml.TXMLFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LucenePortugueseTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneHindiTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.mozdtd.MozillaDTDFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneBulgarianTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.wix.WiXFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.DefaultTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.l10nmgr.L10nmgrFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneJapaneseTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.helpandmanual.HelpAndManualFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.po.PoFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.core.machinetranslators.Google2Translate' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.core.machinetranslators.YandexTranslate' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneItalianTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.text.magento.MagentoFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneFinnishTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneHungarianTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneFrenchTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.xmlspreadsheet.XMLSpreadsheetFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneRomanianTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.rc.RcFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.text.bundles.ResourceBundleFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.text.dokuwiki.DokuWikiFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.gui.glossary.TransTipsMarker' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneIrishTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneIndonesianTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneGreekTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneArabicTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneArmenianTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.tokenizer.LuceneDutchTokenizer' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters2.text.ilias.ILIASFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.opendoc.OpenDocFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'org.omegat.filters3.xml.typo3.Typo3Filter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'net.sf.okapi.lib.omegat.XLIFFFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'net.sf.okapi.lib.omegat.XLIFF2Filter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'net.sf.okapi.lib.omegat.DoxygenFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'net.sf.okapi.lib.omegat.TTXFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'net.sf.okapi.lib.omegat.TXMLFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'net.sf.okapi.lib.omegat.TransifexFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'net.sf.okapi.lib.omegat.HTMLFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'net.sf.okapi.lib.omegat.JSONFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'net.sf.okapi.lib.omegat.IDMLFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'net.sf.okapi.lib.omegat.XMLFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Complemento de la clase 'net.sf.okapi.lib.omegat.TSFilter' descargado correctamente (PLUGIN_LOAD_OK) 18659: Info: Docking Framework version: 2.1.5 18659: Advertencia: Keyboard shortcut is invalid: gotoNextTranslatedMenuItem=ctrl shift ñ 18659: Info: Evento: arranque de la aplicación (LOG_INFO_EVENT_APPLICATION_STARTUP) 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/strip_bidi_marks.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/replace_strip_tags.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/gui_scripting.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/issue_provider_sample.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/currency_translate.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/replace_with_match_no_tags.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/spellcheck.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/check_same_segments.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/check_same_segments.js' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/open_tm_folder.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/merge_split.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/keybinding.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/adapt_tags_to_match_target.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/open_glossary.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/modify_segment.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/auto_open_last_project.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/toolbar.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags_it.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/extract_text_content.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/gui_scripting_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/svn_cleanup_selected_sv.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/strip_bidi_marks_sv.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/svn_cleanup_selected_fr.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags_ia.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/auto_open_last_project_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_ru.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_fr.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_nl.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/strip_bidi_marks.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/merge_split.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/strip_bidi_marks_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/open_glossary_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags_be.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/nbsp_it.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_sv.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/nbsp_pt_BR.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace_fr.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/strip_bidi_marks_fr.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/nbsp_cs.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_no.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_ia.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/strip_bidi_marks_it.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/nbsp_no.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_pt_BR.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags_pl.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/toolbar_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/nbsp_ia.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_no.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/strip_bidi_marks_ia.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_pt_BR.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/strip_bidi_marks_pt_BR.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace_cs.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace_nl.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags_ru.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace_eu.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_uk.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace_pl.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_it.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_pl.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/open_project_save_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/svn_cleanup_selected.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace_no.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/nbsp_pl.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/issue_provider_sample.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/modify_segment_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/strip_bidi_marks_be.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_nl.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/nbsp.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_eu.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/extract_text_content_fr.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/strip_bidi_marks_pl.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace_sv.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace_it.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_sv.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags_no.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags_sv.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace_pt_BR.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_eu.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/open_current_file_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags_pt_BR.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/show_same_segments_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags_fr.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/currency_translate_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace_ru.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_cs.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/nbsp_sv.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_be.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags_nl.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_it.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_ru.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/open_folder_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_be.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_pl.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/svn_cleanup_selected_it.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags_uk.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_fr.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/nbsp_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_uk.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/nbsp_nl.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace_ia.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/nbsp_fr.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/strip_bidi_marks_cs.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/search_replace_be.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_strip_tags_cs.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_ia.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/spellcheck_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_cs.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/check_rules_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/nbsp_be.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/strip_bidi_marks_no.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/merge_split_ru.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/keybinding_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/replace_with_match_no_tags_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/strip_bidi_marks_nl.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/properties/open_tm_folder_ja.properties' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/search_replace.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/deepl.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/nbsp.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/open_project_save.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/external_spellcheck.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/switch_colour_theme.js' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/extract_text_content.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/open_current_file.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/check_rules.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/open_folder.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/show_same_segments.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/svn_cleanup_selected.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/bad_extension.grvy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/write_table.groovy' added 18659: FINER: File '/home/oem/Documents/NEC OTIUM/OmT última 4.1.3/scripts/readme.txt' added 18659: Info: Motores de programas disponibles: 18659: Info: - Oracle Nashorn ECMAScript v.ECMA - 262 Edition 5.1 (extensiones: js) 18659: Info: - Groovy Scripting Engine Groovy v.2.4.12 (extensiones: groovy)


Output of update-alternatives --display java: java - modo automático link best version is /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java el enlace apunta actualmente a /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java link java is /usr/bin/java slave java.1.gz is /usr/share/man/man1/java.1.gz /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java - prioridad 1081 esclavo java.1.gz: /usr/lib/jvm/java-8-openjdk-amd64/jre/man/man1/java.1.gz

yoursdearboy commented 6 years ago

I don't see any messages about the plugin. There must be a message with text "Plugin ... from class 'com.yoursdearboy.omegat.plugins.browser.BrowserPlugin' ...". Do you have omegat-browser-1.2.jar in ~/.omegat/plugins directory or in plugins directory where you unzipped OmegaT?

jaavieer commented 6 years ago

Hi yoursdearboy, It's sorted! omegat-browser-1.2.jar was in /.omegat/browser-scripts. Now I've put it in /plugins instead and it works. It's been great help, because I had already tried it in /plugins before and it hadn't worked. I'm sure what did the trick was updating Java. Many thanks! Have a nice weekend! jh

yoursdearboy commented 6 years ago

Great. You too. I close the issue and update README on Java.

djyy1981 commented 5 years ago

Hi yoursdearboy, It's very helpful in boostering translational efficiency, and may i make some suggestions? Could u add sogou translation engine (http://translate.sogou.com/) and baidu? Many thanks!

yoursdearboy commented 5 years ago

@djyy1981 I'll take a look when I have spare time. Moved your comment to a separate issue.

yichuang-zh commented 5 years ago

Hi, The plugin runs in OmegaT version 4.3.0 OK, but 5.0.0 failed. When start OmegaT, thers is an error"java.lang.NoClassDefFoundError: javafx/application/Platform" on the screen. And, within the menu tools, thers is no "Open browser scripts" and "Browser scripts". How can I fix it?

My OS: Debian Stretch 9.11 / Gnome /OmegaT 5.0.0 with jre 64bit

I had tested the version 5.0 of "Cross-platform without JRE", there is a google translate window, but nothing with blank in the window. And, there is no error when start OmegaT.

yoursdearboy commented 5 years ago

Damn Oracle. Now they removed JavaFX from their distribution! I've updated README on this.

Hi @yichuang-zh. This java.lang.NoClassDefFoundError: javafx/application/Platform means you have no JavaFX installed. Please, check README. Probably you need to install openjfx package from Debian repository.

As for 5.0.0 version - I haven't tested the plugin with it.

yichuang-zh commented 5 years ago

Hi, I

Hi @jaavieer, It may be because there's no JavaFX in Linux Mint by default. Try to get it using next command: sudo apt-get install openjfx or sudo apt-get install libopenjfx-java Please tell me whether it works.

I installed openjfx this way, then, the 5.0.0 version of "Cross-platform without JRE" worked good, google translate worked fine.

Thank you~

Debian Stretch 9.11 / gnome

sweney commented 4 years ago

Excuse my stupidity, but I am sorely missing the browser plug-in, I'm running OmegaT 5.1 on Mac OS 10.15.2 and the Terminal shell is zsh, which returns a "command not found" for apt-get. Could someone help me with the proper command in zsh?

sweney commented 4 years ago

Or alternatively, I have downloaded the files from gluon, but could use some polite advice on where to put them.

yoursdearboy commented 4 years ago

Hi @sweney.

You don’t have apt-get on MacOS, that’s alright.

Probably you are missing JavaFx (which is provided by Gluon). Have you downloaded “JavaFX Mac OS X SDK” from their website?

sweney commented 4 years ago

Yes, thank you, I am missing JavaFx and I have downloaded the SDK from their website, but where exactly do I put the files? I've tried putting the lib folder files into: Applications>OmegaT>Contents>Java>lib without luck and there is no bin folder there, nor can I find a lib or bin folder under Java, for example here User>Library>ApplicationSupport>Oracle>Java

Sweney

yoursdearboy commented 4 years ago

@sweney have you tried to put those jars to the plugins folder too?

I'd see whether it works on my Mac.

paulmura commented 4 years ago

Hi,

I am Running OmegaT 5.2 under Ubuntu 18. Tested the cross-platform version and the JDK embedded version. Both versions failed to run the plugin and output the same error, implying that the javafx/application/Platform class definition cannot be found. I checked that all javafx packages were installed (they were), ran update alternatives for Java (OK, OpenJDK 11). I am bit at a loss as to why it still doesn't work. Maybe have you an idea or suggestion? FYI, logs below:

1. OmegaT with JRE embedded gives the following error: Log: (...) 19960: Info: Moteurs de script disponibles : 19960: Info: - Groovy Scripting Engine Groovy v.2.5.9 (extensions : groovy) 19960: Info: - Oracle Nashorn ECMAScript v.ECMA - 262 Edition 5.1 (extensions : js) 19960: Erreur: java.lang.NoClassDefFoundError: javafx/application/Platform 19960: Erreur: at com.yoursdearboy.omegat.plugins.browser.BrowserPlugin$2.onApplicationStartup(BrowserPlugin.java:40) (...)

OmegaT cross-platform without JDK version (Java version picked by OmegaT at runtime: OpenJDK): 11 (checked with update alternatives): Log outputs the same error (except for the Groovy Engine version): 44610: Info: Évènement : démarrage de l'application (LOG_INFO_EVENT_APPLICATION_STARTUP) 44610: Info: Moteurs de script disponibles : 44610: Info: - Groovy Scripting Engine Groovy v.2.5.6 (extensions : groovy) 44610: Info: - Oracle Nashorn ECMAScript v.ECMA - 262 Edition 5.1 (extensions : js) 44610: Erreur: java.lang.NoClassDefFoundError: javafx/application/Platform 44610: Erreur: at com.yoursdearboy.omegat.plugins.browser.BrowserPlugin$2.onApplicationStartup(BrowserPlugin.java:40)

Anyway, many thanks for your plugin.

SergioDaroca commented 3 years ago

This solution worked for me: https://github.com/yoursdearboy/omegat-browser/issues/14#issuecomment-750427448

yoursdearboy commented 3 years ago

@miurahr could you please take a look at the current state of Gradle build scripts and Github actions to suggest how to change notice on Java and JavaFX versions in Installation section of README?

Probably Java version must be at least 11 (release action uses it). And JavaFX doesn't matter at all, since now it is bundled with the plugin, right?

Also, in this issue https://github.com/yoursdearboy/omegat-browser/issues/23 @WildGenius mentions that OmegaT now comes with its own Java. Do you have any info on this? Whether it >= 11 and comes with JavaFX?

miurahr commented 3 years ago

OmegaT binary distribution with JRE bundles JRE8 (AdoptJDK "1.8.0_275-b01") that do't include JavaFX.

Comparison between Oracle JDK and AdoptJDK

And @amake explains "OmegaT does not claim compatibility with Java 14. We officially support only Java 8 and Java 11 for now." in the issue: https://sourceforge.net/p/omegat/feature-requests/1525/

Because Java 11 don't have JavaFX, so we should detect Java version, and when detecting Java 11 on user platform, we need to handle external JavaFX modules.

Release action uses Java 11 but source/binary compatibility are set to 8, so the plugin will run on Java 8 and 11.

miurahr commented 3 years ago

You can modify Linux launcher /usr/local/bin/omegat

From

#!/bin/bash

# readlink follows any symbolic links to get the real file
REALOMEGATPATH=`dirname "$(readlink -nf $0)"`

JAVA="java"
BUNDLED_JAVA="${REALOMEGATPATH}/jre/bin/java"
[ -f "${BUNDLED_JAVA}" ] && JAVA="${BUNDLED_JAVA}"

"${JAVA}" -jar -Xmx8096M "${REALOMEGATPATH}/OmegaT.jar" "$@"

TO

#!/bin/bash

# readlink follows any symbolic links to get the real file
REALOMEGATPATH=`dirname "$(readlink -nf $0)"`

JAVA="java"
BUNDLED_JAVA="${REALOMEGATPATH}/jre/bin/java"
[ -f "${BUNDLED_JAVA}" ] && JAVA="${BUNDLED_JAVA}"

version=$("$JAVA" -version 2>&1 | awk -F '"' '/version/ {print $2}' | awk -F '.' '{print $1}')
if [[ "${OPENJFX_CLASSPATH}" ]] && [[ "${version}" == "11" ]]; then
    "${JAVA}" --module-path ${OPENJFX_CLASSPATH} --add-modules=javafx.base,javafx.controls,javafx.swing,javafx.web -jar -Xmx1
024M "${REALOMEGATPATH}/OmegaT.jar" "$@"
else
    "${JAVA}" -jar -Xmx1024M "${REALOMEGATPATH}/OmegaT.jar" "$@"
fi

Then user can run OmegaT-browser even on Java 11 when setting environment variable 'OPENJFX_CLASSPATH'