DrDub / text2onto

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

Problem instaling text2Onto #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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:52

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I am using Gate 4.0 and Wordnet 2.1. on Windows Vista
2. I have note some of the issues raised previously with prescribed solutions 
but yet I not able to install text2onto from the bat file.
3. I have replaced the jasper....jar file  in Gate4.0 with the one in text2onto.
I need guidance on how to resolve this problem. My problem is a very common one 
but can't see where a categorical solution has been proffered from the issues 
threads I have read so far. 

What is the expected output? What do you see instead?
My text2onto.properties is as follows:

language=english
gate_dir=c:\Text2Onto\3rdparty\gate\
gate_app=application.gate 
jape_main=main.jape
stop_file=stopwords.txt
creole_dir=c:\Text2onto\3rdparty\gate\
jwnl_properties=c:\Text2Onto\3rdparty\jwnl\file_properties.xml
temp_corpus=c:\temp\Text2Onto\ 
icons=c:\Text2Onto\icons\
datastore=serial
tagger_dir=c:\treetagger\bin\
spanish_wn_dir=c:\Program Files\wordnet\2.1\

My text2onto.bat file is as follows:

@echo on

set T2O=c:\Text2Onto
set LIB=%T20%\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%

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

The error message is attached.

What version of the product are you using? On what operating system?

Please provide any additional information below.

'Wanddy

Original comment by DWa...@gmail.com on 21 Oct 2010 at 6:36

Attachments:

GoogleCodeExporter commented 9 years ago
Dear Wande Daramola,

in your case the exception seems to be caused by a space character on your GATE 
path. Installing GATE into a different directory (e.g. "C:\GATE") might solve 
the problem.

Best wishes,
Johanna

Original comment by johanna.voelker@gmail.com on 26 Oct 2010 at 7:41

GoogleCodeExporter commented 9 years ago
From DWande 
(I hope my experience could benefit someone)- Read this narrative:

Finally I got it figured out and the interface has showed up. I think
there are a few things to pay attention to based on my experience.
1. Don't install the Gate and Wordnet software in a folder that has
empty space in the folder name  like "c:\program files\Gate". Make sure
there is no space in the folder path. Same for the Wordnet.
2. Don't alter the slashes (/ \) in the properties file and text2onto
bat file (I changed them severally in the course of trying to figure out
was wrong but it only complicated issues. Both the properties file and
the bat are okay. Read through the read-me file and follow the
instructions there carefully. Set your <text2onto-dir> and <gate-dir>
appropriately.
3. Modify the
"jwnl_properties=<T2O-DIR>/3rdparty/jwnl/file_properties.xml"  by
editing the xml file to set the folder path for the Wordnet dictionary.
4. Don't bother about the tagger_dir, and spanish_wn_dir properties;
just live them as they are.
5. You will need to replace the file named "jasper-compiler-jdt.jar" in
the c:\text2onto\3party\gate\ folder with the one in c:\gate\lib\
folder. That is overwrite the one in the text2onto with the one that is
in gate folder.
With these steps, when you run the bat file, the interface should come
up. 
Best wishes.

Original comment by DWa...@gmail.com on 29 Oct 2010 at 12:30

GoogleCodeExporter commented 9 years ago
I now can run it but I cannot export to OWL

Original comment by kgrolin...@gmail.com on 29 Oct 2010 at 3:33

GoogleCodeExporter commented 9 years ago
I have the same problem with him ^

Original comment by anistyas...@gmail.com on 31 Oct 2010 at 4:10

GoogleCodeExporter commented 9 years ago
I have the same problem with her^ --"

Original comment by snowf...@gmail.com on 3 Dec 2010 at 2:27

GoogleCodeExporter commented 9 years ago
I have the same problem with her^ --"

Original comment by snowf...@gmail.com on 3 Dec 2010 at 2:28

GoogleCodeExporter commented 9 years ago
I also have the same problem with export to OWL. Has anyone found a solution to 
it?

Original comment by wmeik...@gmail.com on 6 Jan 2011 at 4:30