BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-23-2009, 04:39 AM   #1 (permalink)
New Member
 
Join Date: Feb 2009
Model: 8800
PIN: N/A
Carrier: JDE
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to using perst-rms

Please Login to Remove!

My Project have 2 method, 2 global variable:

Storage store;
Index root;
public void init()
{
store= StorageFactory.getInstance().createFactory();
store.open("test.dbs",Storage.INFINITE_PAGE_POOL);
}
public void addImageToStore(String name. byte[] data)
{
root = (Index) store.getRoot();
if( root == null)
{
root = store.createIndex(String.class , true);
store.setRoot(root);
}
try{
Blob blob = store.createBlob();
OutputStream bout = blob.getOutputStream();
bout.write(data,0,data.length);
store.put(name, blob);
bout.close();
store.commit();
}catch(IOException e){}
}

I use perst-rms in Perst for Java 4.01 version import my project

When I'm using JDE 4.2.1 to build project and error occurs at :

"Cannot find Symbol method createIndex(java.lang.Class, boolean)"

but I replace " int tmp = 0;root = store.createIndex(tmp , true);" --> build complete

May you explain my problem?
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

1pcs New Omron Proximity Switch E2E-X4MD1-M3G-Z
$62.0
1pcs New Omron Proximity Switch E2E-X4MD1-M3G-Z  picture1pcs NEW Omron optoelectronic switch E3HC-1E2
$95.0
1pcs NEW Omron optoelectronic switch E3HC-1E2 pictureSM 17/35-T/A SM17/35-T/A 055129-112 DC 520V 17A BOSCH Servo Drive
$1000.0
SM 17/35-T/A SM17/35-T/A 055129-112 DC 520V 17A BOSCH Servo Drive picture100Pcs Operational Amplifier 8Pin Dip Lm358p Lm358n Lm358 Ic New V
$3.68
100Pcs Operational Amplifier 8Pin Dip Lm358p Lm358n Lm358 Ic New V picture20Pcs Dip-8 Operational Amplifier Ua741 Lm741 St Ua741cn New Ic G
$2.74
20Pcs Dip-8 Operational Amplifier Ua741 Lm741 St Ua741cn New Ic G picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.