推薦這個部落格: 158
檢視方式: 列表 摘要
March 19, 2009
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.
觀看全文...
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.
觀看全文...
March 18, 2009
最近開始要把程式移轉置linux介面執行,
準備開始和老闆n年前寫的文字切割程式進行銜接,
原本在windows編製的動態連結檔.dll,
它看起來似乎是跟linux水土不服,
因此,
在linux的動態連結檔改成以.so處理,
雖然可以順利產生.so,
但是在進行動態連結時似乎不是那麼順利。
總是會出現
java.lang.UnsatisfiedLinkError
看起來像是程式沒有辦法順利連結到.so檔。
觀看全文...
準備開始和老闆n年前寫的文字切割程式進行銜接,
原本在windows編製的動態連結檔.dll,
它看起來似乎是跟linux水土不服,
因此,
在linux的動態連結檔改成以.so處理,
雖然可以順利產生.so,
但是在進行動態連結時似乎不是那麼順利。
總是會出現
java.lang.UnsatisfiedLinkError
看起來像是程式沒有辦法順利連結到.so檔。
觀看全文...
March 5, 2009
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
觀看全文...
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
觀看全文...
March 4, 2009
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
觀看全文...
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
觀看全文...
檢視行動版網頁 | 檢視正常版網頁






