Penlets.com provides resources for users and developers of the Pulse smart pen from LiveScribe.

 

Subscribe: RSS Feed - Developers Group

Tutorial

Penlets 101

Tutorial by Robert Hanson

Page 1 » Page 2


Installing the Penlet

If you are using NetBeans or Eclipse, go back to the README files I mentioned earlier to learn how to install the penlet. Alternatively you can install the penlet from the command line using Apache Ant. To install the penlet you can use the command "ant penlet.deploy". The following is the output that you should see.

$ ant penlet.deploy
Buildfile: build.xml

init:
     [echo] Version 1.0.0_rNA built on 09/06/2008 08:09 PM by robert.hanson
    [mkdir] Created dir: c:\Documents and Settings\rhanson\MyPenProjects\com.penlets\dist

build:
    [mkdir] Created dir: c:\Documents and Settings\rhanson\MyPenProjects\com.penlets\dist\classes
    [javac] Compiling 1 source file to c:\Documents and Settings\rhanson\MyPenProjects\com.penlets\dist\classes

preverify:
    [mkdir] Created dir: c:\Documents and Settings\rhanson\MyPenProjects\com.penlets\dist\verified
     [java] ProGuard, version 4.2
     [java] Reading program directory [C:\Documents and Settings\rhanson\MyPenProjects\com.penlets\dist\classes]
     [java] Reading library zip [C:\Prerelease_Livescribe_Penlet_SDK\0.6\penletsdk\lib\classes.zip]
     [java] com.penlets.MyFirstPenlet
     [java] Preparing output directory [C:\Documents and Settings\rhanson\MyPenProjects\com.penlets\dist\verified]
     [java]   Copying resources from program directory [C:\Documents and Settings\rhanson\MyPenProjects\com.penlets\dist
\classes]

ext.build.shared.resources:

ext.build.icr.resources:
    [mkdir] Created dir: c:\Documents and Settings\rhanson\MyPenProjects\com.penlets\dist\res\icr

ext.build.images.resources:
    [mkdir] Created dir: c:\Documents and Settings\rhanson\MyPenProjects\com.penlets\dist\res\images

rescopy:
     [copy] Copying 2 files to c:\Documents and Settings\rhanson\MyPenProjects\com.penlets\dist\res

afdcopy:

dist:
    [mkdir] Created dir: c:\Documents and Settings\rhanson\MyPenProjects\com.penlets\dist\lib
      [jar] Building jar: c:\Documents and Settings\rhanson\MyPenProjects\com.penlets\dist\lib\XX_MyFirstPenlet.jar

penlet.deploy:
     [exec] Pen 1: Installing penlet XX_MyFirstPenlet.jar
     [exec] Pen 1: Transferring 1744/1744 (100%)

BUILD SUCCESSFUL
Total time: 5 seconds

And to undeploy you can run "ant penlet.undeploy"

$ ant penlet.undeploy
Buildfile: build.xml

init:
     [echo] Version 1.0.0_rNA built on 09/06/2008 08:14 PM by robert.hanson

penlet.undeploy:
     [exec] Pen 1: Un-installing penlet MyFirstPenlet

BUILD SUCCESSFUL
Total time: 12 seconds

Next Steps

Now this penlet is far from useful, but is a good base to start from. Your next steps should be to experiment and try out different things. If you need some ideas on where to start you can browse the list of tutorials and try some of the out.

Until next time, happy coding!


Page 1 » Page 2


Comments (View)
blog comments powered by Disqus

Project Information

Tested for use with: PreRelease-SDK

New Tutorials

Using a Shared Library
Learn how to create a library of utils that you can share between projects.

Capturing Drawn Shapes
Learn how to capture shapes drawn by the pen and determine relationships.

Penlets 101
Never written a penlet before? Then start here with Penlets 101!

Creating a Custom Vocabulary
Learn how to create a custom vocabulary for your ICR applications.

Using Properties Files
J2ME lacks a Properties class. In this tutorial we roll our own, along with split and chomp functions.