technologiclee / text2onto

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

Problem instaling text2Onto #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

What version of the product are you using? On what operating system?
Windows, Gate 4, WordNet2.1

when I try to run text2ontobut. I get following error:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: gate/util
/InvalidOffsetException
        at org.ontoware.text2onto.algorithm.AlgorithmController.<init>(Unknown S
ource)
        at org.ontoware.text2onto.algorithm.AlgorithmController.<init>(Unknown S
ource)
        at org.ontoware.text2onto.gui.Text2Onto.reset(Unknown Source)
        at org.ontoware.text2onto.gui.Text2Onto.<init>(Unknown Source)
        at org.ontoware.text2onto.gui.Text2Onto.createAndShowGUI(Unknown Source)

        at org.ontoware.text2onto.gui.Text2Onto.access$000(Unknown Source)
        at org.ontoware.text2onto.gui.Text2Onto$1.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: gate.util.InvalidOffsetException
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 15 more

I did copy the file at GATE-4.0/lib called "jasper-compiler-jdt.jar" and
pasted it at text2onto/3rdparty/gate.

text2Onto.properties:
language=english
gate_dir=c:/Katarina/text2onto/3rdparty/gate/
gate_app=application.gate 
jape_main=main.jape
stop_file=stopwords.txt
creole_dir=c:/Katarina/text2onto/3rdparty/gate/
jwnl_properties=c:/Katarina/text2onto/3rdparty/jwnl/file_properties.xml
temp_corpus=c:/temp/text2onto/ 
icons=c:/Katarina/text2onto/icons/
datastore=serial

text2Onto.bat:
@echo on

set T2O=g:\katarina\text2onto
set LIB=%T2O%\3rdparty
set GATE="C:\Program Files\GATE-4.0"

set 
t2o_classpath=%T2O%\build\bin\new;%LIB%\gate\gate.jar;%LIB%\gate\ontotext.jar;%L
IB%\gate\jasper-compiler-jdt.jar;%LIB%\gate\heptag.jar;%LIB%\gate\xstream-1.2.ja
r;%LIB%\gate\nekohtml-0.9.5.jar;%LIB%\gate\xercesImpl.jar;%LIB%\gate\xpp3-1.1.3.
3_min.jar;%LIB%\gnu-regexp-1.0.8.jar;%LIB%\jdom.jar;%LIB%\jgraph\jgraphaddons.ja
r;%LIB%\eclipse\workbench.jar;%LIB%\jwnl\jwnl.jar;%LIB%\commons-logging.jar;%LIB
%\kaon\kaonapi.jar;%LIB%\kaon\apionrdf.jar;%LIB%\kaon\rdfapi.jar;%LIB%\kaon\quer
y.jar;%LIB%\kaon\datalog.jar;%LIB%\kaon2\kaon2.jar;%LIB%\aclibico.jar;%LIB%\PDFB
ox-0.7.2.jar;%LIB%\log4j-1.2.11.jar;%LIB%\database\postgresql-8.0-312.jdbc3.jar;
%LIB%\database\orajdbc9i.zip;%LIB%\junit.jar;

rem d:
rem cd \postgresql8\skripte\gate
rem psql -d database -U postgres -f createDB.script

rem g:
rem cd %T2O%

"C:\Program Files\Java\jre6\bin\java" -ms512M -mx512M -Dgate.home=%GATE% 
-Dgate.config=%GATE%/gate.xml -Dgate.plugins.home=%GATE%/plugins 
-Dload.plugin.path=file:/%GATE%/plugins/ANNIE -cp %t2o_classpath% 
org.ontoware.text2onto.gui.Text2Onto

Thanks,
Katarina

Original issue reported on code.google.com by kgrolin...@gmail.com on 18 Aug 2010 at 8:53