Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello Chayan.

We're using ikvm to compile java classes to use from .net.

There are 2 problems we're finding:

- If the java class uses other java *.jar, they don't work when executed from the .net code. (We tried converting them to dll the same way, putting them in directories we include but nothing seems to work).

- The other one is that we've created to classes inside a java class, for managing with threads, and when called from .net, it doesn't recognize the classes.

Any idea?

Thanks a lot for your attention.
Posted

1 solution

Please - use Eclipse to develop and deploy your Java App(It's Freeware and simple). You should make it a runnable jar - that is a difference from a simple archive jar.

anonymous classes are ok, also it's not a recommended workaround. You should extract them and make it a proper development.

EDIT: Think about adding some logging to the jar, log4j is a simple logging tool and can save you time & work & nerves.

How to execute the jar[^]

If you still resist to use Eclipse (strongly recommended to be used!!!)[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900