Problem generating csv file

Started by vzhuniqi, 15. April 2008, 16:43:02

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Help me using DictionaryGeneration.jar

DictionaryGeneration.jar
0 (0%)
DictionaryGeneration.jar
0 (0%)

Total Members Voted: 0

vzhuniqi

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


Gert

That's a strange Exception !

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

Gert

vzhuniqi

This is the Java version: j2sdk1.4.2_16. I think is up-to-date!
/Valon

Gert

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

vzhuniqi

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


Gert

Probably one of the parameters searchListFileMaxSize/indexFileMaxSize/dictionaryFileMaxSize is not correctly set. Could you check this ?

Gert

vzhuniqi

Sorry for the delay.
I checked the parameter and its value is: 10000
What u suggest?

Gert

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

vzhuniqi

The value is:
dictionaryFileMaxSize=7420
Should I change it?

Valon

Gert

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

vzhuniqi

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

Gert

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

vzhuniqi