This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.

Jeru Liu

Greenhorn
+ Follow
since Aug 14, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jeru Liu

Hi,
I want to solve the Chinese Character problem in J2ME,When i try to use
InputStreamReader isr = new InputStreamReader(is, "UTF-8");
Exception throw:Encoding UTF-8 not found
What happen,what's the valid encoding type i can use
in j2me
Pls help,thanks very much!
[ May 28, 2002: Message edited by: Jeru Liu ]
22 years ago
I am writing some test with Palm OS emulator,
When I run some project,the emulator will
pop out a waring dialog:
==============================================
JavaHQ(1.0) just wrote to memory location 0x000351B0,which is in
the width field of the bitmap starting at 0x000351B0
The data at this memory location is owned by the Palm OS.
Applications should not access the data directly. Instead,they should
make the appropriate Palm OS calls
===============================================
It's so strange,cause i test the same project
in JBuilder and J2METWK,sometimes the first IDE
is OK while the second one is failed,sometimes
the second one is OK and first one failed,
What will cause this kind of error,how to deal
with it?thanks
22 years ago
Do you know TicketDemo,you can find it at sun.
Use j2ee and j2me together
j2ee for server side and j2me for client side
22 years ago
Hi John,
It's seems a bug of converter,I found this post
from one forum,it gives me the answer:
==========================================
Brian Chu posted October 31, 2001 [01:02]
Reply


1060 means the JAR file manifest is missing. There is a known bug in the converter which makes it cannot read the manifest file if it is located at the end of the JAR file. Please re-jar the files (remember to update the MIDlet-Jar-Size). That should be it. Brian
brian.chu@sun.com
22 years ago
Hi Eric,
I mean those portable database version dosen't support Sun's specification,such as Oracle lite 9i,Sybase UltraLite
I don't think RMS is powerful enough for our
projects,Any ideas or suggestion?
22 years ago
Do you think the support for database in J2ME
is too weak, RMS is not enough,
But with c,you can use whatever Database you want,
it can support Oracel well,
Why Sun use RMS instead tradtional database on
PALM???who can explain it for me ?
22 years ago
Hi John
However,after I download J2MEWTK 1.0.3, I find that the MIDP4Palm is integrated into this tookit,
and I can create palm project withou CLDC package,
I think the J2MEWTK1.0.3+POSE is enough,right?
22 years ago
Great, support.
22 years ago
Hi John,
Sure, the size is 1kb,the size on disk is 812 byte
My os is W2k,right click that file to check properties,
then i see it's 812 byte,right?
22 years ago
Thanks for your reply,
I had checked it,the actual size is same with
specified in JAD files,
are there any other possible reasons ?
22 years ago
I am trying to create a project on POSE with
MIDP for Palm
I used the Converter tools to converte my
jad file(this jad file is created by JBuidler +
Nokia MobileSet)
But report errors that could not converte cause
==================================================
File:C:\codecamp\j2me\samples\HelloMIDP_06\HelloMIDP.jad Result:Failed: The .JAD and .JAR files cannot be converted because critical information between the two files does not match. Try downloading the file again or contact the application provider. ErrCode=1060
==================================================
Then I check my jad and jar file but can not see
there are any values are not match,here is two files:
=================================================
JAD File:
MIDlet-1: HelloMIDlet, , HelloMIDlet
MIDlet-Jar-Size: 812
MIDlet-Jar-URL: HelloMIDP.jar
MIDlet-Name: HelloMIDP
MIDlet-Vendor: Jeru
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-1.0
JAR Mainfest file:
Manifest-Version: 1.0
MIDlet-Name: HelloMIDP
MIDlet-Vendor: Jeru
MIDlet-Version: 1.0
MicroEdition-Profile: MIDP-1.0
MicroEdition-Configuration: CLDC-1.0
MIDlet-1: HelloMIDlet, , HelloMIDlet
Pls Help, thanks in advance!!!
[ January 11, 2002: Message edited by: Jeru Liu ]
22 years ago
Hi Gu,
I agree with your viewpoint,I just changed the emulator,
and it can works now.But I still don't know what cause the
error,another RMS programm can work well on Nokia's emulator,
while this one can only work on Sun's emulator.
Thanks for your reply!
BTW: Had u got my letter yesterday?
22 years ago
I catch the exception now:
The Exception is MIDletManager ERROR: Illegal attempt to construct RMSGameScores@ea0ef881
22 years ago
Hi Eric,
Thanks for your good answer,I find one tutorial you wrote named
"Client-Server Communication over HTTP using MIDP and Servlets"
I think it's the right thing i want,right? ^_^
22 years ago
How ever,these piece of code can pass,
but when i want to construct this class,error occor,
I will post two block here,the first one is code,
the second one is debug info:
/**
* startApp()
*/
public void startApp() throws MIDletStateChangeException
{
System.out.println(" StartApp go......");
RMSGameScores rmsgs = new RMSGameScores();
System.out.println(" StartApp fail......");
=============================================================
Counstructor starting now......
Counstructor starting end......
StartApp go......
Uncaught exception java/lang/SecurityException
destroyApp( )

You will notice that the programm stop after execute
RMSGameScores rmsgs = new RMSGameScores();
RMSGameScores is the name of this class
22 years ago