运行weka3.7.4包管理器时出错

时间:2014-10-25 12:17:06

标签: java jdbc package weka

当我在工具中运行weka.jar 3.7.4(gui on windows7)>包管理器时它显示错误..."建立包元数据缓存时出现问题。我们试试直接使用存储库。"

weka.core.WekaPackageRepositoryURL = http://www.cs.waikato.ac.nz/ml/weka/package

元数据 尝试添加数据库驱动程序(JDBC):RmiJdbc.RJDriver - 警告,而不是在CLASSPA中 TH? 尝试添加数据库驱动程序(JDBC):jdbc.idbDriver - 警告,而不是CLASSPATH ? 尝试添加数据库驱动程序(JDBC):org.gjt.mm.mysql.Driver - 警告,不在 CLASSPATH? 尝试添加数据库驱动程序(JDBC):com.mckoi.JDBCDriver - 警告,而不是在CLA中 SSPATH? 尝试添加数据库驱动程序(JDBC):org.hsqldb.jdbcDriver - 警告,而不是在CL中 ASSPATH?
[KnowledgeFlow]加载属性和插件...... [KnowledgeFlow]初始化KF ......

错误是

ava.net.UnknownHostException: weka.sourceforge.net
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.pentaho.packageManagement.DefaultPackageManager.getRepositoryPackageMetaDataOnlyAsZip(Unknown Source)
at weka.core.WekaPackageManager.refreshCache(WekaPackageManager.java:796)
at weka.core.WekaPackageManager.establishCacheIfNeeded(WekaPackageManager.java:737)
at weka.gui.PackageManager$EstablishCache.doInBackground(PackageManager.java:285)
at weka.gui.PackageManager$EstablishCache.doInBackground(PackageManager.java:256)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)    
弹出时出现的

错误

java.net.UnknownHostException: www.cs.waikato.ac.nz
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.pentaho.packageManagement.DefaultPackageManager.getRepositoryPackageMetaDataOnlyAsZip(Unknown Source)
at weka.core.WekaPackageManager.refreshCache(WekaPackageManager.java:796)
at weka.core.WekaPackageManager.establishCacheIfNeeded(WekaPackageManager.java:737)
at weka.gui.PackageManager$EstablishCache.doInBackground(PackageManager.java:285)
at weka.gui.PackageManager$EstablishCache.doInBackground(PackageManager.java:256)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)    

1 个答案:

答案 0 :(得分:1)

看看this

  1. 创建文件\WEKA_HOME\props\PackageRepository.props
  2. 插入第weka.core.wekaPackageRepositoryURL=http://www.cs.waikato.ac.nz/ml/weka/packageMetaData行。
  3. 在Windows WEKA_HOME=C:\Users\YOUR_USER\wekafiles\