|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
Problem while making dllI have downloaded and tried IKVM product. But I have a little problem whtih ikvmc. In fact, I try to convert a <file>.jar into a .NET <file>.dll. To do this, I have followed the tutorial on IKVM website. It is said that i have two differents way to proceed : ikvmc -target:library <file>.jar -out:<file>.dll ikvmc -target:library <file>.class -out:<file>.dll When I do this, I have the following result : Note IKVMC0002: output file is "<file>.dll" Then I tried to use it in a C# project with some lines as : [ DllImport("<file>.dll") ] static extern void DllMethod(); ... public void .netMethod(){ ... DllMethod(); ... } When I compile there is no problem but when I execute the project I have this exception message : 'System.EntryPointNotFoundException' It seems my method is not found in the dll (the method is correctly written). Thus I have done a dump of this dll thanks to the visual sudio .Net 2003 Prompt : dumpbin.exe /EXPORTS C:\<file>.dll Dump of file C:\<file>.dll File Type: DLL Summary 2000 .reloc 2000 .rsrc 6000 .text And it seems that no function are in this dll. The dll seems empty. When I do a dumpbin /EXPORTS on a normal dll, I have informations concerning functions of the dll. Have you got any idea of the origin of my problem? Propositions :
I would appreciate your help because I am completely blocked... If you know the equivalent of this Java Smart Card I/O API in C#, it may help me. Thank you in advance ! Souhaitez vous « être au bureau sans y être » ? Oui je le veux ! ------------------------------------------------------------------------------ _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Problem while making dllHi, IKVMC produce .NET assambies and not C++ dlls. That you can't
use DLLImport. You need to add the dll like other assambies (for example
System.Core.dll) as reference to your project. And of corse you need to add references to some of the IKVM.OpenJdk.xxx.dlls. Volker Von: Bob Dylan
[mailto:ikvmall@...] Hello
everybody,
Souhaitez
vous « être au bureau sans y être » ? Oui
je le veux ! ------------------------------------------------------------------------------ _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Problem while making dllI am not sure I understand what you are saying. IKVMC produces .NET assemblies I agree with you. And I think that's what I want. But when I try to add the reference with Project --> Add a reference, I have an error message : "[...]. This is not a valid assembly or a COM component. Only assembly with the 'dll' extension and COM component can be referenced. [...]". That's why I tried to use it with [ DllImport ]. It confirms something goes wrong when I convert the <file>.jar in <file>.dll. Also, editing a normal dll with notepad++ shows something unreadable in the whole file. But mine shows my java code surrounded by something unreadable... Thank you for your help. Subject: AW: [Ikvm-developers] Problem while making dll Date: Wed, 22 Jul 2009 14:24:23 +0200 From: VBerlin@... To: ikvmall@...; ikvm-developers@... Hi,
IKVMC produce .NET assambies and not C++ dlls. That you can't use DLLImport. You need to add the dll like other assambies (for example System.Core.dll) as reference to your project.
And of corse you need to add references to some of the IKVM.OpenJdk.xxx.dlls.
Volker
Von: Bob Dylan
[mailto:ikvmall@...]
Hello
everybody,
Souhaitez vous « être au bureau sans y être » ? Oui je le veux ! Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous ! ------------------------------------------------------------------------------ _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Problem while making dllHi, How look your command line and completly output do you receive
if you call IKVMC? Volker Von: Bob Dylan
[mailto:ikvmall@...] Hello, Subject: AW: [Ikvm-developers] Problem
while making dll Hi, IKVMC produce .NET assambies and not C++ dlls. That you can't
use DLLImport. You need to add the dll like other assambies (for example
System.Core.dll) as reference to your project. And of corse you need to add references to some of the
IKVM.OpenJdk.xxx.dlls. Volker Von: Bob Dylan
[mailto:ikvmall@...] Hello
everybody,
Souhaitez
vous « être au bureau sans y être » ? Oui je le veux
! Vous
voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous
! ------------------------------------------------------------------------------ _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Problem while making dllIKVM 0.38 and up require Visual Studio 2005 (.NET 2.0 or higher). Since you use Visual Studio 2003, you need to use IKVM 0.36, but if you want to use the smartcard api, it's probably not going to work, because I think that isn't implemented.
Regards, Jeroen > -----Original Message----- > From: Bob Dylan [mailto:ikvmall@...] > Sent: Wednesday, July 22, 2009 14:39 > To: vberlin@...; ikvm-developers@... > Subject: Re: [Ikvm-developers] Problem while making dll > > Hello, > > I am not sure I understand what you are saying. IKVMC produces .NET > assemblies I agree with you. And I think that's what I want. But when I > try to add the reference with Project --> Add a reference, I have an > error message : "[...]. This is not a valid assembly or a COM > component. Only assembly with the 'dll' extension and COM component can > be referenced. [...]". That's why I tried to use it with [ DllImport ]. > It confirms something goes wrong when I convert the <file>.jar in > <file>.dll. > Also, editing a normal dll with notepad++ shows something unreadable in > the whole file. But mine shows my java code surrounded by something > unreadable... > > Thank you for your help. > > > ________________________________ > > Subject: AW: [Ikvm-developers] Problem while making dll > Date: Wed, 22 Jul 2009 14:24:23 +0200 > From: VBerlin@... > To: ikvmall@...; ikvm-developers@... > > > > Hi, > > > > IKVMC produce .NET assambies and not C++ dlls. That you can't use > DLLImport. You need to add the dll like other assambies (for example > System.Core.dll) as reference to your project. > > > > And of corse you need to add references to some of the > IKVM.OpenJdk.xxx.dlls. > > > > Volker > > > > Von: Bob Dylan [mailto:ikvmall@...] > Gesendet: Mittwoch, 22. Juli 2009 14:13 > An: ikvm-developers@... > Betreff: [Ikvm-developers] Problem while making dll > > > > Hello everybody, > > I have downloaded and tried IKVM product. But I have a little problem > whtih ikvmc. > In fact, I try to convert a <file>.jar into a .NET <file>.dll. To do > this, I have followed the tutorial on IKVM website. It is said that i > have two differents way to proceed : > > ikvmc -target:library <file>.jar -out:<file>.dll ikvmc -target:library > <file>.class -out:<file>.dll > > When I do this, I have the following result : > > Note IKVMC0002: output file is "<file>.dll" > > Then I tried to use it in a C# project with some lines as : > > [ DllImport("<file>.dll") ] > static extern void DllMethod(); > ... > public void .netMethod(){ > ... > DllMethod(); > ... > } > > > When I compile there is no problem but when I execute the project I > have this exception message : > > 'System.EntryPointNotFoundException' > > It seems my method is not found in the dll (the method is correctly > written). > Thus I have done a dump of this dll thanks to the visual sudio .Net > 2003 Prompt : > > dumpbin.exe /EXPORTS C:\<file>.dll > > Dump of file C:\<file>.dll > > File Type: DLL > > Summary > > 2000 .reloc > 2000 .rsrc > 6000 .text > > And it seems that no function are in this dll. The dll seems empty. > When I do a dumpbin /EXPORTS on a normal dll, I have informations > concerning functions of the dll. > > Have you got any idea of the origin of my problem? > > Propositions : > > * The jar file is badly done. > * The java project needs a special API to allow the communication > with a smart card : jsr 268 namely Java Smart Card I/O API (calling > with : import javax.smartcardio.*; ). Maybe I have to make a reference > to IKVM.OpenJDK.ClassLibrary.dll in my .NET project. But I am not able > to find this dll. > > * Maybe the jsr 268 API has not been implemented in .NET. > > * Thus I can convert the Java API to .NET CIL using ikvmc > <http://www.ikvm.net/userguide/ikvmc.html> . But I don't know were to > find this Java API. > * I can use the Java reflection API's to dynamically load and > execute the Java bytecode using the IKVM bytecode interpreter. But I > don't know what it means, how to do it, and I don't know how to get the > Java API. > > > I would appreciate your help because I am completely blocked... > If you know the equivalent of this Java Smart Card I/O API in C#, it > may help me. > > Thank you in advance ! > > > > > ________________________________ > > Souhaitez vous « être au bureau sans y être » ? Oui je le veux ! > <http://www.microsoft.com/france/windows/bts/default.mspx> > > > ________________________________ > > Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows > Live ? Lancez-vous ! > <http://www.microsoft.com/windows/windowslive/default.aspx> ------------------------------------------------------------------------------ _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Problem while making dllOn IKVM website they say that I can convert the Java API to .NET CIL using ikvmc. But I don't know were to find this Java API. Well It is probably in one SDK, JRE, JDK, all these things that sun provides but which are really mysterious to me. If someone knows where I can find the jsr 268 (the Java Smart Card I/O API) to convert it to .NET CIL using ikvmc and then adding it to the project, I would be grateful ! Thank you all. > From: jeroen@... > To: ikvmall@...; vberlin@...; ikvm-developers@... > Date: Wed, 22 Jul 2009 14:56:06 +0200 > Subject: RE: [Ikvm-developers] Problem while making dll > > IKVM 0.38 and up require Visual Studio 2005 (.NET 2.0 or higher). Since you use Visual Studio 2003, you need to use IKVM 0.36, but if you want to use the smartcard api, it's probably not going to work, because I think that isn't implemented. > > Regards, > Jeroen > > > -----Original Message----- > > From: Bob Dylan [mailto:ikvmall@...] > > Sent: Wednesday, July 22, 2009 14:39 > > To: vberlin@...; ikvm-developers@... > > Subject: Re: [Ikvm-developers] Problem while making dll > > > > Hello, > > > > I am not sure I understand what you are saying. IKVMC produces .NET > > assemblies I agree with you. And I think that's what I want. But when I > > try to add the reference with Project --> Add a reference, I have an > > error message : "[...]. This is not a valid assembly or a COM > > component. Only assembly with the 'dll' extension and COM component can > > be referenced. [...]". That's why I tried to use it with [ DllImport ]. > > It confirms something goes wrong when I convert the <file>.jar in > > <file>.dll. > > Also, editing a normal dll with notepad++ shows something unreadable in > > the whole file. But mine shows my java code surrounded by something > > unreadable... > > > > Thank you for your help. > > > > > > ________________________________ > > > > Subject: AW: [Ikvm-developers] Problem while making dll > > Date: Wed, 22 Jul 2009 14:24:23 +0200 > > From: VBerlin@... > > To: ikvmall@...; ikvm-developers@... > > > > > > > > Hi, > > > > > > > > IKVMC produce .NET assambies and not C++ dlls. That you can't use > > DLLImport. You need to add the dll like other assambies (for example > > System.Core.dll) as reference to your project. > > > > > > > > And of corse you need to add references to some of the > > IKVM.OpenJdk.xxx.dlls. > > > > > > > > Volker > > > > > > > > Von: Bob Dylan [mailto:ikvmall@...] > > Gesendet: Mittwoch, 22. Juli 2009 14:13 > > An: ikvm-developers@... > > Betreff: [Ikvm-developers] Problem while making dll > > > > > > > > Hello everybody, > > > > I have downloaded and tried IKVM product. But I have a little problem > > whtih ikvmc. > > In fact, I try to convert a <file>.jar into a .NET <file>.dll. To do > > this, I have followed the tutorial on IKVM website. It is said that i > > have two differents way to proceed : > > > > ikvmc -target:library <file>.jar -out:<file>.dll ikvmc -target:library > > <file>.class -out:<file>.dll > > > > When I do this, I have the following result : > > > > Note IKVMC0002: output file is "<file>.dll" > > > > Then I tried to use it in a C# project with some lines as : > > > > [ DllImport("<file>.dll") ] > > static extern void DllMethod(); > > ... > > public void .netMethod(){ > > ... > > DllMethod(); > > ... > > } > > > > > > When I compile there is no problem but when I execute the project I > > have this exception message : > > > > 'System.EntryPointNotFoundException' > > > > It seems my method is not found in the dll (the method is correctly > > written). > > Thus I have done a dump of this dll thanks to the visual sudio .Net > > 2003 Prompt : > > > > dumpbin.exe /EXPORTS C:\<file>.dll > > > > Dump of file C:\<file>.dll > > > > File Type: DLL > > > > Summary > > > > 2000 .reloc > > 2000 .rsrc > > 6000 .text > > > > And it seems that no function are in this dll. The dll seems empty. > > When I do a dumpbin /EXPORTS on a normal dll, I have informations > > concerning functions of the dll. > > > > Have you got any idea of the origin of my problem? > > > > Propositions : > > > > * The jar file is badly done. > > * The java project needs a special API to allow the communication > > with a smart card : jsr 268 namely Java Smart Card I/O API (calling > > with : import javax.smartcardio.*; ). Maybe I have to make a reference > > to IKVM.OpenJDK.ClassLibrary.dll in my .NET project. But I am not able > > to find this dll. > > > > * Maybe the jsr 268 API has not been implemented in .NET. > > > > * Thus I can convert the Java API to .NET CIL using ikvmc > > <http://www.ikvm.net/userguide/ikvmc.html> . But I don't know were to > > find this Java API. > > * I can use the Java reflection API's to dynamically load and > > execute the Java bytecode using the IKVM bytecode interpreter. But I > > don't know what it means, how to do it, and I don't know how to get the > > Java API. > > > > > > I would appreciate your help because I am completely blocked... > > If you know the equivalent of this Java Smart Card I/O API in C#, it > > may help me. > > > > Thank you in advance ! > > > > > > > > > > ________________________________ > > > > Souhaitez vous « être au bureau sans y être » ? Oui je le veux ! > > <http://www.microsoft.com/france/windows/bts/default.mspx> > > > > > > ________________________________ > > > > Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows > > Live ? Lancez-vous ! > > <http://www.microsoft.com/windows/windowslive/default.aspx> Discutez sur Messenger où que vous soyez ! Mettez Messenger sur votre mobile ! ------------------------------------------------------------------------------ _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Problem while making dllWith IKVM 0.36 (thanks to Jeroen Frijters), I do : ...\ikvm-0.36.0.11\bin>ikvmc -target:library NFC.jar Note IKVMC0002: output file is "NFC.dll" Note IKVMC0003: automatically adding reference to "...\ikvm-0.36.0.11\bin\ikvm.openjdk.classlibrary.dll" I have tried, and now I can add it as a reference to my project (You were right Jeroen). Now, I have to try if it works correctly. It's the first time I have to use a dll that I have add as a reference to the project. Any help? Thank you for everything ! Subject: AW: [Ikvm-developers] Problem while making dll Date: Wed, 22 Jul 2009 14:45:43 +0200 From: VBerlin@... To: ikvmall@...; ikvm-developers@... Hi,
How look your command line and completly output do you receive if you call IKVMC?
Volker
Von: Bob Dylan
[mailto:ikvmall@...]
Hello, Subject: AW: [Ikvm-developers] Problem
while making dll Hi,
IKVMC produce .NET assambies and not C++ dlls. That you can't use DLLImport. You need to add the dll like other assambies (for example System.Core.dll) as reference to your project.
And of corse you need to add references to some of the IKVM.OpenJdk.xxx.dlls.
Volker
Von: Bob Dylan
[mailto:ikvmall@...]
Hello
everybody,
Souhaitez vous « être au bureau sans y être » ? Oui je le veux !
Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous ! Découvrez toutes les possibilités de communication avec vos proches ------------------------------------------------------------------------------ _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Problem while making dllBecause I am still facing difficulties, I need some advices. To use the dll in my C# project, I was said to write : using TheNamespaceOfMyDll; ... MyClass m = new MyClass(); I don't know exactly what TheNamespaceOfMyDll is supposed to be because in my Java class I have no namespace (I think), but a package name and a class name. I tried to put in my C# code : using MyPackage; or using MyClass; or using TheNameOfTheDll; But during the compilation I have somehing like : The type or the name of the namespace can't be found. I mention that I add the dll as a new reference to my project. Maybe the dll is still not correct? Thus I have done a dump of file again. Below is the result : >dumpbin.exe /EXPORTS "C:\...\ikvm-0.36.0.11\bin\<ma_dll>.dll" Microsoft (R) COFF/PE Dumper Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file C:\...\ikvm-0.36.0.11\bin\<ma_dll>.dll File Type: DLL Summary 2000 .reloc 2000 .rsrc 12000 .text Here again, it seems no functions can be found. The dll is certainly not empty, but it does not look like a normal dll... Have you got any idea of what I am supposed to do to correct the problem? If you need more details, ask me. Thank you very much for your help. From: ikvmall@... To: vberlin@...; ikvm-developers@... Date: Wed, 22 Jul 2009 15:28:13 +0200 Subject: Re: [Ikvm-developers] Problem while making dll Hi, With IKVM 0.36 (thanks to Jeroen Frijters), I do : ...\ikvm-0.36.0.11\bin>ikvmc -target:library NFC.jar Note IKVMC0002: output file is "NFC.dll" Note IKVMC0003: automatically adding reference to "...\ikvm-0.36.0.11\bin\ikvm.openjdk.classlibrary.dll" I have tried, and now I can add it as a reference to my project (You were right Jeroen). Now, I have to try if it works correctly. It's the first time I have to use a dll that I have add as a reference to the project. Any help? Thank you for everything ! Subject: AW: [Ikvm-developers] Problem while making dll Date: Wed, 22 Jul 2009 14:45:43 +0200 From: VBerlin@... To: ikvmall@...; ikvm-developers@... Hi,
How look your command line and completly output do you receive if you call IKVMC?
Volker
Von: Bob Dylan
[mailto:ikvmall@...]
Hello, Subject: AW: [Ikvm-developers] Problem
while making dll Hi,
IKVMC produce .NET assambies and not C++ dlls. That you can't use DLLImport. You need to add the dll like other assambies (for example System.Core.dll) as reference to your project.
And of corse you need to add references to some of the IKVM.OpenJdk.xxx.dlls.
Volker
Von: Bob Dylan
[mailto:ikvmall@...]
Hello
everybody,
Souhaitez vous « être au bureau sans y être » ? Oui je le veux !
Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous ! Découvrez toutes les possibilités de communication avec vos proches Souhaitez vous « être au bureau sans y être » ? Oui je le veux ! ------------------------------------------------------------------------------ _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Problem while making dllHi, How I allready write produce ikvmc not native dlls else it produce
assemblies. That it include no functions. It include only classes in different
namespaces. The java term package is equals to the term namespace. Volker Von: Bob Dylan
[mailto:ikvmall@...] Hi again, From: ikvmall@... Subject: AW: [Ikvm-developers] Problem
while making dll Hi, How look your command line and completly output do you receive
if you call IKVMC? Volker Von: Bob Dylan
[mailto:ikvmall@...] Hello, Subject: AW: [Ikvm-developers] Problem
while making dll Hi, IKVMC produce .NET assambies and not C++ dlls. That you can't
use DLLImport. You need to add the dll like other assambies (for example
System.Core.dll) as reference to your project. And of corse you need to add references to some of the IKVM.OpenJdk.xxx.dlls. Volker Von: Bob Dylan
[mailto:ikvmall@...] Hello
everybody,
Souhaitez
vous « être au bureau sans y être » ? Oui je le veux
! Vous
voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous ! Découvrez
toutes les possibilités de communication avec vos
proches Souhaitez
vous « être au bureau sans y être » ? Oui
je le veux ! ------------------------------------------------------------------------------ _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Problem while making dllI have a question concerning the smartcard api. Jeroen, you told me you think it is not implemented. What would happened in the case you were right? Am I supposed to have errors when using IKVMC to convert my .jar into a .dll? Or errors during the compilation of my C# project (using the dll previously obtained with ikvmc)? Or errors during the execution? Or no error at all? Because I had 0 error, my dll is correctly added to the project. This dll has been done by me to enable communication (writing/reading data) between a NFC tag and a contactless reader. When I use the Java class with Eclipse, it works fine. But in the C# project, the reader detection method fail at the very beginning and does not find the reader interfaced in USB. Is it due to the smartCardIO API which is not implemented in .NET as you suggest? But I'm not sure... Thank you for your help. > From: jeroen@... > To: ikvmall@...; vberlin@...; ikvm-developers@... > Date: Wed, 22 Jul 2009 14:56:06 +0200 > Subject: RE: [Ikvm-developers] Problem while making dll > > IKVM 0.38 and up require Visual Studio 2005 (.NET 2.0 or higher). Since you use Visual Studio 2003, you need to use IKVM 0.36, but if you want to use the smartcard api, it's probably not going to work, because I think that isn't implemented. > > Regards, > Jeroen > > > -----Original Message----- > > From: Bob Dylan [mailto:ikvmall@...] > > Sent: Wednesday, July 22, 2009 14:39 > > To: vberlin@...; ikvm-developers@... > > Subject: Re: [Ikvm-developers] Problem while making dll > > > > Hello, > > > > I am not sure I understand what you are saying. IKVMC produces .NET > > assemblies I agree with you. And I think that's what I want. But when I > > try to add the reference with Project --> Add a reference, I have an > > error message : "[...]. This is not a valid assembly or a COM > > component. Only assembly with the 'dll' extension and COM component can > > be referenced. [...]". That's why I tried to use it with [ DllImport ]. > > It confirms something goes wrong when I convert the <file>.jar in > > <file>.dll. > > Also, editing a normal dll with notepad++ shows something unreadable in > > the whole file. But mine shows my java code surrounded by something > > unreadable... > > > > Thank you for your help. > > > > > > ________________________________ > > > > Subject: AW: [Ikvm-developers] Problem while making dll > > Date: Wed, 22 Jul 2009 14:24:23 +0200 > > From: VBerlin@... > > To: ikvmall@...; ikvm-developers@... > > > > > > > > Hi, > > > > > > > > IKVMC produce .NET assambies and not C++ dlls. That you can't use > > DLLImport. You need to add the dll like other assambies (for example > > System.Core.dll) as reference to your project. > > > > > > > > And of corse you need to add references to some of the > > IKVM.OpenJdk.xxx.dlls. > > > > > > > > Volker > > > > > > > > Von: Bob Dylan [mailto:ikvmall@...] > > Gesendet: Mittwoch, 22. Juli 2009 14:13 > > An: ikvm-developers@... > > Betreff: [Ikvm-developers] Problem while making dll > > > > > > > > Hello everybody, > > > > I have downloaded and tried IKVM product. But I have a little problem > > whtih ikvmc. > > In fact, I try to convert a <file>.jar into a .NET <file>.dll. To do > > this, I have followed the tutorial on IKVM website. It is said that i > > have two differents way to proceed : > > > > ikvmc -target:library <file>.jar -out:<file>.dll ikvmc -target:library > > <file>.class -out:<file>.dll > > > > When I do this, I have the following result : > > > > Note IKVMC0002: output file is "<file>.dll" > > > > Then I tried to use it in a C# project with some lines as : > > > > [ DllImport("<file>.dll") ] > > static extern void DllMethod(); > > ... > > public void .netMethod(){ > > ... > > DllMethod(); > > ... > > } > > > > > > When I compile there is no problem but when I execute the project I > > have this exception message : > > > > 'System.EntryPointNotFoundException' > > > > It seems my method is not found in the dll (the method is correctly > > written). > > Thus I have done a dump of this dll thanks to the visual sudio .Net > > 2003 Prompt : > > > > dumpbin.exe /EXPORTS C:\<file>.dll > > > > Dump of file C:\<file>.dll > > > > File Type: DLL > > > > Summary > > > > 2000 .reloc > > 2000 .rsrc > > 6000 .text > > > > And it seems that no function are in this dll. The dll seems empty. > > When I do a dumpbin /EXPORTS on a normal dll, I have informations > > concerning functions of the dll. > > > > Have you got any idea of the origin of my problem? > > > > Propositions : > > > > * The jar file is badly done. > > * The java project needs a special API to allow the communication > > with a smart card : jsr 268 namely Java Smart Card I/O API (calling > > with : import javax.smartcardio.*; ). Maybe I have to make a reference > > to IKVM.OpenJDK.ClassLibrary.dll in my .NET project. But I am not able > > to find this dll. > > > > * Maybe the jsr 268 API has not been implemented in .NET. > > > > * Thus I can convert the Java API to .NET CIL using ikvmc > > <http://www.ikvm.net/userguide/ikvmc.html> . But I don't know were to > > find this Java API. > > * I can use the Java reflection API's to dynamically load and > > execute the Java bytecode using the IKVM bytecode interpreter. But I > > don't know what it means, how to do it, and I don't know how to get the > > Java API. > > > > > > I would appreciate your help because I am completely blocked... > > If you know the equivalent of this Java Smart Card I/O API in C#, it > > may help me. > > > > Thank you in advance ! > > > > > > > > > > ________________________________ > > > > Souhaitez vous « être au bureau sans y être » ? Oui je le veux ! > > <http://www.microsoft.com/france/windows/bts/default.mspx> > > > > > > ________________________________ > > > > Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows > > Live ? Lancez-vous ! > > <http://www.microsoft.com/windows/windowslive/default.aspx> Votre correspondant a choisi Hotmail et profite d'un stockage quasiment illimité. Créez un compte Hotmail gratuitement ! ------------------------------------------------------------------------------ _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
|
|
Re: Problem while making dllHi,
I really don't know. I think that the smartcard API exists, but there is no backend implementation. In many cases in the JDK, there is an API that can work with multiple backend implementations, so the API can exist without there being any useful backend. Regards, Jeroen > -----Original Message----- > From: Bob Dylan [mailto:ikvmall@...] > Sent: Friday, July 24, 2009 12:00 > To: Jeroen Frijters; ikvm-developers@... > Subject: RE: [Ikvm-developers] Problem while making dll > > Good morning everybody, > > I have a question concerning the smartcard api. Jeroen, you told me you > think it is not implemented. What would happened in the case you were > right? Am I supposed to have errors when using IKVMC to convert my .jar > into a .dll? Or errors during the compilation of my C# project (using > the dll previously obtained with ikvmc)? Or errors during the > execution? Or no error at all? Because I had 0 error, my dll is > correctly added to the project. This dll has been done by me to enable > communication (writing/reading data) between a NFC tag and a > contactless reader. When I use the Java class with Eclipse, it works > fine. But in the C# project, the reader detection method fail at the > very beginning and does not find the reader interfaced in USB. > Is it due to the smartCardIO API which is not implemented in .NET as > you suggest? But I'm not sure... > > Thank you for your help. > > > From: jeroen@... > > To: ikvmall@...; vberlin@...; > > ikvm-developers@... > > Date: Wed, 22 Jul 2009 14:56:06 +0200 > > Subject: RE: [Ikvm-developers] Problem while making dll > > > > IKVM 0.38 and up require Visual Studio 2005 (.NET 2.0 or higher). > Since you use Visual Studio 2003, you need to use IKVM 0.36, but if you > want to use the smartcard api, it's probably not going to work, because > I think that isn't implemented. > > > > Regards, > > Jeroen > > > > > -----Original Message----- > > > From: Bob Dylan [mailto:ikvmall@...] > > > Sent: Wednesday, July 22, 2009 14:39 > > > To: vberlin@...; ikvm-developers@... > > > Subject: Re: [Ikvm-developers] Problem while making dll > > > > > > Hello, > > > > > > I am not sure I understand what you are saying. IKVMC produces .NET > > > assemblies I agree with you. And I think that's what I want. But > > > when I try to add the reference with Project --> Add a reference, I > > > have an error message : "[...]. This is not a valid assembly or a > > > COM component. Only assembly with the 'dll' extension and COM > > > component can be referenced. [...]". That's why I tried to use it > with [ DllImport ]. > > > It confirms something goes wrong when I convert the <file>.jar in > > > <file>.dll. > > > Also, editing a normal dll with notepad++ shows something > unreadable > > > in the whole file. But mine shows my java code surrounded by > > > something unreadable... > > > > > > Thank you for your help. > > > > > > > > > ________________________________ > > > > > > Subject: AW: [Ikvm-developers] Problem while making dll > > > Date: Wed, 22 Jul 2009 14:24:23 +0200 > > > From: VBerlin@... > > > To: ikvmall@...; ikvm-developers@... > > > > > > > > > > > > Hi, > > > > > > > > > > > > IKVMC produce .NET assambies and not C++ dlls. That you can't use > > > DLLImport. You need to add the dll like other assambies (for > example > > > System.Core.dll) as reference to your project. > > > > > > > > > > > > And of corse you need to add references to some of the > > > IKVM.OpenJdk.xxx.dlls. > > > > > > > > > > > > Volker > > > > > > > > > > > > Von: Bob Dylan [mailto:ikvmall@...] > > > Gesendet: Mittwoch, 22. Juli 2009 14:13 > > > An: ikvm-developers@... > > > Betreff: [Ikvm-developers] Problem while making dll > > > > > > > > > > > > Hello everybody, > > > > > > I have downloaded and tried IKVM product. But I have a little > > > problem whtih ikvmc. > > > In fact, I try to convert a <file>.jar into a .NET <file>.dll. To > do > > > this, I have followed the tutorial on IKVM website. It is said that > > > i have two differents way to proceed : > > > > > > ikvmc -target:library <file>.jar -out:<file>.dll ikvmc > > > -target:library <file>.class -out:<file>.dll > > > > > > When I do this, I have the following result : > > > > > > Note IKVMC0002: output file is "<file>.dll" > > > > > > Then I tried to use it in a C# project with some lines as : > > > > > > [ DllImport("<file>.dll") ] > > > static extern void DllMethod(); > > > ... > > > public void .netMethod(){ > > > ... > > > DllMethod(); > > > ... > > > } > > > > > > > > > When I compile there is no problem but when I execute the project I > > > have this exception message : > > > > > > 'System.EntryPointNotFoundException' > > > > > > It seems my method is not found in the dll (the method is correctly > > > written). > > > Thus I have done a dump of this dll thanks to the visual sudio .Net > > > 2003 Prompt : > > > > > > dumpbin.exe /EXPORTS C:\<file>.dll > > > > > > Dump of file C:\<file>.dll > > > > > > File Type: DLL > > > > > > Summary > > > > > > 2000 .reloc > > > 2000 .rsrc > > > 6000 .text > > > > > > And it seems that no function are in this dll. The dll seems empty. > > > When I do a dumpbin /EXPORTS on a normal dll, I have informations > > > concerning functions of the dll. > > > > > > Have you got any idea of the origin of my problem? > > > > > > Propositions : > > > > > > * The jar file is badly done. > > > * The java project needs a special API to allow the communication > > > with a smart card : jsr 268 namely Java Smart Card I/O API (calling > > > with : import javax.smartcardio.*; ). Maybe I have to make a > > > reference to IKVM.OpenJDK.ClassLibrary.dll in my .NET project. But > I > > > am not able to find this dll. > > > > > > * Maybe the jsr 268 API has not been implemented in .NET. > > > > > > * Thus I can convert the Java API to .NET CIL using ikvmc > > > <http://www.ikvm.net/userguide/ikvmc.html> . But I don't know were > > > to find this Java API. > > > * I can use the Java reflection API's to dynamically load and > > > execute the Java bytecode using the IKVM bytecode interpreter. But > I > > > don't know what it means, how to do it, and I don't know how to get > > > the Java API. > > > > > > > > > I would appreciate your help because I am completely blocked... > > > If you know the equivalent of this Java Smart Card I/O API in C#, > it > > > may help me. > > > > > > Thank you in advance ! > > > > > > > > > > > > > > > ________________________________ > > > > > > Souhaitez vous « être au bureau sans y être » ? Oui je le veux ! > > > <http://www.microsoft.com/france/windows/bts/default.mspx> > > > > > > > > > ________________________________ > > > > > > Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows > > > Live ? Lancez-vous ! > > > <http://www.microsoft.com/windows/windowslive/default.aspx> > > > ________________________________ > > Votre correspondant a choisi Hotmail et profite d'un stockage quasiment > illimité. Créez un compte Hotmail gratuitement ! > <http://www.windowslive.fr/hotmail/default.asp> ------------------------------------------------------------------------------ _______________________________________________ Ikvm-developers mailing list Ikvm-developers@... https://lists.sourceforge.net/lists/listinfo/ikvm-developers |
| Free embeddable forum powered by Nabble | Forum Help |