Skip to Main Content

Embedded Technologies

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Swing on IPAQ - Step-by-Step

843849Jul 23 2002 — edited May 12 2003
***(IF YOU want to use Jeode and not personal java then goto bottom)

Personal Java is the older, yet perfectly usable, version of J2ME...I think it is better...

To get it working go to the early access release section of java.sun.com and download the personal java for windows ce ( http://developer.java.sun.com/developer/earlyAccess/personaljava/ ). Then, download swing...( http://java.sun.com/products/jfc/download.archive.html )

Fix the swing bug:

1) Extract the src.zip (from the swing-1.1.1fcsdistribution)
2) in javax/swing you'll find the SwingUtilities.java file
3) Open it your favorite editor
4) Comment line 677 "Method m = Class.class.getMethod("getProtectionDomain", null);"
5) Insert the line "Method m = Class.class.getMethod("getPackage", null);" just after the old one.
6) Save and compile.
7) Copy the Swingall.jar archive in the root of the exstracter src.zip (ie the same level of the javax and com
dirs).
8) Jarize it (jar uvf swingall.jar
javax\swing\SwingUtilities.class)


***JEODE & Personal Java

Now you have a swing jar file and the personaljava runtime or Jeode.

To make programs it is best if you use JDK1.1.8.
Write the program
move the class files to the PPC.
copy over the swing jar file and place in classpath
run program!!!!

US101
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2003
Added on Jul 23 2002
5 comments
123 views