發表文章

目前顯示的是 2月, 2013的文章

How to compile code that related other java code in different foder?

For example. We try to compile "tools/java/isis/nest/localization/" folder. But codes related to "tools/java/isis/nest/math/". We can change working folder to "tools/java/" folder and type "javac isis/nest/localization/*.java". Then it work.

工作記錄的重要

搞了好久一直無法解決java compile error的問題,現在終於找到問題了,原來之前認真工作時候就已經解決了(javax.comm沒有安裝的問題),由於外務的關係中段研究兩週,反而造成記憶錯誤,搞錯方向,幸好之前有wiki記錄工作流程,終於Recovery回來了。 檢討: 1. 工作記錄再詳細一點,頻率再高一點。 2. 這陣子專心再論文上,不要再出外務了。

[2/26] tinyos 1.x for windows try

Another try to install TinyOS 1.x under WindowsXP. I follow step:  http://www.tinyos.net/tinyos-1.x/doc/install.html And success to install JDK 1.4 + TinyOS 1.x + javax.comm. But this package does not contained contribute source codes. It means without RIPS functions. So I download TinyOS 1.x CVS tarball via sourceforge and try to make java tools again. FAIL.... Next. I may try to contact author that make XubunTOS virtual machine...

[download issue] waiting for anoncvs_tinyos's lock

I got same problem as following issue. Trying to find solution. http://sourceforge.net/p/forge/site-support/2770/ No I download source code via Download GNU tarball link http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-1.x/ Hope it will work.

javax.comm "no serial ports found" issue when run BlackBox

I got "no serial ports found" problem when run javax.comm library sample. My environment: [OS] WinXP SP3 32bit [JDK] jdk1.5.0_11 [javax.comm verison] Javacomm20-win32 Description: I placed my javax.comm files into following directories: ( reference page ) Copy win32comm.dll to C:\Program Files\Java\  jdk1.5.0_11 \jre\bin Copy comm.jar to C:\Program Files\Java\  jdk1.5.0_11 \jre\lib\ext Copy javax.comm.properties to C:\Program Files\Java\  jdk1.5.0_11 \jre\lib I set CLASSPATH as below: c:\commapi\samples\Blackbox\BlackBox.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\comm.jar;C:\commapi\samples\Simple Then I got  "no serial ports found" error when run java BlackBox Solution: I try to do following change copy win32com.dll to C:\Program Files\Java\jre1.5.0_11\bin Copy javax.comm.properties to  C:\Program Files\Java\jre1.5.0_11\lib Then PORT_OWNED correctly. Additional test: I try to compile SerialDemo and run it. It's works. 

try to solve TinyOS 1.x java compile problem

It appears "package javax.comm does not exist" error when I try to javac "/opt/tinyos-1.x/tools/java/net/tinyos/mcenter" folder. I need to find solution! 1. check if javax.comm setup correctly!? I try to setup javax.comm under WinXP again(with JDK 1.1.6). According to following installation guide "Javacomm20-win32/commapi/PlatformSpecific.html" I installed. And BlackBox can run. the sample code "SimpleRead" and "SimpleWrite" also can work. PS. When you want to run .java file. You need set folder that have .java files into "CLASSPATH". Next try. setup javax.comm under WinXP (with JDK 1.5) It shows following error ""No serial ports found!" when run BlackBox. (Solved) TODO List: 直接找RIPS作者看看有沒有Virtual Machine Image. C compile error的部份,問問看forum是否有人有解答