How to use weka package manager with proxy on windows?

I am trying to set proxy for weka 3.7 package manager like this tutorial: package manager - using HTTP proxy

java -Dhttp.proxyPort=port weka.gui.GUIChooser


but it gives me this error:

Error: Could not find or load main class weka.gui.GUIChooser


I've already checked the classpath and path and weka starts from runweka.bat without any problem.


source to share

2 answers

I found the solution after playing with paths;

Knb's answer is correct, but you need to include the weka.jar command in the command.

java -cp weka.jar -Dhttp.proxyPort=port weka.gui.GUIChooser




The weka.jar file must be in your classpath. You can set this on the command line with the option -cp


Start java with

java -cp <FULL PATH TO weka.jar> -Dhttp.proxyPort=port weka.gui.GUIChooser

You may receive some warning messages about "missing jdbc drivers". You can ignore these error messages.



All Articles