1 2 3 4 5 6 7 8 > 下一頁 | 最後一頁 1/8
檢視方式: 列表 摘要
Building native libraries in Linux >>.so
miniMouse 在天空部落發表於16:41:47 | 電子計算機
Compliing the C source code in different operating system needs different ways to build a shared library.

In the Windows,
You should give the library name as the name which you called in your java code.

In the Linux,
The name of the shared library ought to add "lib" before the name.

For example,
If you called a library "interface" in java code like below:
System.loadLibrary("interface");
You should make a library "interface.dll" in windows, and "libinterface.so" in Linux.
This article will show you how to make a shared library in Linux.




觀看全文...
java在linux中環境變數設置
miniMouse 在天空部落發表於17:20:07 | 電子計算機
最近開始要把程式移轉置linux介面執行,
準備開始和老闆n年前寫的文字切割程式進行銜接,
原本在windows編製的動態連結檔.dll,
它看起來似乎是跟linux水土不服,
因此,
在linux的動態連結檔改成以.so處理,
雖然可以順利產生.so,
但是在進行動態連結時似乎不是那麼順利。
總是會出現
java.lang.UnsatisfiedLinkError
看起來像是程式沒有辦法順利連結到.so檔。



觀看全文...
URL encode in Java
miniMouse 在天空部落發表於15:43:39 | 電子計算機
Today,
I want to use the code like the url code after javascript or vb.net encoded in my java program.
The result after encoded should be like %EE%aa%ee.
So,
I'm trying to understand the encode method like ASCII, UTF-8, Unicode, and so on.
Unfortunately,
I couldn't tranform the chinese string into the code which I want.

keywords: java, url, html, encode, utf 8, percent encode

觀看全文...
java.lang.ClassNotFoundException:javax.mail.MessagingException
miniMouse 在天空部落發表於12:04:28 | 電子計算機 氣象
In order to catch data from the YouTube,
I write java code to catch video datas from the YouTube site.
Even I can do some jobs by myself,
I still need the helpness by the YouTube API.
The API is very new to me and makes me spending a lots time to learn how to use it.
Importing the lib which the YouTube API provides,
Reading the spec. about the API,
and so on.

After I started trying the code supplied by YouTube.
The compiler gave me some message at the running time:

Exception in thread "main" java.lang.NoClassDefFoundError: MessagingException
Caused by: java.lang.ClassNotFoundException:
javax.mail.MessagingException




觀看全文...
動態連結檔(.DLL)製作
miniMouse 在天空部落發表於20:58:07 | 電子計算機 氣象
這幾天致力於java和c語言之間溝通的interface,
包含參數的溝通、function的呼叫及記憶體上的配置,
確保c和java之間可以順利的互相呼叫、使用,
然而,
這之間需要一個很重要的溝通橋樑-動態連結檔--DLL
相信有用過作業系統的人應該都不陌生,
透過dll搭成c和java溝通的路徑,
讓原本兩個沒有相關的程式語言可以互相呼叫對方。
而最大的功用在於,
legacy program不需棄之不用,
反倒是讓兩種程式語言可以互相合作,
彼此使用自己語言善長的特性,
對於面臨的困難做不同的處理。




觀看全文...
Extracting all elements from hashtable by enumeration
miniMouse 在天空部落發表於15:21:08 | 未分類
When you code program in java, you may want to record some datas.
In some situations, you don't know how many datas you have.
At this time,
you need some techniches like hashtable to help you.
The class of hashtable is very helpful.
It can give data a key and its vlaue.
By this method, you can easily extract the value which coreespond to one key.


觀看全文...
.net oracle 轉換大小寫 (How to capitalize at .net and oracle)
miniMouse 在天空部落發表於10:29:25 | 未分類
轉換大小寫在不同的程式有不同的寫法,
但偏偏不知道的時候,
就是不會寫




觀看全文...
1 2 3 4 5 6 7 8 > 下一頁 | 最後一頁 1/8
系統公告
記錄足跡
當日人次:
累積人次:
相片轉啊轉
自我特質
個人圖檔
ID:miniMouse
暱稱:米老鼠
生日:1984/10/30
地區:臺北市

知識部落
好時光貼曆
誰來我家
誰推薦我
RSS 訂閱
贊助商
其它資訊
本部落所刊登之內容,皆由作者個人所提供,不代表 yam 天空 本身立場。
POWERED BY
POWERED BY 天空部落
會員登入免費註冊