Re: [Ikvm-developers] Help To extarct the Jar information from .NET
Brought to you by:
jfrijters
From: Anirban G. <gan...@ho...> - 2009-09-14 07:41:13
|
Dear Volker, I run the hello world application it's working fine... You say With a zip library you can look in it which classes exists.I am using ICSharpCode.SharpZipLib could you please tell exact API to extract the class name. Anirban From: vol...@go... To: gan...@ho...; ikv...@li... Subject: AW: AW: AW: AW: [Ikvm-developers] Help To extarct the Jar information from .NET Date: Sat, 12 Sep 2009 20:21:57 +0200 Hi, There is no magic. It is a simple .NET application. You need only to the needed dll files from the IKVM as reference to your project. See the follow IKVM sample. In many cases it is more helpful not to use the using directive to reduce conficts. Volker namespace ConsoleApplication1 { class Program { static void Main(string[] args) { java.lang.System.@out.println("Hello World"); } } } Von: Anirban Ghosh [mailto:gan...@ho...] Gesendet: Samstag, 12. September 2009 18:34 An: vol...@go...; ikv...@li... Betreff: RE: AW: AW: AW: [Ikvm-developers] Help To extarct the Jar information from .NET Dear Volker, Since I am in new in this world may be my questions is not very specific.I need a "hello world" program using IKVM.net library where we call java api from .net application. Anirban From: vol...@go... To: gan...@ho...; ikv...@li... Subject: AW: AW: AW: [Ikvm-developers] Help To extarct the Jar information from .NET Date: Sat, 12 Sep 2009 17:20:09 +0200 Hi, For which step do you need a sample? Your question are very unspecific. It look like that you search a developer which write a program for your problem. If you need help to a specific problem then you should post what you do and what not work. Then we can give you a tip. Volker Von: Anirban Ghosh [mailto:gan...@ho...] Gesendet: Freitag, 11. September 2009 05:31 An: vol...@go...; ikv...@li... Betreff: RE: AW: AW: [Ikvm-developers] Help To extarct the Jar information from .NET Thanks Volker .. Could you please share any sample .NET code using this ikvm.net library then I can see how much effort is there to implement this.. I will keep in touch with you if I face any problem.. Anirban From: vol...@go... To: gan...@ho...; ikv...@li... Subject: AW: AW: [Ikvm-developers] Help To extarct the Jar information from .NET Date: Thu, 10 Sep 2009 21:08:17 +0200 Hi, I want to get all information from Jar file in any data structure A jar file is only a zip archiv. You can open it with every zip library. I need the detail information of the class in any datastructure. After that I will parse this data structure for depedency analysis. If you want read the classes, methods, etc in .NET then you need to convert it. After it you can access it via refection. I think you can create a URLClassLoader and add the jar file. With a zip library you can look in it which classes exists. Then request a Class object with Class.forName from the URLClassLoader. From the Class object you can use the Java Reflection API. But this give you only the declarations and hierarchy. If you want anlyse the dependency you should use an existing framework. This framework parse the byte code self. This is a very difficult job for a Java newby. Volker Von: Anirban Ghosh [mailto:gan...@ho...] Gesendet: Donnerstag, 10. September 2009 05:44 An: vol...@go...; ikv...@li... Betreff: RE: AW: [Ikvm-developers] Help To extarct the Jar information from .NET Yes Volker I want to get all information from Jar file in any data structure .I need the detail information of the class in any datastructure. After that I will parse this data structure for depedency analysis. Thanks and waiting for your reply... Anirban From: vol...@go... To: gan...@ho...; ikv...@li... Subject: AW: [Ikvm-developers] Help To extarct the Jar information from .NET Date: Wed, 9 Sep 2009 22:22:58 +0200 Hi, What do you means with "extract the Jar File information"? Volker Von: Anirban Ghosh [mailto:gan...@ho...] Gesendet: Mittwoch, 9. September 2009 05:53 An: je...@su...; pik...@gm...; ikv...@li... Betreff: [Ikvm-developers] Help To extarct the Jar information from .NET Hi, I am trying to develop an application where we need to extract the Jar File information from .NET. However I am an experienced person in .NET but I am new in Java world. Could you please give me any Sample source code or idea to do this? Another thing could you please suggest me how can I ask any questions to this forum because whenever I ask any questions it's bounce back. n Ghosh Match ‘n’ Make new friends with the cool match-meter. Join the Planet with you Hotmail ID. Drag n’ drop Date India’s Teen Diva. Find out if you hit it off with her or are her fiery opposite. Drag n’ drop Match ‘n’ Make new friends with the cool match-meter. Join the Planet with you Hotmail ID. Drag n’ drop >From the events that change the world, to the ones that just shouldn’t be missed. Catch it all on MSN India. Drag n’ drop _________________________________________________________________ Great events make grand headlines – read them all on MSN India http://in.msn.com |