Jamvm and Jxta

View: New views
3 Messages — Rating Filter:   Alert me  

Jamvm and Jxta

by Arigead :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello all,
    first post to this list, just signed up last night as I'm having a
problem with running Jxta on Jamvm. I'm trying to run Jxta on a gumstix
embedded system, amongst others but hit a problem when Jxta tries to
call java.lang.IsCompatibleWith()

I suppose I could try and get a hold of the jamvm source and investigate
why I'm getting a null pointer exception. If anybody has any ideas
please let me know as Java ain't my forte at all.

Thanks in advance


------------------------------------------------------------------------------
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
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: Jamvm and Jxta

by Robert Lougher :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Which version of JamVM are you using?

Rob.

2009/9/24 Arigead <captain.deadly@...>:

> Hello all,
>    first post to this list, just signed up last night as I'm having a
> problem with running Jxta on Jamvm. I'm trying to run Jxta on a gumstix
> embedded system, amongst others but hit a problem when Jxta tries to
> call java.lang.IsCompatibleWith()
>
> I suppose I could try and get a hold of the jamvm source and investigate
> why I'm getting a null pointer exception. If anybody has any ideas
> please let me know as Java ain't my forte at all.
>
> Thanks in advance
>
>
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> Jamvm-general mailing list
> Jamvm-general@...
> https://lists.sourceforge.net/lists/listinfo/jamvm-general
>

------------------------------------------------------------------------------
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
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Parent Message unknown Re: Jamvm and Jxta

by Robert Lougher :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi John,

If you do:

jamvm -version

this will show the Java compatible version and the JamVM version,
which is what I'm interested in, e.g.:

java version "1.5.0"
JamVM version 1.5.3

...

Anyway, I found your thread here:

http://forums.java.net/jive/thread.jspa?threadID=66637&tstart=-1

One of the replies indicates that JXTA is doing a check involving:

Package.getPackage("java.lang").getSpecificationVersion()

which was returning NULL on their VM (from IBM).

On JamVM, this will also return NULL on versions before 1.5.3.  But it
works correctly on the lastest version:

class foo {
   static void main(String[] args) {
       System.out.println(Package.getPackage("java.lang").getSpecificationVersion());
   }
}

> jamvm -version

java version "1.5.0"
JamVM version 1.5.3

> jamvm foo
1.5

> jamvm -version

java version "1.5.0"
JamVM version 1.5.1

> jamvm foo

java.lang.NullPointerException
  at foo.main(foo.java:3)

Hope this helps,
Rob.

2009/9/24 Arigead <captain.deadly@...>:

> Hi Robert thanks for getting back to me I'm running the bitbake recipe
> from Openembedded which builds version 1.5
>
> I'm fairly sure Jxta working with SUN Java 1.5
>
> John
>
>
> Robert Lougher wrote:
>> Hi,
>>
>> Which version of JamVM are you using?
>>
>> Rob.
>>
>> 2009/9/24 Arigead <captain.deadly@...>:
>>> Hello all,
>>>    first post to this list, just signed up last night as I'm having a
>>> problem with running Jxta on Jamvm. I'm trying to run Jxta on a gumstix
>>> embedded system, amongst others but hit a problem when Jxta tries to
>>> call java.lang.IsCompatibleWith()
>>>
>>> I suppose I could try and get a hold of the jamvm source and investigate
>>> why I'm getting a null pointer exception. If anybody has any ideas
>>> please let me know as Java ain't my forte at all.
>>>
>>> Thanks in advance
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>>> _______________________________________________
>>> Jamvm-general mailing list
>>> Jamvm-general@...
>>> https://lists.sourceforge.net/lists/listinfo/jamvm-general
>>>
>>
>
>

------------------------------------------------------------------------------
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
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general