Git Product home page Git Product logo

Comments (4)

fracpete avatar fracpete commented on July 18, 2024

Remove the "bin" from your JAVA_HOME environment variable. Only use the path to the JDK.

from python-weka-wrapper-examples.

Atiyeh-mohammadkhani avatar Atiyeh-mohammadkhani commented on July 18, 2024

I removed "bin" from my JAVA_HOME and only used the path to the JDK, but the problem doesn`t solved.

from python-weka-wrapper-examples.

fracpete avatar fracpete commented on July 18, 2024

I'm not a Windows user and setting up Python always seems to be riddled with issues... But I finally had some time setting up a Windows 10 instance... Here is what I did:

  • no JAVA_HOME variable defined
  • Location of java executable:
where java
C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe
C:\ProgramData\Oracle\Java\javapath\java.exe
  • Java version installed:
java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Anaconda2;C:\Anaconda2\Scripts;C:\Anaconda2\Library\bin;C:\Users\fracpete\AppData\Local\Microsoft\WindowsApps;
  • create anaconda environment for pww (numpy needs to be installed through anaconda):
conda create -n py27-pww numpy
  • activate environment:
activate py27-pww
  • installing pww:
pip install python-weka-wrapper
  • testing pww:
python
import weka.core.jvm as jvm
jvm.start()
from weka.classifiers import Classifeir
cls = Classifier(classname="weka.classifiers.trees.J48")
print(cls)
jvm.stop()

from python-weka-wrapper-examples.

fracpete avatar fracpete commented on July 18, 2024

Solved according to this stackoverflow post.

from python-weka-wrapper-examples.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.