Giter Club home page Giter Club logo

jessiepathfinder / ikvm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from windward-studios/ikvm

151.0 151.0 24.0 211.09 MB

The best IKVM.NET fork ever!

License: GNU Affero General Public License v3.0

C# 1.56% C 8.83% Batchfile 0.01% Makefile 0.05% JavaScript 0.14% CSS 0.02% HTML 0.89% Lex 0.01% C++ 2.06% Objective-C 0.53% Shell 0.01% Perl 0.01% Ruby 0.01% Haskell 0.01% Roff 0.62% Assembly 0.01% DTrace 0.03% Java 85.22% Monkey C 0.03%
csharp ikvm java java-8 jvm up-for-grabs

ikvm's People

Contributors

igorkwwrd avatar jessiepathfinder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ikvm's Issues

Exception Thrown when calling Date.ToString()

It seems like the System class static initializer has not been called to init the internal static member "props"?

"The type initializer for 'java.lang.Props' threw an exception."
inner exception:
"FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager"

Here's the stack trace:

   at java.lang.System.get_props()
   at java.lang.System.getProperty(String str)
   at sun.security.action.GetPropertyAction.run()
   at sun.security.action.GetPropertyAction.<bridge>run()
   at java.security.AccessController.doPrivileged(Object , AccessControlContext , CallerID )
   at java.security.AccessController.doPrivileged(PrivilegedAction pa, CallerID )
   at java.util.TimeZone.setDefaultZone()
   at java.util.TimeZone.getDefaultRef()
   at java.util.Date.normalize()
   at java.util.Date.toString()
   at Java.Net.Demo.JavaTimeStamp.TimeStamp()
   at Program.<Main>$(String[] args) in C:\source\repos\Java.Net.Demo\ConsoleApp1\ConsoleApp1\Program.cs:line 4

IKVMC - internal compiler error

I get an internal compiler error during converting an jar to an dll:

PS C:\SMARD\IKVM> .\ikvm_8.6.5.1_bin_windows\ikvmc.exe .\example-1.0-SNAPSHOT.jar
IKVM.NET Compiler version 8.6.5.1
Copyright (C) 2020 Jessie Lesbian (based on work by Jeroen Frijters and Windward Studios)
http://www.ikvm.net/

note IKVMC0002: Output file is "example-1.0-SNAPSHOT.dll"

*** INTERNAL COMPILER ERROR ***

PLEASE FILE A BUG REPORT FOR IKVM.NET WHEN YOU SEE THIS MESSAGE

ikvmc, Version=8.6.5.1, Culture=neutral, PublicKeyToken=null
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
4.0.30319.42000 64-bit

System.InvalidOperationException: Der Vorgang ist aufgrund des aktuellen Zustands des Objekts ungültig.
   bei IKVM.Internal.Boxer.EmitBox(CodeEmitter ilgen, TypeWrapper tw)
   bei IKVM.Internal.LambdaMetafactory.EmitDispatch(FinishContext context, TypeWrapper[] args, TypeBuilder tb, MethodWrapper interfaceMethod, TypeWrapper[] implParameters, ConstantPoolItemMethodHandle implMethod, ConstantPoolItemMethodType instantiatedMethodType, FieldBuilder[] capturedFields)
   bei IKVM.Internal.LambdaMetafactory.CreateConstructorAndDispatch(FinishContext context, ConstantPoolItemInvokeDynamic cpi, TypeBuilder tb, List`1 methods, TypeWrapper[] implParameters, ConstantPoolItemMethodType samMethodType, ConstantPoolItemMethodHandle implMethod, ConstantPoolItemMethodType instantiatedMethodType, Boolean serializable)
   bei IKVM.Internal.LambdaMetafactory.EmitImpl(FinishContext context, ClassFile classFile, ConstantPoolItemInvokeDynamic cpi, BootstrapMethod bsm, CodeEmitter ilgen)
   bei IKVM.Internal.LambdaMetafactory.Emit(FinishContext context, ClassFile classFile, Int32 constantPoolIndex, ConstantPoolItemInvokeDynamic cpi, CodeEmitter ilgen)
   bei Compiler.Compile(Block block, Int32 startIndex)
   bei Compiler.Compile(FinishContext context, TypeWrapper host, DynamicTypeWrapper clazz, MethodWrapper mw, ClassFile classFile, Method m, CodeEmitter ilGenerator, Boolean& nonleaf)
   bei IKVM.Internal.DynamicTypeWrapper.FinishContext.FinishImpl()
   bei IKVM.Internal.DynamicTypeWrapper.JavaTypeImpl.FinishCore()
   bei IKVM.Internal.DynamicTypeWrapper.JavaTypeImpl.Finish()
   bei IKVM.Internal.AotTypeWrapper.Finish()
   bei IKVM.Internal.DynamicClassLoader.FinishAll()
   bei IKVM.Internal.CompilerClassLoader.Compile(String runtimeAssembly, List`1 optionsList)
   bei IkvmcCompiler.Compile(String[] args)
   bei IkvmcCompiler.Main(String[] args)

Reproducible with following code:

import java.util.Map;
import java.util.function.Supplier;

public interface LayerA {

    int getOuter();

    default Map<Object, Supplier<Object>> createQuery(Map<Object, Supplier<Object>> builder) {
        builder.put("B", getOuter() > -1 ? this::getOuter : () -> null);
        return builder;
    }

}

Or the simple example project:
example.zip

Please help me :)

Licensing

As IKVM users we're interested in all attempts to revive this code, especially if you can get it working for .NET 5 Core. It's been reported elsewhere that you've changed the licensing conditions, could you please explain your rationale for this, and explain whether you actually have authority from the original copyright holders to do this?

ICO to the exe file

Hello,
there is option to add icon when i use ikvmc to compile jar to exe?
tnx

Strange error in java.io.File.TempDirectory.generateFile(String , String , File )

Exception in SVG2PDF L'inizializzatore di tipo di 'TempDirectory' ha generato un'eccezione. in java.io.File.TempDirectory.generateFile(String , String , File )

in java.io.File.createTempFile(String str1, String str2, File f)

in org.jpedal.f.p..ctor(Byte[] barr1, Byte[] barr2)

in org.jpedal.f.m.a(Byte[] barr)

in org.jpedal.a.a(Byte[] )

in org.jpedal.d.openPdfArray(Byte[] barr)

in org.jpedal.examples.a.convert()

immagine

Any ideas?

Please publish nuget packge.

This build is working perfectly in my case,except that nuget package is missing,could you publish your nuget package to nuget.org (may named IKVM-jessielesbian) so that people can access the packge without referencing the library on their own.thanks : )

Suspected upstream license violations

This commit seems to change the license of the whole project to AGPLv3 and removes every license notices of the previous project.

Assuming that your IKVM is a fork from windward-studio's IKVM, the legality of this is questionable, as:

I hope this issue should be considered, to protect the project users' rights.

DISCLAIMER: I'm not a representative of any previous maintainers. I'm just opening this issue because I'm interested in getting a copy of this fork licensed under the GPLv2, and not the AGPL (which is way more restrictive).

Can't find bundle for base name sun.text.resources.FormatData, locale en_GB

I put together a utility using a .Net form using C# that calls a legacy Java application (IKVM bridge) that was packaged up as a JAR file. Everything works great when all the users run my program on workstations here in the US.

When a colleague attempts to use my program in China on a workstation configured for Chinese, they get the following error message:
Can't find bundle for base name sun.text.resources.FormatData, locale en_GB

Is the IKVM distro missing some Java artifact(s) that causes this error?

Exception in thread "main" java.awt.AWTError: Toolkit not found: ikvm.awt.NetToolkit

same Problem as on original IVKM Version:

C:\Users\*****\Desktop\Eclipse Workspaces\Java\ftp_test\release>app.exe
Exception in thread "main" java.awt.AWTError: Toolkit not found: ikvm.awt.NetToolkit, IKVM.AWT.WinForms, Version=8.5.0.3
, Culture=neutral, PublicKeyToken=null
        at java.awt.Toolkit$2.run(Unknown Source)
        at java.awt.Toolkit$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Unknown Source)
        at java.security.AccessController.doPrivileged(Unknown Source)
        at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
        at java.awt.Toolkit.getEventQueue(Unknown Source)
        at java.awt.EventQueue.invokeLater(Unknown Source)
        at ftp_test.Form.showForm(Form.java:60)
        at ftp_test.Main.<init>(Main.java:11)
        at ftp_test.Main.main(Main.java:16)
Exception in thread "Thread-0" java.lang.ExceptionInInitializerError: java.lang.ClassCastException: Das Objekt des Typs
"java.util.PropertyResourceBundle" kann nicht in Typ "sun.util.resources.OpenListResourceBundle" umgewandelt werden.
        at com.enterprisedt.net.ftp.FileTransferClient.<init>(FileTransferClient.java)
        at ftp_test.FTPRunnable.run(FTPRunnable.java:48)
        at java.lang.Thread.run(Unknown Source)


why?

thx for Feedback.

How to use IKVM on UWP app?

The title say all..
The project that I have in my mind is to bring Minecraft Java to Xbox Series using UWP applications.
I saw on GitHub projects where Minecraft Java was ported in Android/IOS using JNI and other skill that I do not have fully understand so i wanto to try the same thing on Xbox.
I know already that this idea can be killed soon due to the very high security restrictions that Xbox OS have but maybe there be a chance to execute it so, how to integrate IKVM to an UWP app?
Thanks in advance

How is it with the compatibility?

Is it now compatible to .NET version > 2.0 or, much more better, to the new "Core" versions?

Thank you very very much for your feedback(s)... :-)

With best regards, Jan

Nuget

Hey, is there any plan to release your build as nuget? Would be very nice to include your build of ikvm via nuget!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.