walidmef
12 years agoNew Contributor
Unable to run LoadUI from command Line Centos
Hi All,
Hi All,
I have been trying to run LoadUI from command line on Centos but I am getting some errors.
The first issue was resolved by converting the loadUI-cmd.sh from dos to unix using fromdos.
Now that loadUI-cmd.sh is working, I am getting the following error: A an error message window pops-up and it has the following:
JavaFX Launcher Error: Unable to invoke main method
Then this is what I get in the shell:
Starting with arguments: [--cmd=true, --nofx=true, -nofx, -Dlog4j.configuration=log4j_headless.xml, -p, walidtest.xml]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.javafx.main.Main.launchApp(Main.java:502)
at com.javafx.main.Main.main(Main.java:638)
Caused by: java.lang.UnsatisfiedLinkError: /usr/local/SmartBear/LoadUI-2.6.8/jre/lib/i386/libjavafx-font.so: /lib/libc.so.6: version `GLIBC_2.11' not found (required by /usr/local/SmartBear/LoadUI-2.6.8/jre/lib/i386/libjavafx-font.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.sun.javafx.runtime.NativeLibLoader.loadLibraryFullPath(NativeLibLoader.java:200)
at com.sun.javafx.runtime.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:88)
at com.sun.javafx.runtime.NativeLibLoader.loadLibrary(NativeLibLoader.java:31)
at com.sun.t2k.T2KFontFactory$1.run(T2KFontFactory.java:58)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.t2k.T2KFontFactory.<clinit>(T2KFontFactory.java:55)
at com.sun.javafx.font.PrismFontLoader.getSystemFontSize(PrismFontLoader.java:474)
at javafx.scene.text.Font.getDefaultSystemFontSize(Font.java:69)
at javafx.scene.text.Font.getDefault(Font.java:85)
at com.eviware.loadui.launcher.JavaFxStarter.isJavaFXFontsAvailable(JavaFxStarter.java:61)
at com.eviware.loadui.launcher.JavaFxStarter.ensureFontsAvailableForJavaFX(JavaFxStarter.java:38)
at com.eviware.loadui.launcher.JavaFxStarter.startJavaFxEnv(JavaFxStarter.java:33)
at com.eviware.loadui.launcher.JavaFxStarter.<init>(JavaFxStarter.java:21)
at com.eviware.loadui.launcher.CommandLineStarter.<init>(CommandLineStarter.java:5)
at com.eviware.loadui.launcher.LoadUIStarter.launchCmdRunner(LoadUIStarter.java:42)
at com.eviware.loadui.launcher.LoadUIStarter.main(LoadUIStarter.java:22)
... 6 more
I tried to run the binary: ./LoadUI-2.6.8 --cmd=true but still the same error "JavaFX Launcher Error: Unable to invoke main method "
Any help please.
I need to be able to run LoadUI from command line as I am planning to automate the tests.
Thanks,
Hi All,
I have been trying to run LoadUI from command line on Centos but I am getting some errors.
The first issue was resolved by converting the loadUI-cmd.sh from dos to unix using fromdos.
Now that loadUI-cmd.sh is working, I am getting the following error: A an error message window pops-up and it has the following:
JavaFX Launcher Error: Unable to invoke main method
Then this is what I get in the shell:
Starting with arguments: [--cmd=true, --nofx=true, -nofx, -Dlog4j.configuration=log4j_headless.xml, -p, walidtest.xml]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.javafx.main.Main.launchApp(Main.java:502)
at com.javafx.main.Main.main(Main.java:638)
Caused by: java.lang.UnsatisfiedLinkError: /usr/local/SmartBear/LoadUI-2.6.8/jre/lib/i386/libjavafx-font.so: /lib/libc.so.6: version `GLIBC_2.11' not found (required by /usr/local/SmartBear/LoadUI-2.6.8/jre/lib/i386/libjavafx-font.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.sun.javafx.runtime.NativeLibLoader.loadLibraryFullPath(NativeLibLoader.java:200)
at com.sun.javafx.runtime.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:88)
at com.sun.javafx.runtime.NativeLibLoader.loadLibrary(NativeLibLoader.java:31)
at com.sun.t2k.T2KFontFactory$1.run(T2KFontFactory.java:58)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.t2k.T2KFontFactory.<clinit>(T2KFontFactory.java:55)
at com.sun.javafx.font.PrismFontLoader.getSystemFontSize(PrismFontLoader.java:474)
at javafx.scene.text.Font.getDefaultSystemFontSize(Font.java:69)
at javafx.scene.text.Font.getDefault(Font.java:85)
at com.eviware.loadui.launcher.JavaFxStarter.isJavaFXFontsAvailable(JavaFxStarter.java:61)
at com.eviware.loadui.launcher.JavaFxStarter.ensureFontsAvailableForJavaFX(JavaFxStarter.java:38)
at com.eviware.loadui.launcher.JavaFxStarter.startJavaFxEnv(JavaFxStarter.java:33)
at com.eviware.loadui.launcher.JavaFxStarter.<init>(JavaFxStarter.java:21)
at com.eviware.loadui.launcher.CommandLineStarter.<init>(CommandLineStarter.java:5)
at com.eviware.loadui.launcher.LoadUIStarter.launchCmdRunner(LoadUIStarter.java:42)
at com.eviware.loadui.launcher.LoadUIStarter.main(LoadUIStarter.java:22)
... 6 more
I tried to run the binary: ./LoadUI-2.6.8 --cmd=true but still the same error "JavaFX Launcher Error: Unable to invoke main method "
Any help please.
I need to be able to run LoadUI from command line as I am planning to automate the tests.
Thanks,