[Mono-list] ikvmc java and gmsc
Johan Holmgren
johan.holmgren at bth.se
Fri Dec 9 05:55:37 EST 2005
Hi again,
I also have another problem which I need to solve.
The jar-file (test.jar) that I want to make into a mono assembly uses
some classes in another jar file. Lets call this second jar file
second.jar
The second jar file uses some library libsomelibary.a. (I'm using a
linux system)
I made test.jar and second.jar into mono assemblies test.dll and
second.dll and then I compiled my testapplication
mcs -target:exe -r:test.dll
-r:/opt/mono-1.1.10/lib/ikvm/IKVM.GNU.Classpath.dll -r:second.dll
-out:testapp.exe sourcefiles.cs
The compilation seems to be ok.
The MONO_PATH variable is set to /opt/mono-1.1.10/lib/ikvm
and when I run run the application with
mono tesatapp.exe
I get a runtime error message asking for the path to library second.so.
I do not know if this problem can be solved and if so, how to do it.
Thanks
Johan
PS. Also can anyone tell me why every message I write needs to be
approved by the moderator even though I have signed up to this list? DS:
Jeroen Frijters wrote:
>Hi Johan,
>
>Did you really execute:
>
>
>
>>ikvmc -reference:/../IKVM.GNU.Classpath.dll -target:library
>>-assembly:Test.dll
>>
>>
>
>Because if that's the case, you get an empty output file. You also need
>to specify the class files or jars that ikvmc should compile.
>
>Regards,
>Jeroen
>
>
>
>>-----Original Message-----
>>From: mono-list-bounces at lists.ximian.com
>>[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of
>>Johan Holmgren
>>Sent: Monday, December 05, 2005 13:40
>>To: Jonathan Pryor
>>Cc: mono-list at lists.ximian.com
>>Subject: Re: [Mono-list] ikvmc java and gmsc
>>
>>Thanks for your answer.
>>Sorry for my late response, a computer crash prevented me
>>from answering earlier.
>>
>>When I type monodis --typedef Test.dll I get the following output:
>>
>>Typedef Table
>>1: <Module> (flist=1, mlist=1, flags=0x0, extends=0x0)
>>
>>
>>Test.java is not included in any java package. Maybe this has
>>to do with my problem.
>>
>>Thanks
>>Johan
>>
>>
>>-----Jonathan Pryor <jonpryor at vt.edu> wrote: -----
>>
>>
>>
>> To: Johan Holmgren <johan.holmgren at bth.se>
>> From: Jonathan Pryor <jonpryor at vt.edu>
>> Date: 12/02/2005 12:49PM
>> cc: mono-list at lists.ximian.com
>> Subject: Re: [Mono-list] ikvmc java and gmsc
>>
>> On Thu, 2005-12-01 at 13:53 +0100, Johan Holmgren wrote:
>> > Hi, I have a problem that I could need some help with
>> >
>> > I hava a java class, Test.java, that I compiled to a
>>assembly using
>> > the commands
>> > javac Test.java
>> > followed by
>> > ikvmc -reference:/../IKVM.GNU.Classpath.dll -target:library
>> > -assembly:Test.dll
>> >
>> > This gives me a library, Test.dll
>> >
>> > Now I want to include Test.dll in a mono project
>>compiled with
>> > gmcs -target:exe -out:somename.exe -r:Test.dll somecsfile.cs
>> >
>> >
>> > In my c# code (file somecsfile.cs) I wrote
>> > using test;
>> > and later in the code
>> > private Test test;
>> >
>> > I get an comnpilation error saying
>> > "Are you missing a using directive or an assembly reference?"
>>
>> Is `test.Test' the full name for your class
>>(namespace+class name)?
>>
>> Alternatively, you can run `monodis --typedef Test.dll`
>>to determine all
>> the types within Test.dll and see if your `using` declaration is
>> referring to the correct namespace for your Test type.
>>
>> - Jon
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
More information about the Mono-list
mailing list