DictionaryForMids Forum

DictionaryForMIDs for Mobiles (Java ME; most devices from Nokia, Samsungs, RIM (Blackberry), LG, SonyEricsson, Motorola and plenty more) => Problems => Topic started by: vzhuniqi on 15. April 2008, 16:43:02

Poll
Question: Help me using DictionaryGeneration.jar
Option 1: DictionaryGeneration.jar votes: 0
Option 2: DictionaryGeneration.jar votes: 0
Title: Problem generating csv file
Post by: vzhuniqi on 15. April 2008, 16:43:02
Hi,

I have problem generating dictionary files. These is the message i got when i try to generate:C:\FjalorProject>java -jar DictionaryGeneration.jar PortugueseNoHeader.txt C:\
Exception in thread "main" java.lang.UnsupportedClassVersionError: de/kugihan/
(Unsupported major.minor version 49.0)
       at java.lang.ClassLoader.defineClass0(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
       at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)



Please help me,

Valon

Title: Re: Problem generating csv file
Post by: Gert on 16. April 2008, 04:08:04
That's a strange Exception !

Are you using an up-to-date version of Java ?

Gert
Title: Re: Problem generating csv file
Post by: vzhuniqi on 16. April 2008, 08:17:55
This is the Java version: j2sdk1.4.2_16. I think is up-to-date!
/Valon
Title: Re: Problem generating csv file
Post by: Gert on 16. April 2008, 19:55:05
Yes, this is up-to-date !

Is the JAR file (DictionaryGeneration.jar) ok ? Can you check that it was correctly extracted from the ZIP file ?

Gert
Title: Re: Problem generating csv file
Post by: vzhuniqi on 18. April 2008, 16:35:58
Yes I checked the exctraction and now the generator is working fine.
But I have another problem. Very often when I try to translate a word i get the message:
"Warning: buffer size to small for file..."
What can I do?

Thanks,
/Valon

Title: Re: Problem generating csv file
Post by: Gert on 18. April 2008, 20:30:57
Probably one of the parameters searchListFileMaxSize/indexFileMaxSize/dictionaryFileMaxSize is not correctly set. Could you check this ?

Gert
Title: Re: Problem generating csv file
Post by: vzhuniqi on 29. April 2008, 12:50:37
Sorry for the delay.
I checked the parameter and its value is: 10000
What u suggest?
Title: Re: Problem generating csv file
Post by: Gert on 29. April 2008, 23:24:07
Well, what is the correct value for the maximum file size ?

DictionaryGeneration normally automatically sets the correct value, unless a value for searchListFileMaxSize/indexFileMaxSize/dictionaryFileMaxSize is already specified in DictionaryForMIDs.properties. If this parameter is already specified, then DictionaryGeneration won't change it. But even then, DictionaryGeneration will print the correct size.

Gert
Title: Re: Problem generating csv file
Post by: vzhuniqi on 30. April 2008, 14:12:23
The value is:
dictionaryFileMaxSize=7420
Should I change it?

Valon
Title: Re: Problem generating csv file
Post by: Gert on 30. April 2008, 19:22:27
Please just read my postings above. Also the documentation of searchListFileMaxSize/indexFileMaxSize/dictionaryFileMaxSize on our web site contains an explanation.

I suggest simply delete any entry about searchListFileMaxSize/indexFileMaxSize/dictionaryFileMaxSize and let DictionaryGeneration automatically set the correct value.

Gert
Title: Re: Problem generating csv file
Post by: vzhuniqi on 05. May 2008, 08:09:56
Thanks Gert,
I did your suggestion and everyuthing now is working fine except the incremental search, you cant multipress a character that is not the first on the mobile keypad. The test is made in nokia N95.
Thanks again,
Valon
Title: Re: Problem generating csv file
Post by: Gert on 06. May 2008, 16:17:14
Ok fine that it works now !

About the 'multipress'-problem with the incremental search: I am able to reproduce this on the Nokia S60 emulator. I will see how I can address this for the next release. Maybe to wait with the incremental search until no key was pressed for, say, 1 second.

Gert
Title: Re: Problem generating csv file
Post by: vzhuniqi on 07. May 2008, 14:25:01
Thanks Gert,

Regards,
Valon