hejianning / mmseg4j

Automatically exported from code.google.com/p/mmseg4j
0 stars 0 forks source link

Class Cast Error #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Move solr/example to standalone folder
2. ant build mmseg with solr's lib not with mmseg's lib.
3. Put mmseg.jar to example/lib
4. Update xml
5. Run java -jar start.jar

Class cast error

1.40 Solr version and latest mmseg version 1.8.2

Create the project with Eclipse, import MMseg.jar and all solr's jar.

TokenizFactory tt = new MMSegTokenizeFactory();

That's okay not compile time error.

Can not figure our what happened.

Check the blog comments, mentioned that put the mmseg.jar to solr/lib instead 
of solr/example/lib.

Can not understand why such way can solve this. I tried, but failed.

Besides, i only want to run the example project as standalone with MMSeg.

Please provide any additional information below.

Original issue reported on code.google.com by mafa...@gmail.com on 27 Aug 2010 at 5:18

GoogleCodeExporter commented 8 years ago
Solved. Put the jar to solr/lib.

Original comment by mafa...@gmail.com on 3 Sep 2010 at 2:16

GoogleCodeExporter commented 8 years ago

Original comment by chenlb2...@gmail.com on 10 Jan 2013 at 1:08