NetRexx and J2ME

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

NetRexx and J2ME

Mystery Guest
Hello,
 
For Christmas I was fortunate to get (but still waiting for the arrival of) a Kindle 3. 
 
Now Amazon has announced a beta KDK (Kindle Developement Kit) that is based on J2ME (JSR 117).  Now I am the first to admit that I know little about J2ME but on the surface it looks like it is J2SE minus a bunch of classes.  So my question is "Can I use NetRexx to generate code that is J2ME compliant?".  If the answer is yes are there tricks, gotchas, etc to be wary of.
 
Cheers.
 
./Colin
 

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: NetRexx and J2ME

Mike Cowlishaw
 
For Christmas I was fortunate to get (but still waiting for the arrival of) a Kindle 3. 
 
Now Amazon has announced a beta KDK (Kindle Developement Kit) that is based on J2ME (JSR 117).  Now I am the first to admit that I know little about J2ME but on the surface it looks like it is J2SE minus a bunch of classes.  So my question is "Can I use NetRexx to generate code that is J2ME compliant?".  If the answer is yes are there tricks, gotchas, etc to be wary of.
 
Almost certainly -- about all that NetRexx absolutely requires from Java is the Object class (and probably String and a couple of others).  I recall someone used it for programming the Lego Mindstorm processor (a very minimal Java runtime).
 
Mike 

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx and J2ME

Fernando Cassia-2
On Fri, Jan 14, 2011 at 4:15 AM, Mike Cowlishaw <[hidden email]> wrote:

> Almost certainly -- about all that NetRexx absolutely requires from Java is
> the Object class (and probably String and a couple of others).  I recall
> someone used it for programming the Lego Mindstorm processor (a very minimal
> Java runtime).

In an ideal world.... NetRexx would be able to accept a parameter to
make sure its output targets J2ME (Java ME) or J2SE (Java SE).

In a dream world... target could be anything, and it´d be possible to
write Rexx and generate JavaFX, for that matter. :o)

... And it´d all work seamlessly from NetBeans, even to create GUIs
with Rexx logic attached, like what VX-Rexx was in the OS/2 World..

Add the above to the wish list. ;)

FC

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx and J2ME

Thomas.Schneider.Wien
Hi Fernando,
    for this reason, ReyC has a source-language and a target-language :-)
Thomas.

Am 14.01.2011 10:01, schrieb Fernando Cassia:

> On Fri, Jan 14, 2011 at 4:15 AM, Mike Cowlishaw<[hidden email]>  wrote:
>
>> Almost certainly -- about all that NetRexx absolutely requires from Java is
>> the Object class (and probably String and a couple of others).  I recall
>> someone used it for programming the Lego Mindstorm processor (a very minimal
>> Java runtime).
> In an ideal world.... NetRexx would be able to accept a parameter to
> make sure its output targets J2ME (Java ME) or J2SE (Java SE).
>
> In a dream world... target could be anything, and it´d be possible to
> write Rexx and generate JavaFX, for that matter. :o)
>
> ... And it´d all work seamlessly from NetBeans, even to create GUIs
> with Rexx logic attached, like what VX-Rexx was in the OS/2 World..
>
> Add the above to the wish list. ;)
>
> FC
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
>


--
Thomas Schneider Projects PP, ReyC, and LOGOS on www.KENAI.com
www.thsitc.com
_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Tom. (ths@db-123.com)
Reply | Threaded
Open this post in threaded view
|

Re: NetRexx and J2ME

Thomas.Schneider.Wien
In reply to this post by Fernando Cassia-2
Realating GUIS:

The Rey Language does add some nice features like:

SHOW a,b,c

x= askfor('Give me your name')

to the NetRexx Language.

Rey is actually an extension of the Rexx language, thought of as an
experimental version for NetRexx3 ...

I'm writing now my newer programs (as LOGOS) in Rey ...
Thomas.
=====================================================

Am 14.01.2011 10:01, schrieb Fernando Cassia:

> On Fri, Jan 14, 2011 at 4:15 AM, Mike Cowlishaw<[hidden email]>  wrote:
>
>> Almost certainly -- about all that NetRexx absolutely requires from Java is
>> the Object class (and probably String and a couple of others).  I recall
>> someone used it for programming the Lego Mindstorm processor (a very minimal
>> Java runtime).
> In an ideal world.... NetRexx would be able to accept a parameter to
> make sure its output targets J2ME (Java ME) or J2SE (Java SE).
>
> In a dream world... target could be anything, and it´d be possible to
> write Rexx and generate JavaFX, for that matter. :o)
>
> ... And it´d all work seamlessly from NetBeans, even to create GUIs
> with Rexx logic attached, like what VX-Rexx was in the OS/2 World..
>
> Add the above to the wish list. ;)
>
> FC
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
>


--
Thomas Schneider Projects PP, ReyC, and LOGOS on www.KENAI.com
www.thsitc.com
_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Tom. (ths@db-123.com)
Reply | Threaded
Open this post in threaded view
|

RE: NetRexx and J2ME

Mike Cowlishaw
In reply to this post by Fernando Cassia-2
 

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of
> Fernando Cassia
> Sent: 14 January 2011 09:01
> To: IBM Netrexx
> Subject: Re: [Ibm-netrexx] NetRexx and J2ME
>
> On Fri, Jan 14, 2011 at 4:15 AM, Mike Cowlishaw
> <[hidden email]> wrote:
>
> > Almost certainly -- about all that NetRexx absolutely requires from
> > Java is the Object class (and probably String and a couple
> of others). 
> > I recall someone used it for programming the Lego Mindstorm
> processor
> > (a very minimal Java runtime).
>
> In an ideal world.... NetRexx would be able to accept a
> parameter to make sure its output targets J2ME (Java ME) or
> J2SE (Java SE).
>
> In a dream world... target could be anything, and it´d be
> possible to write Rexx and generate JavaFX, for that matter. :o)
>
> ... And it´d all work seamlessly from NetBeans, even to
> create GUIs with Rexx logic attached, like what VX-Rexx was
> in the OS/2 World..
>
> Add the above to the wish list. ;)
>
> FC
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: NetRexx and J2ME

Mike Cowlishaw
In reply to this post by Fernando Cassia-2
> In an ideal world.... NetRexx would be able to accept a
> parameter to make sure its output targets J2ME (Java ME) or
> J2SE (Java SE).

Not sure why you'd need that.  If you compiled when on the ME runtime, if you
used anything that's not there you'd get a compile-time message?

Mike  [I am assuming Thomas will be able to make an advert out of this e-mail,
too... :-)]

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Beginner question

kenner
In reply to this post by Mike Cowlishaw

I'm trying to run the FileLister.Class from the NetrexxD package as an applet from a page of HTML that works for the most part, but beyond a simple "Hello World", I get stuck.

Is this a problem with Classpath? How does z/os' (1.10) HTTPD know what is in the Classpath?? Any direction is appreciated...


java.lang.reflect.InvocationTargetException
        at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Unknown Source)
        at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
        at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
        at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: java.lang.InstantiationException: FileLister
        at sun.plugin2.applet.Plugin2Manager$12.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.InstantiationException: FileLister
        at java.lang.Class.newInstance0(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        ... 9 more
Exception: java.lang.reflect.InvocationTargetException

Kenneth Klein

_______________________________________________
Ibm-netrexx mailing list
[hidden email]