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:

https://weka.wikispaces.com/How+do+I+use+the+package+manager%3F#GUI package manager - using HTTP proxy

java -Dhttp.proxyHost=some.proxy.somewhere.net -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.

+3


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.proxyHost=some.proxy.somewhere.net -Dhttp.proxyPort=port weka.gui.GUIChooser

      

+5


source


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.proxyHost=some.proxy.somewhere.net -Dhttp.proxyPort=port weka.gui.GUIChooser

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

0


source







All Articles