Questions tagged [javonet]

Javonet is a set of libraries and runtime components that enable Java and .NET runtimes to coexist. Tag should be used both by those calling .NET libraries from Java and Java packages from .NET. Post any questions about re-using of existing UI or backend components between Java and .NET, accessing physical devices drivers or using any other APIs, SDKs and client libraries.

Site: https://www.javonet.com/ Docs: http://doc.javonet.com/

14 questions
3
votes
1 answer

Obtaining Image object in Java object from .NET System.DrawingImage with Javonet

I have a question about using Javonet. In the .NET code I have a method that returns a System.DrawingImage and I have to obtain it on my Java side of code. So when I issue a "get" of the attribute by Javonet API, it returns an NObject. Here is the…
Andrea Annibali
  • 379
  • 2
  • 5
2
votes
2 answers

How to create NObject with constructor parameters (JavoNet)

What is the syntax for creating a .Net object from java code (NObject) when the constructor of the .Net object has one or more parameters? Thanks
erotavlas
  • 4,274
  • 4
  • 45
  • 104
2
votes
1 answer

How to avoid autoboxing of primitives in arrays in javonet

According to the example in https://www.javonet.com/java-devs/guides/working-with-net-arrays-and-collections-from-java-with-javonet/, if the dll that Java is calling returns an array of ints, Javonet will only display an array of Integer classes…
Jonathan Sylvester
  • 1,275
  • 10
  • 23
1
vote
1 answer

Is JavoNet a threadsafe library, and more imporantlty, does it allow usage of all threads?

Is javonet threadsafe? I couldn't find any documentation one way or the other. Even if it is threadsafe, is there some sort of "mutex" that's preventing full usages of all threads? When I tried to run javonet in parallel, it did work, but the CPU…
Jonathan Sylvester
  • 1,275
  • 10
  • 23
0
votes
1 answer

(Javonet) Initializing jvm failed

I would like to use (Javonet) in .Net and downloded sample from https://github.com/Javonet/dotnet-devs-samples/tree/master/FirstDotNetConsoleApp Compiler throws "Initializing JVM failed." exception. How can i fix? /// This sample shows how to…
0
votes
1 answer

Reflection Type Load Exception occurred while trying to iterate through types

My .Net application is referring some nuget packages. When I try to use the .Net DLL in java/scala using JavoNet. Please let me know how to get resolve this error. Thanks I am getting below " Message: Unable to load one or more of the requested…
0
votes
1 answer

Not able to load .net DLL targeted for 64-bit platform only

Below is the exception being thrown: com.javonet.api.NException: Could not load file or assembly 'file:///C:\downloads\UrlNomalization\Microsoft.Bing.HashUtil.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT:…
shanky123
  • 61
  • 1
  • 3
0
votes
1 answer

Why am i getting activation error for Javonet enterprise license in brand new PC

We have Javonet enterprise license and have been using it for a software application for more than 6 months. When i try to run the application with the same license in brand new PC, it gives the error message: com.javonet.JavonetException: Unknown…
Kumar Sri
  • 3
  • 4
0
votes
1 answer

Does javonet support java 9, 10, and 11

Does Javonet support Java 9, Java 10, and Java 11? I couldn't find any documentation supporting or refuting the more recent jdk versions.
Jonathan Sylvester
  • 1,275
  • 10
  • 23
0
votes
1 answer

Does Javonet support mono (out of the box) and therefore runs on Mac and Linux?

Does Javonet support mono (out of the box) and therefore runs on Mac and Linux? (JNBridge claims to support it; j4net does not officially support it, though some posts claim it does work under certain scenarios.)
Jonathan Sylvester
  • 1,275
  • 10
  • 23
0
votes
1 answer

Javonet performance 10x slower compared to native .net code? May be due to object array?

In another post, I talk about the need for support of primitive array in javonet. Could this explain why pulling ~2GB worth of double array is about 10x slower than comparable code in .net? I've attached a screenshot of JProfiler in case it helps.…
Jonathan Sylvester
  • 1,275
  • 10
  • 23
0
votes
1 answer

Performance of Javonet

So far, I've gotten Javonet to work to calling a .net dll. It was as easy as advertised to create the javonet code. However, in my case, I have a loop that runs approx 10 million times, and within that loop, I'm calling a dll method via Javonet. My…
Jonathan Sylvester
  • 1,275
  • 10
  • 23
0
votes
1 answer

can javonet be used to call native dll's from a web application

I'm using javonet to load a c# or .NET dll into java and it works perfectly when ran as a console application but doesn't work with a web application. Does it even work for web applications?
0
votes
1 answer

javonet : how to create a NNull on generic class

I am evaluating javonet to call a C# dll from java. As i see it's the more compliante to my context (generic fail with jni4net, and JnBridge don't export all my type) I want to call a method with null instance on a complex…
Duff
  • 852
  • 12
  • 16