- 论坛徽章:
- 0
|
I. Setup on PC
II. Setup on PDA
III. Setup pointbase on PDA
I. Setup on PC.
1. Install PJEE
Setup PJEE3_1-win-nonrom.exe to PC default is driver D:pjee3.1
2. Compile *.java file
javac -bootclasspath d:pjee3.1libclasses.zip -target 1.1 filename.java
3. Run *.java file
d:pjee3.1inpjava filename
4. if need swing:
a. Take out Swing1.1.1
b. Find out javaxswingSwingUtilities.java
c. Change: [color="#0000cc"]Method m = Class.class.getMethod("getProtectionDomain", null); TO
[color="#0000cc"]Method m = Class.class.getMethod("getPackage", null);
[color="#0000cc"] [color="#000000"]d. javac -deprecation -bootclasspath d:pjee3.1libclasses.zip -classpath swingall.jar;. -target 1.1 -d . SwingUtilities.java
e. jar uvf swingall.jar javaxswingSwingUtilities.class
f. rename swingall.jar to swingall_fix.jar
II. Setup on PDA (iPaq Rx 3715 English)
1. copy pjavawince.arm.CAB to PDA
2. Run pjavawince.arm.CAB on PDA
3. if need swing:
copy swingall_fix.jar to Program FilesJavalib
4. Use PHM Registry Editor
a. Find HKEY_CLASSES_ROOTJava Class FileShellOpenCommand
b. Change "Program FilesJavainpjava.exe" -file "%1" TO
"Program FilesJavainpjava.exe" -classpath "Program FilesJavalibswingall_fix.jar" -file "%1"
5. Now it can run *.class with swing
III. Setup pointbase on PDA (iPaq Rx 3715 English)
1. Download pointbase files.
2. Add pointbasemobileclassespbmobile34EV.jar and pbtools34EV.jar to swingall_fix.jar
3. Create a PBdatabase.java
4. Compile
javac -bootclasspath d:pjee3.1libclasses.zip -classpath d:pjee3.1libswingall_fix.jar -target 1.1 PBdatabase.java
5. use PBdatabase class connecte with Pointbase
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2871/showart_27545.html |
|