Cygwin上的tdbloader:java.lang.NoClassDefFoundError


0

我正在尝试在Cygwin上使用tbdloader(Windows 7使用最新的Java安装)。 这是tbdloader文档: http://jenawiki.hpl.hp.com/wiki/TDB/Commands

这是我用来在我的机器上调用tdbloader的包装脚本:

#!/bin/bash
# Cygwin script to import large NT files in TDB.

CD /cygdrive/c/mypath/TDB-0.8.10
echo "TDB found. Setting path"
export TDBROOT=/cygdrive/c/mypath/TDB-0.8.10
export PATH=$PATH:$TDBROOT/bin

CD /cygdrive/c/mypath/ontodata/
echo "Running import..."
tdbloader --loc ./tdb ./datasets/large_file.nt

这是我得到的错误:

java.lang.NoClassDefFoundError: tdb/tdbloader
Caused by: java.lang.ClassNotFoundException: tdb.tdbloader
        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)
Could not find the main class: tdb.tdbloader.  Program will exit.
Exception in thread "main"

有任何想法吗?

Answers:


0

Java不了解Cygwin路径( /cygdrive 等)你可能需要修改 tdbloader2 脚本(我假设它是一个脚本!),使它使用正常的Windows风格的文件名 CLASSPATH。应该很容易。如果您需要帮助,请告诉我。


谢谢!我在帖子中添加了一些信息。实际上这个包应该适用于cygwin。
Mulone
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.