NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Java Card 3.0.2 modules are now available for development builds

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Tim Boudreau
Posted via mailing list.





PostPosted: Fri Jan 15, 2010 1:06 am    Post subject: Java Card 3.0.2 modules are now available for development builds Reply with quote

Hi, Everyone,

If you've ever wanted to work with Java Card, the Java Card NetBeans
modules, much improved from 6.7, are now available if you're running a
*development* build (you can get one here -
http://bits.netbeans.org/download/trunk/nightly/latest/ ), in Tools >
Plugins > Available Modules.

For those not familiar with Java Card, Java Card is a way to write
programs for Smart Cards in Java. It is a somewhat different world than
typical desktop or even Java ME programming, since in those worlds you
don't consider it normal that the computer your program is running on
might be powered off at any time :-)

The modules bundle the Java Card SDK 3.0.2 (the emulator and associated
libraries), so it is completely "batteries included". Java Card 3
includes support for Servlets(!), and has such wonders as
java.lang.String and java.util.Vector - i.e. it's not just about painful
binary protocols. The Java Card SDK is a development environment for
such programs, including an emulator (similar to developing a mobile
application where, to test it, a mobile phone emulator appears on your
desktop - only a smart card has no user interface). The SDK also
includes a number of sample applications.

Using the modules is much like working with other kinds of projects in
NetBeans - you get a new project category - Java Card, for creating
projects. And there is a new node in the Services window, Java Card
Platforms, which will show installed SDKs (the bundled one is set up
automatically), what devices are available to deploy to, and so forth.
For a deeper overview, this blog -
http://weblogs.java.net/blog/timboudreau/archive/2009/05/sneak_preview_j.html
- may be useful - the UI has not changed too much since then, although
what's under the hood has quite a bit. Right now there is support for
deploying to only one brand of physical, you-can-hold-it-in-your-hand,
smart card (Oberthur) - not due to any sort of bias, but simply because
they were the only folks who sent me a smart card - but more are on the way.

We would love to get your feedback on these - please try them out, and
if you see problems, please do file bugs (
https://netbeans.org/bugzilla/enter_bug.cgi ) - what is needed most
right now is real users, not just me and the Java Card team at Sun,
testing it!

Best regards,

-Tim
Back to top
fermar84



Joined: 20 Jan 2010
Posts: 1

PostPosted: Wed Jan 20, 2010 3:06 am    Post subject: Incentivate its use Reply with quote

Hello Tim, i have tried to use it but i've come with a lot of problems, but how do you expect this to be used when there isnt even a forum for it? I think this would be incentivate its use.

I was long waiting something like this to be released (and thanks to the netbeans team for this) instead of using gemalto expensive tools....

Thank you in advance,
Back to top
safarmer



Joined: 21 Jan 2010
Posts: 1
Location: Brisbane, Australia

PostPosted: Thu Jan 21, 2010 3:36 am    Post subject: Reply with quote

Hi Tim,

I have downloaded your plug-in and started looking around. I must say what I have seen looks good! I was just wondering if there were any plans to allow it to support older versions of the JCDK? We currently use JC 2.2.1 cards and are looking at moving to JC 2.2.2 when more become commercially available.

Since JC 3 cards are not readily available we are stuck with development tools that support JC 2.2.1 and this would prevent using this plug-in for real world development.

Cheers,
Shane
Back to top
FractalizeR



Joined: 13 Jan 2010
Posts: 2

PostPosted: Mon Jan 25, 2010 8:05 pm    Post subject: Reply with quote

Since 6.8 plugin uses Connected JCDK, it should support development of the whole 2.2.x series, but I don't know how

But what edition of NetBeans contains this plugin?

UPDATE: answer: Java version, Java ME component


Last edited by FractalizeR on Wed Jan 27, 2010 5:29 am; edited 1 time in total
Back to top
Brad Schmidt
Posted via mailing list.





PostPosted: Wed Jan 27, 2010 12:09 pm    Post subject: Java Card 3.0.2 modules are now available for development builds Reply with quote

If you mean the plugin for Java Card 3.02, it is currently available in
the dev builds of NetBeans 6.9.

For information about getting set up see the Java Card Quick Start:
http://netbeans.org/kb/docs/javame/java-card.html

Brad

On 1/25/2010 9:05 PM, FractalizeR wrote:
Quote:
Since 6.8 plugin uses Connected JCDK, it should support development of the whole 2.2.x series

But what edition of NetBeans contains this plugin?





Back to top
Tim Boudreau
Posted via mailing list.





PostPosted: Sat Jan 30, 2010 8:14 am    Post subject: Java Card 3.0.2 modules are now available for development builds Reply with quote

fermar84 wrote:
Quote:
Hello Tim, i have tried to use it but i've come with a lot of problems, but how do you expect this to be used when there isnt even a forum for it? I think this would be incentivate its use.

We could set up a Java Card mailing list/forum if necessary. I tend to
be very conservative about setting up new lists for specific
technologies - I'd rather we use nbusers for feedback until there is a
critical mass, for three reasons: 1. A new forum will be very low
traffic and look dead, and 2. It's harder to find, and 3. people who
might be interested in Java Card if they heard about it won't (it's kind
of like those descriptions of Bill Gates' house all those years ago, and
how it would play the kind of music you like when you enter a room,
because it recognizes you by RFID - what if I *want* to be exposed to
something I haven't encountered before? Smile)

Generally the benefits of keeping the communication paths simple is
worth there being a bit of signal to noise - which is clearly tolerated
well, since nbusers has posts about all sorts of stuff and has been one
of the most active lists in developer tools for > 10 years (I can't
believe it's really been that long!).

So let's not carve off a corner until it's really necessary.
Quote:
I was long waiting something like this to be released (and thanks to the netbeans team for this) instead of using gemalto expensive tools....

Thanks for the thanks!

-Tim
Back to top
Tim Boudreau
Posted via mailing list.





PostPosted: Sat Jan 30, 2010 8:15 am    Post subject: Java Card 3.0.2 modules are now available for development builds Reply with quote

Melongo Annabel wrote:
Quote:
Here's some documentation on Java Card:
http://wiki.netbeans.org/JavaCardLibraries
This is really feature development documentation. The Java Card modules
include a full set of Java Help, so if you press F1 and find the topic,
it should be pretty complete. And let me know if it isn't, so I can
give feedback to the docs folks.

-Tim
Quote:
, http://netbeans.org/features/javame/

------------------------------------------------------------------------
*From:* fermar84 <address-removed>
*To:* address-removed
*Sent:* Tue, January 19, 2010 9:07:12 PM
*Subject:* [nbusers] Java Card 3.0.2 modules are now available for
development builds

Hello Tim, i have tried to use it but i've come with a lot of
problems, but how do you expect this to be used when there isnt even a
forum for it? I think this would be incentivate its use.

I was long waiting something like this to be released (and thanks to
the netbeans team for this) instead of using gemalto expensive tools....

Thank you in advance,




Back to top
Tim Boudreau
Posted via mailing list.





PostPosted: Sat Jan 30, 2010 8:27 am    Post subject: Java Card 3.0.2 modules are now available for development builds Reply with quote

safarmer wrote:
Quote:
Hi Tim,

I have downloaded your plug-in and started looking around. I must say what I have seen looks good! I was just wondering if there were any plans to allow it to support older versions of the JCDK? We currently use JC 2.2.1 cards and are looking at moving to JC 2.2.2 when more become commercially available.

Since JC 3 cards are not readily available we are stuck with development tools that support JC 2.2.1 and this would prevent using this plug-in for real world development.

If I could get my hands on a card such as you are using, and the SDK
that comes with it, I could probably get it working and would like to.

There is an SPI for plugging in real cards. It is generic enough that
with a little work, it should be possible to support older cards. The
main things needed would be:
- Ant tasks, if the Java Card Reference implementation 3.0.2's tasks do
not map perfectly to what that card needs
- A way for the IDE to query the device to find out if it is attached
(and ideally other queries, like what stuff is already deployed)
- A way to deploy to the device, preferably via an Ant task.

Some things could be done by overriding build-script targets.

If you want to play with doing this, here is some draft documentation
(lots still to write up) of how Java Card integration works -
http://wiki.netbeans.org/JavaCardPlatformIntegration. To set up a
"platform", the IDE looks for a file "platform.properties" in the SDK
directory. It's mostly things like class paths, and stuff like that.
One thing you'll need to set (regardless of the real version) is
javacard.version=3.0.2
so the new platform wizard won't reject it.

It's probably possible to get something working by putting a
platform.properties file in your SDK directory and setting up the
classpaths appropriately, and turning some other things on and off.

I'd be happy to help, or if you know of any way to get a card and an SDK
from whatever vendor you are using, I could try to make it work and add
a module for it. Right now we're at the point of making sure the SPI
for plugging in different kinds of cards is generic enough that you can
add support for another kind of card by writing 3 or 4 java classes, an
Ant task for two and a properties file. So, the more things to test
against, the better, to make sure there aren't any requirements for some
kinds of cards that I've missed (you don't have an API until you have at
least 2 implementations Smile).

Feel free to email me privately if you want some help trying to hack
NetBeans into thinking your SDK is really a something it can talk to;
from there, getting it working right should be a manageable amount of work.

-Tim
Back to top
Tim Boudreau
Posted via mailing list.





PostPosted: Sat Jan 30, 2010 8:30 am    Post subject: Java Card 3.0.2 modules are now available for development builds Reply with quote

FractalizeR wrote:
Quote:
Since 6.8 plugin uses Connected JCDK, it should support development of the whole 2.2.x series

But what edition of NetBeans contains this plugin?

It doesn't, although I suspect you could build classic applet/library
bundles using 3.0.2 and then manually deploy them to a 2.2.x card. It's
never been tried, so there might be some issues, but it's worth a shot.

The whole focus of the project has been supporting 3.0.2 - the Java Card
team's top priority was to have tools for the newest version, so that
was job #1. But I hope that I've designed Java Card support adequately
that it wouldn't be too much work to make older versions usable too.
The main question is what pieces are missing (particularly when it comes
to Ant tasks and the tools they call to deploy).

-Tim
Back to top
Brad Schmidt
Posted via mailing list.





PostPosted: Sat Jan 30, 2010 8:31 am    Post subject: Java Card 3.0.2 modules are now available for development builds Reply with quote

Just one thing to note. There *is* a Java Card forum:
http://forums.sun.com/forum.jspa?forumID=23

Note that it does not necessarily apply to NetBeans > Java Card issues,
but it may address some topics specific to Java Card that users may have.

Brad

Tim Boudreau wrote:
Quote:
fermar84 wrote:
Quote:
Hello Tim, i have tried to use it but i've come with a lot of
problems, but how do you expect this to be used when there isnt even
a forum for it? I think this would be incentivate its use.

We could set up a Java Card mailing list/forum if necessary. I tend
to be very conservative about setting up new lists for specific
technologies - I'd rather we use nbusers for feedback until there is a
critical mass, for three reasons: 1. A new forum will be very low
traffic and look dead, and 2. It's harder to find, and 3. people who
might be interested in Java Card if they heard about it won't (it's
kind of like those descriptions of Bill Gates' house all those years
ago, and how it would play the kind of music you like when you enter a
room, because it recognizes you by RFID - what if I *want* to be
exposed to something I haven't encountered before? Smile)

Generally the benefits of keeping the communication paths simple is
worth there being a bit of signal to noise - which is clearly
tolerated well, since nbusers has posts about all sorts of stuff and
has been one of the most active lists in developer tools for > 10
years (I can't believe it's really been that long!).

So let's not carve off a corner until it's really necessary.
Quote:
I was long waiting something like this to be released (and thanks to
the netbeans team for this) instead of using gemalto expensive tools....

Thanks for the thanks!

-Tim
Back to top
Brad Schmidt
Posted via mailing list.





PostPosted: Sat Jan 30, 2010 8:49 am    Post subject: Java Card 3.0.2 modules are now available for development builds Reply with quote

There is a thread in progress on the Java Card forum about this issue.
I'm not sure if it's got the answer, but it gets into additional details
that may be useful.

http://forums.sun.com/thread.jspa?threadID=5425366&tstart=0

Brad

Tim Boudreau wrote:
Quote:
safarmer wrote:
Quote:
Hi Tim,

I have downloaded your plug-in and started looking around. I must say
what I have seen looks good! I was just wondering if there were any
plans to allow it to support older versions of the JCDK? We currently
use JC 2.2.1 cards and are looking at moving to JC 2.2.2 when more
become commercially available.
Since JC 3 cards are not readily available we are stuck with
development tools that support JC 2.2.1 and this would prevent using
this plug-in for real world development.

If I could get my hands on a card such as you are using, and the SDK
that comes with it, I could probably get it working and would like to.

There is an SPI for plugging in real cards. It is generic enough that
with a little work, it should be possible to support older cards. The
main things needed would be:
- Ant tasks, if the Java Card Reference implementation 3.0.2's tasks
do not map perfectly to what that card needs
- A way for the IDE to query the device to find out if it is attached
(and ideally other queries, like what stuff is already deployed)
- A way to deploy to the device, preferably via an Ant task.

Some things could be done by overriding build-script targets.

If you want to play with doing this, here is some draft documentation
(lots still to write up) of how Java Card integration works -
http://wiki.netbeans.org/JavaCardPlatformIntegration. To set up a
"platform", the IDE looks for a file "platform.properties" in the SDK
directory. It's mostly things like class paths, and stuff like that.
One thing you'll need to set (regardless of the real version) is
javacard.version=3.0.2
so the new platform wizard won't reject it.

It's probably possible to get something working by putting a
platform.properties file in your SDK directory and setting up the
classpaths appropriately, and turning some other things on and off.

I'd be happy to help, or if you know of any way to get a card and an
SDK from whatever vendor you are using, I could try to make it work
and add a module for it. Right now we're at the point of making sure
the SPI for plugging in different kinds of cards is generic enough
that you can add support for another kind of card by writing 3 or 4
java classes, an Ant task for two and a properties file. So, the more
things to test against, the better, to make sure there aren't any
requirements for some kinds of cards that I've missed (you don't have
an API until you have at least 2 implementations Smile).

Feel free to email me privately if you want some help trying to hack
NetBeans into thinking your SDK is really a something it can talk to;
from there, getting it working right should be a manageable amount of
work.

-Tim

Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo