|
View:
New views
13 Messages
—
Rating Filter:
Alert me
|
|
|
add ComVisible attribute?Hi Jeroen,
What is a way to add "ComVisible" attribute with "true" value to the generated .NET assembly? Thank you. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: add ComVisible attribute?Hi Valeriy,
Create a file assembly.java containing: @cli.System.Runtime.InteropServices.ComVisibleAttribute.Annotation(true) interface assembly {} I know you know this, but for the archives: ikvmstub mscorlib javac -cp mscorlib.jar;. assembly.java ikvmc <other parameters> assembly.class -r:mscorlib Regards, Jeroen > -----Original Message----- > From: Valeriy Pikulskyy [mailto:pikulsky@...] > Sent: Monday, September 07, 2009 3:05 PM > To: ikvm-developers@... > Subject: [Ikvm-developers] add ComVisible attribute? > > Hi Jeroen, > What is a way to add "ComVisible" attribute with "true" value to the > generated .NET assembly? > > Thank you. > > ----------------------------------------------------------------------- > ------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment - > and focus on what you do best, core application coding. Discover what's > new with Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Ikvm-developers mailing list > Ikvm-developers@... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Help To extarct the Jar information from .NETHi, 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 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Help To extarct the Jar information from .NETHi,
What do you means with "extract the Jar File
information"?
Volker
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Help To extarct the Jar information from .NETYes 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: volker.berlin@... To: ganirban@...; ikvm-developers@... 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
Date India’s Teen Diva. Find out if you hit it off with her or are her fiery opposite. Drag n’ drop ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Help To extarct the Jar information from .NETHi,
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
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Help To extarct the Jar information from .NETCould 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: volker.berlin@... To: ganirban@...; ikvm-developers@... 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
Match ‘n’ Make new friends with the cool match-meter. Join the Planet with you Hotmail ID. Drag n’ drop ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Help To extarct the Jar information from .NETHi,
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
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Help To extarct the Jar information from .NETDear 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: volker.berlin@... To: ganirban@...; ikvm-developers@... 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
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 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Help To extarct the Jar information from .NETHi,
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");} } }
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Help To extarct the Jar information from .NETI 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: volker.berlin@... To: ganirban@...; ikvm-developers@... 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"); } } }
Get a 360o view of the world, in perspectives only MSN India can offer. Try it! ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: add ComVisible attribute?Thank you Jeroen, it works.
I add ComVisible(true) attribute to my .NET assembly in order to provide the resulted .NET assembly as a COM component. Look, then I generated TypeLibrary with "regasm /tlb" and I got in the TypeLibrary my classes and interfaces but without any methods in the classes/interfaces. Yes, while running "regasm /tlb" I got warnings: some were about generic types: Type library exporter warning processing 'ikvm.internal.AttributeAnnotationMultiple`1, IKVM.OpenJDK. Core'. Warning: Type library exporter encountered a generic type. Generic classes may not be exposed to COM. Other about nested arrays: Type library exporter warning processing 'com.sun.image.codec.jpeg.JPEGDecodeParam.getMarkerData(#0) , my-dotnet-for-com-lib'. Warning: There is no marshaling support for nested arrays. And at the end: Assembly exported to 'D:\my-dotnet-for-com-lib.tlb', and the type library was registered successfully Do you have any clue why the classes have no methods in the generated TypeLibrary? What to do? Valeriy. On Mon, Sep 7, 2009 at 5:01 PM, Jeroen Frijters wrote: > Create a file assembly.java containing: > > @cli.System.Runtime.InteropServices.ComVisibleAttribute.Annotation(true) > interface assembly {} > > I know you know this, but for the archives: > > ikvmstub mscorlib > javac -cp mscorlib.jar;. assembly.java > ikvmc <other parameters> assembly.class -r:mscorlib > >> -----Original Message----- >> From: Valeriy Pikulskyy >> Sent: Monday, September 07, 2009 3:05 PM >> To: ikvm-developers@... >> Subject: [Ikvm-developers] add ComVisible attribute? >> >> What is a way to add "ComVisible" attribute with "true" value to the >> generated .NET assembly? >> ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: add ComVisible attribute?Hi Valeriy,
I'm not COM expert, but I think that because COM only works with interfaces. Classes are only used to instantiate objects and describe what interfaces they implement. BTW, I found that ComVisible(true) at the assembly level is the default, so you don't need it. Regards, Jeroen > -----Original Message----- > From: Valeriy Pikulskyy [mailto:pikulsky@...] > Sent: Thursday, September 17, 2009 10:39 PM > To: ikvm-developers@... > Subject: Re: [Ikvm-developers] add ComVisible attribute? > > Thank you Jeroen, it works. > I add ComVisible(true) attribute to my .NET assembly in order to > provide the resulted .NET assembly as a COM component. > > Look, then I generated TypeLibrary with "regasm /tlb" and I got in the > TypeLibrary my classes and interfaces but without any methods in the > classes/interfaces. > > Yes, while running "regasm /tlb" I got warnings: some were about > generic types: > > Type library exporter warning processing > 'ikvm.internal.AttributeAnnotationMultiple`1, IKVM.OpenJDK. > Core'. Warning: Type library exporter encountered a generic type. > Generic classes may not be exposed > to COM. > > Other about nested arrays: > Type library exporter warning processing > 'com.sun.image.codec.jpeg.JPEGDecodeParam.getMarkerData(#0) > , my-dotnet-for-com-lib'. Warning: There is no marshaling support for > nested arrays. > > And at the end: > Assembly exported to 'D:\my-dotnet-for-com-lib.tlb', and the type > library was registered successfully > > Do you have any clue why the classes have no methods in the generated > TypeLibrary? What to do? > Valeriy. > > > On Mon, Sep 7, 2009 at 5:01 PM, Jeroen Frijters wrote: > > Create a file assembly.java containing: > > > > > @cli.System.Runtime.InteropServices.ComVisibleAttribute.Annotation(tru > > e) > > interface assembly {} > > > > I know you know this, but for the archives: > > > > ikvmstub mscorlib > > javac -cp mscorlib.jar;. assembly.java ikvmc <other parameters> > > assembly.class -r:mscorlib > > > >> -----Original Message----- > >> From: Valeriy Pikulskyy > >> Sent: Monday, September 07, 2009 3:05 PM > >> To: ikvm-developers@... > >> Subject: [Ikvm-developers] add ComVisible attribute? > >> > >> What is a way to add "ComVisible" attribute with "true" value to the > >> generated .NET assembly? > >> > > ----------------------------------------------------------------------- > ------- > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your developing skills, take BlackBerry mobile applications to market > and stay ahead of the curve. Join us from November 9-12, 2009. > Register now! http://p.sf.net/sfu/devconf > _______________________________________________ > Ikvm-developers mailing list > Ikvm-developers@... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
| Free embeddable forum powered by Nabble | Forum Help |