Re: Package.getImplementationVersion

Eric Pederson <[email protected]>
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <CALEPPW8XYTJi-D7gVhVromtwf5DmtY6DRm2ZB3vrANrMMfOQVA@mail.gmail.com>
Hi Jeroen:

Per your instructions I created a small test case.   If I create a DLL with
just the jar that has the class that I am calling
getClass().getPackage().getImplementationVersion() on, then it works fine.
 However, if the DLL is created with a number of jars, then it uses the
information from the manifest of the first jar.  For example the DLL is
created with:

ikvmc -target:library -out:MyLib.dll -version:3.2.1 -sharedclassloader
jar1.jar jar2.jar jar3.jar

it will always use the information from the manifest of jar1.jar, even if
the class in question is from jar2.jar.

Thanks,


-- Eric


On Tue, Feb 11, 2014 at 2:52 AM, Jeroen Frijters <[email protected]> wrote:

> Hi Eric,
>
> After you create the dll you can create an exe from a small Java class
> that prints the package info. Compile the test class like this:
>
> ikvmc -out:test.exe Test.class -r:MyLibrary.dll
>
> Regards,
> Jeroen
>
> > -----Original Message-----
> > From: Eric Pederson [mailto:[email protected]]
> > Sent: Monday, February 10, 2014 19:10
> > To: Jeroen Frijters
> > Subject: Re: [Ikvm-developers] Package.getImplementationVersion
> >
> > Hi Jeroen:
> >
> > What's the best way to create a small repro?  I'm a Java guy and I don't
> > know the best way to do this.  The project that I'm working on is a
> > Excel .XLL addin.  I can create a small DLL based on a small jar using
> > ikvmc - how would I test that DLL?
> >
> > In the meantime, here's some more clues - the other package.getXXX
> > methods also return values that aren't the same as the manifest for the
> > jar that contains the class:
> >
> >
> > getImplementationVersion: 1.1
> >
> > getImplementationTitle: Sun Java System Application Server
> >
> > getImplementationVendor: Sun Microsystems, Inc.
> >
> > getSpecificationVersion: 1.1
> >
> > getSpecificationTitle: JavaBeans(TM) Activation Framework Specification
> >
> > getSpecificationVendor: Sun Microsystems, Inc.
> >
> >
> >
> >
> > Thanks!
> >
> >
> >
> > -- Eric
> >
> >
> >
> > On Sun, Feb 9, 2014 at 5:56 AM, Jeroen Frijters <[email protected]
> > <mailto:[email protected]> > wrote:
> >
> >
> >       Please post a (small) repro.
> >
> >
> >       > -----Original Message-----
> >       > From: Eric Pederson [mailto:[email protected]
> > <mailto:[email protected]> ]
> >       > Sent: Saturday, February 8, 2014 1:36
> >       > To: [email protected] <mailto:ikvm-
> > [email protected]>
> >       > Subject: [Ikvm-developers] Package.getImplementationVersion
> >       >
> >       > Hi all:
> >       >
> >       > this.getClass.getPackage.getImplementationVersion returns "1.1"
> > instead
> >       > of the string in the MANIFEST.MF using a DLL built with ikvmc
> >       > 7.2.4630.5.  I saw in mailing list post that 7.1 should support
> > it.
> >       >
> >       > Please advise, thanks!
> >       >
> >       >
> >       > -- Eric
> >
> >
> >
>
>

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk

_______________________________________________
Ikvm-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ikvm-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.