kComp
A way to compile java code on UIQ
Features(after install kComp and related Library)
-Compile Java code on UIQ - from .java-files to .class-files
-Compile JavaScript code (Mozilla Rhino style) on UIQ - from .js-files to .class-file
-Run Java (.class-files) and JavaScript (.js-files) from kComp (No need .sis-process)
-Output Console of kComp can help you debug program.
(Now you can use println or printStackTrace Method.)
-Editor for coding with UIQ
kComp work on UIQ3, I've just test it only on SonyEricsson P1i.
Prepare for Installation - D/L files
-To reduce size of download files,you have to download kComp and necessary files separately.
-For install and make kComp work,you have to download 5 files.
1.)sis-file of kComp from http://inthai.virtualave.net/dl/kcomp_1_1.zip
2.)jdtcore.jar - JDT core Library of Eclipse version 1(only).
From http://archive.eclipse.org/eclipse/downloads/drops/R-1.0-200111070001/
D/L JDT Runtime Binary ,then Extract it.
You'll find jdtcore.jar in folder \eclipse\plugins\org.eclipse.jdt.core
3.)js.jar - JavaScript Library,Mozilla Rhino version 1.5(rhino1_5R5 or earlier).
From http://developer.mozilla.org/en/docs/Rhino_downloads_archive
4.)rt.jar and i18n.jar - Java Runtime Library.
From http://java.sun.com/products/archive/jdk/1.1.8_010/jre/index.html
Install it in PC,You'll find rt.jar and i18n.jar in folder \jdk1.1.8\JRE\lib
Install kComp and Library
Process of installation.
-You should uninstall previous version of kComp.
-Install .sis-file of lastest kComp (47k-size)
in Memory slot of your UIQ3 (Mem.card or D:/ folder of UIQ -only).
-After Installation,you'll find folder D:/classes with 7 files in it.
-Place jdtcore.jar , js.jar , rt.jar , i18n.jar in folder D:/classes.
-Now you're ready to launch kComp.
-Run it with your UIQ.
-Now you can try compile example file by select .java-file,then click "Compile" button.
-or you can try edit example file by select .java-file,then click "Edit" button.
kComp has 3 components.
-kComp<File> , kComp<Editor> and kComp<Output Console>.
-You can change between 3 components of kComp by clicking at main button:
"File","Editor" and "Console".
kComp<File>
-Activate this component by click "File" button of kComp.
-This component present list of files in folder D:/classes.
-Can filter files in list by file-type,just click button "*.java","*.class","*.js" or "all".
-After select name of file,then you can ...
>Run file (.class-file,.js-file) by click "Run" button.
>Compile file (.java-file,.js-file) by click "Compile" button.This process will compile ...
.java to .class (if you select .java-file name)
.js to .class (if you select .js-file name)
-After you compile .java into .class-file,then you can run it.
-JavaScript can run directly by kComp (via Mozilla Rhino library),no need to compile it
-But JavaScript will run faster,after you compile it and run with new .class-file.
kComp<Editor>
-Activate this component by ...
>Click "Editor" button of kComp.
>Select .java-file or .js-file in kComp<File>,then click "Edit" button.
-Features of kComp<Editor> ...
>Edit text file(.java ,.js,.txt).
>Can activate kComp<Editor> from kComp<File>.
>Can open text file from any folder(that has permission from UIQ3).
>Can save text file in folder D:/classes (only).
>Increase and decrease font size.
>You can copy Symbol from Main Menu to paste in editor.
>(No auto-save ,you should save file before compile).
kComp<Output Console>
-kComp<Console> will report result of compiler or running program.
-By this console,program that run (activate) by kComp can use method such as ...
println or printStackTrace.
-kComp<Console> can help you in debugging process.
Coding Java on UIQ3 with kComp
-Symbian UIQ3 can use J2ME Personal Profile ,that is very similar to Java1.1.
-You have to use Java1.1-syntax in your source code to compile in kComp.
-See Java tutorial at
http://java.sun.com/docs/books/tutorial/information/download.html .
-This version of kComp use Eclipse core compiler (JDT) version 1 as compiler on kComp.
-Java class file that compile on kComp can run on PC (with Java virtual machine).
-You can use Symbian UIQ3 SDK to package these java file into sis-file that can install on UIQ3.
Coding JavaScript on UIQ3 with kComp
-kComp use Mozilla Rhino version 1.5 to compile and run JavaScript file.
-JavaScript file that can compile and run on kComp is not exactly the same as JavaScript for web-browser.They have the same syntax.JavaScript for webpage call web-browser,but JavaScript for Mozilla Rhino use Java package.
-You can read detail about JavaScript for Mozilla Rhino at.
http://developer.mozilla.org/en/docs/Rhino



