Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - rrashkin

Pages: 1 [2] 3 4 5
Personal Java/Jeode/J2ME Personal Profile / Java App Launcher
« on: September 16, 2004, 10:56:44 am »
Greeting all.
This may not be interesting to anyone else but I like it:
I have several Java apps that I wrote for various reasons.  I really find the whole IPK thing a major hassle as these are really just for me.  I was content for a while to run my apps from the console (I wrote a bash script to list my classes and give me a choice) but it ocurred to me that it would be good to have a "launcher app" that I could put on the desktop that would read a text file (zlnch.txt) of otherwise stand-alone apps and luanch them.  That way, any new app I write, I just copy the classes off to my CF card and edit the text file and I'm done.  The apps need to have a argument-less constructor and basically do nothing in "main" but call the constructor.

So, anyway, if anyone is interested:
Code: [Select]
import java.awt.*;
import java.awt.event.*;

class jlnch extends Frame  {
//    class data
static TextField appnm;
static String rs;
static Choice apln=new Choice();
//    main method
    public static void main(String args[]) throws IOException {
        BufferedReader iniFile = new BufferedReader(new FileReader("zlnch.txt"));
        while ((rs =iniFile.readLine()) != null) {apln.add(rs);}
        apln.addItemListener(new ItemListener(){
             public void itemStateChanged(ItemEvent e)  {
                    String ct = apln.getSelectedItem();
                    try {
                            Class cls = Class.forName(ct);
                    catch (ClassNotFoundException e2) { }
                    catch (IllegalAccessException e3) { }
                    catch (InstantiationException e4) { }
     //call constructor
         jlnch jl1 = new jlnch();
//   constructor method
      public jlnch() {
  setTitle("app launcher");
  addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
          ScrollPane sp = new ScrollPane();
          Panel p0 = new Panel();
          p0.setLayout(new GridLayout(1,0));
          add("Center", sp);

Off Topic forum / I havew a problem with a vendor...
« on: September 16, 2004, 10:21:30 am »
I've never dealt with this company.
Can you stop payment through your CC?

Off Topic forum / Will Bush win?
« on: September 16, 2004, 10:18:22 am »
I believe (and so voted) that Bush will win.  That's because I have a very cynical view of my fellow citizens.  I will vote for Kerry only because there is no one to the left of him.

I think that this year it is clearer than ever that liberals have no one to vote for.  Conservatives have Kerry; wacko looney imperialists have Bush.

Cxx0 General discussions / Zaurus good for "road coders"?
« on: September 15, 2004, 10:49:49 am »
I use my 5500 a lot for coding when I'm on the road.  I do, however, find it better to use a larger keyboard (I have the Targus).  I don't know about jcc but I use the KOPI java compiler and it's just fine.  I use the regular text editor (Sharp/Qtopia) and rename afterward.

General Discussion / Zaurus 5500 Lifespan
« on: August 30, 2004, 03:33:02 pm »
I still love my 5500.  I run the same old Sharp ROM (3.1) as I have since it came out.  I guess if I used more networking/wireless features, I might understand why people are anxious for a continually advancing OS, but I don't so I don't.  What I like best about the Z is what drew me to it originally: it is expandable (SD and CF cards) and uploadable (JAVA apps).  I use it as a mobile computer and only accidentally as a word processor/PIM.

Cxx0 General discussions / I'm confused. Which ROM should I use?
« on: July 21, 2004, 11:47:19 am »
Why wasn't the Sharp ROM ok for your needs?
I have a 5500 and, admittedly, simple tastes, so I don't know if I can make any useful recommendations.  That said, I am pretty comfortable with the Sharp ROM for the 5500 (3.1) and it never crashes on me.

General Discussion / Printing from the Zaurus
« on: July 13, 2004, 12:48:02 pm »
I think I read (in this forum?) that you can print text files over IR to a printer (assuming the printer has an IR sensor).

What I do on trips is bring along a CF or SD reader and borrow a PC when I need to print.

General Discussion / How to run .jar aplication?
« on: July 12, 2004, 10:27:00 am »
You need to have both a terminal program (like qkonsole) and a Java runtime environment (like JEODE).  I don't know about the other ROMs but with the Sharp 3.1 on the SL5500, they have to be installed seperately from (after) the ROM installation.

Then (I do this on a PC), you need to know the location of the main class in the JAR file. You can find this with " jar tf  <jarfile name> ".  It will likely be something like "Progname.progName" (note the implied directory).

Then, on the Z, you enter from the console: evm cp <jarfile name> <main class>.

Accessories / Perfect Stylus
« on: June 22, 2004, 01:26:18 pm »
I went to the local lumber store, bought a 5/16" diameter dowel (I splurged and bought oak for $1.25), cut it to 6" long, put it in a pencil sharpener and it's a perfect stylus. Oak dowels are 36" so I get 6 out of a dowel.  Ash dowels are cheaper and 48" so there are 8 to a dowel.

Software / "installing" an application without installing
« on: June 17, 2004, 03:34:44 pm »
Thanks, it\'s working!

Software / "installing" an application without installing
« on: June 17, 2004, 12:08:31 pm »
I wrote a Java application that I can run just fine from the console (QKonsole) by using \"evm dandc\" (dandc is the classname).  I thought, just for fun, I\'d try to set up an icon so I can launch it without the console.

1. I copied \"qkonsole.desktop\" from /home/QtPalmtop/apps/Applications to the Documents area on my CF card, and called it \"dandc.desktop\".
2. I created a bash script called \"\" in /mnt/card/QtPalmtop/java, where the class resides.  That script contains 2 lines:
cd /mnt/card/Qtpalmtop/java
evm dandc
3. I downloaded an icon (in .png format) to /mnt/card/Documents/Image_files
4. I edited dandc.desktop to show:
    -   run=/mnt/card/QtPalmtop/java/
    -   icon=/mnt/card/Documents/Image_files/jedit.png
    -   name=dandc
5. I copied dandc.desktop back to /home/QtPalmtop/apps/Applications (changed the permissions to 644 like all the other .desktops there).

I was expecting \"dandc\" to now show up in the \"Tab Settings\" selection, but it didn\'t.  I realize that I changed a lot of things at once but even so, can someone tell me what I\'m doing wrong, or, how to do it right?

General Discussion / Who are you and where are you from?
« on: June 07, 2004, 09:01:10 am »
Bob Rashkin, 54 years old.
I currently live in Calhan, Colorado, US (35 miles from Colorado Springs), although I was born in New York and spent my teen years in Los Angeles.
I work as a software engineer for a big defense contractor, designing and building satellite control systems.
I have a 5500 with CF and SD cards but no connectivity (there\'s no WIFI points in the area and I don\'t have a cell phone).

5x00 General discussions / Rebooting
« on: May 26, 2004, 09:30:16 am »
I\'ve had my 5500 for about a year and a half.  In my opinion it is quite stable.  That said, I briefly had a problem like the one you described when I was trying to run a terminal app that required OPIELIB at the same time as I had the serial I/O set to \"free\".  What I\'m thinking is that you may have some conflicting applications.

User Request for Applications / Space, the final frontier
« on: May 25, 2004, 03:32:58 pm »
I don\'t know about Kstars but have a look at Solun\' (at  It does most of what Kstars advertises (although less spiffy) and fits on a Z (SL5500).

Software / executing (say) jSolun from command line
« on: May 25, 2004, 02:25:31 pm »
Never mind.  It turns out (after reading the manifest) that the main class is \"jSolun.JSolun\".

Pages: 1 [2] 3 4 5