Re: building executable with ikvmc from an all_in_one jar

Volker Berlin <[email protected]> Tue, 13 Feb 2018 14:38:07 +0100
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <[email protected]>
I think not that javafx will work with IKVM. I think javafx use many
internal UI classes of the Oracle Java VM which does not exists in
another Java VM. IKVM use a a wrapper on top of .NET WinForms UI.

Volker


Am 13.02.2018 um 14:29 schrieb rudi12668:
> Hi,
>
> I'm trying to build an executable from an all_in_one jar file by ikvmc.
> Compiling java with netbeans 8.2, I've included all the needed
> libraries plus: jfxrt.jar, deploy.jar, jrt.jar.
> During the building some warning occurred.
> note IKVMC0002: Output file is "AllInOneJar.exe"
> warning IKVMC0100: Class "com.sun.deploy.uitoolkit.DragHelper" not found
> warning IKVMC0100: Class "com.sun.deploy.uitoolkit.PluginUIToolkit"
> not found
> warning IKVMC0100: Class
> "com.sun.deploy.uitoolkit.PluginWindowFactory" not found
> warning IKVMC0100: Class "com.sun.deploy.uitoolkit.ui.ModalityHelper"
> not found
> warning IKVMC0100: Class "com.sun.deploy.uitoolkit.ui.PluginUIFactory"
> not found
> warning IKVMC0100: Class "jdk.internal.instrumentation.Logger" not found
> warning IKVMC0117: Emitted java.lang.NoSuchMethodError in
> "com.sun.deploy.security.JarVerifier.isJarWeaklySigned()Z"
> ("sun.security.pkcs.SignerInfo.getTsToken()Lsun.security.pkcs.PKCS7;")
> warning IKVMC0100: Class "sun.plugin2.applet2.Plugin2Host" not found
> warning IKVMC0112: Emitted java.lang.IllegalAccessError in
> "javafx.embed.swing.JFXPanel.paintComponent(Ljava.awt.Graphics;)V"
> ("Try to access field sun.java2d.SunGraphics2D.surfaceData from class
> javafx.embed.swing.JFXPanel")
> warning IKVMC0117: Emitted java.lang.NoSuchMethodError in
> "javafx.embed.swing.JFXPanel.paintComponent(Ljava.awt.Graphics;)V"
> ("sun.java2d.SurfaceData.getDefaultScale()I")
> warning IKVMC0136: Reflection.getCallerClass() called from
> non-CallerID method
> ("javafx.fxml.FXMLLoader.getClassLoader()Ljava.lang.ClassLoader;")
> warning IKVMC0136: Reflection.getCallerClass() called from
> non-CallerID method ("javafx.fxml.FXMLLoader.load()Ljava.lang.Object;")
> warning IKVMC0136: Reflection.getCallerClass() called from
> non-CallerID method
> ("javafx.fxml.FXMLLoader.load(Ljava.io.InputStream;)Ljava.lang.Object;")
> warning IKVMC0136: Reflection.getCallerClass() called from
> non-CallerID method
> ("javafx.fxml.FXMLLoader.getDefaultClassLoader()Ljava.lang.ClassLoader;")
> warning IKVMC0136: Reflection.getCallerClass() called from
> non-CallerID method
> ("javafx.fxml.FXMLLoader.load(Ljava.net.URL;)Ljava.lang.Object;")
> warning IKVMC0136: Reflection.getCallerClass() called from
> non-CallerID method
> ("javafx.fxml.FXMLLoader.load(Ljava.net.URL;Ljava.util.ResourceBundle;)Lj=
ava.lang.Object;")
> warning IKVMC0136: Reflection.getCallerClass() called from
> non-CallerID method
> ("javafx.fxml.FXMLLoader.load(Ljava.net.URL;Ljava.util.ResourceBundle;Lja=
vafx.util.BuilderFactory;)Ljava.lang.Object;")
> warning IKVMC0136: Reflection.getCallerClass() called from
> non-CallerID method
> ("javafx.fxml.FXMLLoader.load(Ljava.net.URL;Ljava.util.ResourceBundle;Lja=
vafx.util.BuilderFactory;Ljavafx.util.Callback;)Ljava.lang.Object;")
> warning IKVMC0136: Reflection.getCallerClass() called from
> non-CallerID method
> ("javafx.fxml.FXMLLoader.load(Ljava.net.URL;Ljava.util.ResourceBundle;Lja=
vafx.util.BuilderFactory;Ljavafx.util.Callback;Ljava.nio.charset.Charset;)L=
java.lang.Object;")
> warning IKVMC0100: Class "jdk.internal.instrumentation.Tracer" not found
>
> When I try to run the output.exe the following runtime occurs:
> Graphics Device initialization failed for :=A0 d3d, sw
> Error initializing QuantumRenderer: no suitable pipeline found
> java.lang.RuntimeException: java.lang.RuntimeException: Error
> initializing QuantumRenderer: no suitable pipeline found
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.jav=
a:280)
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:221)
> =A0=A0=A0=A0=A0=A0=A0 at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.jav=
a:248)
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:209)
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:67=
8)
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.j=
ava:697)
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(Laun=
cherImpl.java:182)
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.application.LauncherImpl$$Lambda$2/35460724.run(Unknown
> Source)
> =A0=A0=A0=A0=A0=A0=A0 at java.lang.Thread.run(Thread.java:953)
> Caused by: java.lang.RuntimeException: Error initializing
> QuantumRenderer: no suitable pipeline found
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRe=
nderer.java:94)
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRen=
derer.java:125)
> =A0=A0=A0=A0=A0=A0=A0 ... 1 more
> Exception in thread "main" java.lang.RuntimeException: No toolkit found
> =A0=A0=A0=A0=A0=A0=A0 at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.jav=
a:260)
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:209)
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:67=
8)
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.j=
ava:697)
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(Laun=
cherImpl.java:182)
> =A0=A0=A0=A0=A0=A0=A0 at
> com.sun.javafx.application.LauncherImpl$$Lambda$2/35460724.run(Unknown
> Source)
> =A0=A0=A0=A0=A0=A0=A0 at java.lang.Thread.run(Thread.java:953)
>
> Can anyone help me to understand what is going wrong?
> Many thanks
>
> Rodolfo
>
> -------------------------------------------------------------------------=
-----
>
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Ikvm-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ikvm-developers


---------------------------------------------------------------------------=
---
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot