IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
RuntimeInit.cs
Go to the documentation of this file.
1using System.Linq;
2using System.Reflection;
4
6
7namespace IKVM.Runtime
8{
9
13 static class RuntimeInit
14 {
15
16#if FIRST_PASS == false && IMPORTER == false && EXPORTER == false
17
21#pragma warning disable CA2255
23#pragma warning restore CA2255
24 internal static void Init()
25 {
26 // if our entry point is a Java application it will initialize the JVM as part of the launcher
27 var isJavaApp = Assembly.GetEntryAssembly()?.ManifestModule?.GetCustomAttributes<JavaModuleAttribute>().Any() ?? false;
28 if (isJavaApp == false)
29 JVM.Init();
30 }
31
32#endif
33
34 }
35
36}
IKVM.Reflection.Assembly Assembly
Main state of the running JVM.
Initializes the JVM at module load.
@ ModuleInitializer
Member is a module initializer method.