Weka Tutorial: How to Download & Install Weka Tool (2026)

By Sruthy

By Sruthy

Sruthy, with her 10+ years of experience, is a dynamic professional who seamlessly blends her creative soul with technical prowess. With a Technical Degree in Graphics Design and Communications and a Bachelor’s Degree in Electronics and Communication, she brings a unique combination of artistic flair…

Learn about our editorial policies.
Updated July 7, 2026

This WEKA tutorial covers the definition of the WEKA machine learning tool and the installation of the same in Windows operating system along with its basic usage.

In the Previous Tutorial, we learned about Support Vector machines in ML and associated concepts like Hyperplane, Support Vectors & Applications of SVM.

Installation of WEKA is one of the first steps in machine learning and data mining, yet many people struggle to download and installation including its basic requirements like Java configuration and the choice of right installer etc.

This guide walks you through downloading process and the complete WEKA installation process for Windows, explains the system requirements, helps you verify that everything is working correctly, and provides solutions to common installation errors, so you can start building your first machine learning model with confidence.

How to Download WEKA on Windows?

Steps to Download & Install WEKA in Windows:

  • Download the WEKA from its official website. Visit its official site.
  • Run the .exe file downloaded and follow the instructions of the Installation wizard.
  • Read and accept the license agreement and provide the installation location.
  • Finish the installation
  • Run WEKA from Start menu or desktop icon and use the Explorer panel of WEKA to load datasets like iris.arff and perform WEKA operations.

=> Read Through The Complete Machine Learning Training Series

Weka Tutorial How To Download, Install And Use Weka Tool

What Is WEKA

WEKA Bird Logo

WEKAGUIChooser

Weka is an open-source tool designed and developed by scientists/researchers at the University of Waikato, New Zealand. WEKA stands for Waikato Environment for Knowledge Analysis. It is developed by the international scientific community and distributed under the free GNU GPL license.

WEKA is fully developed in Java. It provides integration with the SQL database using Java Database connectivity. It provides many machine learning algorithms to implement data mining tasks. These algorithms can either be used directly using the WEKA tool or can be used with other applications using the Java programming language.

It provides a lot of tools for data preprocessing, classification, clustering, regression analysis, association rule creation, feature extraction, and data visualization. It is a powerful tool that supports the development of new algorithms in machine learning.

How to Install WEKA Safely on Windows (Step-by-Step)

Download the WEKA from the official website to have the latest version and free from any kind of malware or modified files.

System Requirements

WEKA requires low amounts of hardware and runs smoothly on most modern computers.

The following are the minimum hardware and software requirements to run WEKA hassle free

  • Processor: 1 GHz or more
  • Memory: 2 GB or higher is preferred for faster operation
  • Hard drive Space: Around 500 MB free space
  • Java: The latest version is preferred if not included in your installation package

Check the configuration of the computer system and download the stable version of WEKA (currently 3.8) from this page.

Download the stable version of WEKA

#2) After successful download, open the file location and double-click on the downloaded file. The Step Up wizard will appear. Click on Next.

Step Up wizard

#3) The License Agreement terms will open. Read it thoroughly and click on “I Agree”.

The License Agreement Terms

#4) According to your requirements, select the components to be installed. Full component installation is recommended. Click on Next.

select the components to be installed

#5) Select the destination folder and Click on Next.

destination folder

#6) Then, Installation will start.

Installation Window

#7) If Java is not installed in the system, it will install Java first.

Java installation window

#8) After the installation is complete, the following window will appear. Click on Next.

Installation Complete Window

#9) Select the Start Weka checkbox. Click on Finish.

Select the Start Weka checkbox

#10) WEKA Tool and Explorer window opens.

WEKA Tool and Explorer

#11) The WEKA manual can be downloaded from here.

How to Open WEKA Explorer After Installation

The GUI of WEKA gives five options: Explorer, Experimenter, Knowledge flow, Workbench, and Simple CLI. Let us understand each of these individually.

#1) Simple CLI

Simple CLI

Simple CLI is Weka Shell with command line and output. With “help”, the overview of all the commands can be seen. Simple CLI offers access to all classes such as classifiers, clusters, filters, etc.

Some of the simple CLI commands are:

  • Break: To stop the current thread
  • Exit: Exit the CLI
  • Help[<command>] : Outputs the help for the specified command
  • -java weka.classifiers.trees.J48 -t c:/temp/iris.arff : To invoke a WEKA class, prefix it with Java. This command will direct WEKA to load the class and execute it with the given parameters. In this command, J48 classifier is invoked on the IRIS dataset.
simple CLI commands

#2) Explorer

explorer

The WEKA Explorer windows show different tabs starting with preprocessing. Initially, the preprocess tab is active, as first the data set is preprocessed before applying algorithms to it and exploring the dataset.

The tabs are as follows:

  1. Preprocess: Choose and modify the loaded data.
  2. Classify: Apply training and testing algorithms to the data that will classify and regress the data.
  3. Cluster: Form clusters from the data.
  4. Associate: Mine out the association rule for the data.
  5. Select attributes: Attribute selection measures are applied.
  6. Visualize: 2D representation of data is seen.
  7. Status Bar: The bottommost section of the window shows the status bar. This section shows what is happening currently in the form of a message, such as a file being loaded. Right-click on this, Memory information can be seen, and also Run garbage collector to free up space can be run.
  8. Log Button: It stores a log of all actions in Weka with the timestamp. Logs are shown in a separate window when the Log button is clicked.
  9. WEKA Bird Icon: Present on the bottom right corner shows the WEKA bird with represents the number of processes running concurrently (by x.). When the process is running the bird will move around.

#3) Experimenter

Experimenter

The WEKA experimenter button allows the users to create, run, and modify different schemes in one experiment on a dataset. The experimenter has 2 types of configuration: Simple and Advanced. Both configurations allow users to run experiments locally and on remote computers.

  1. The “Open” and “New” buttons will open a new experiment window that users can do.
  2. Results: Set the result destination file from ARFF, JDFC, and CSV files.
  3. Experiment Type: The user can choose between cross-validation and train/test percentage split. The user can choose between Classification and Regression-based upon the dataset and classifier used.
  4. Datasets: The user can browse and select datasets from here. The relative path checkbox is clicked if working on different machines. The format of datasets supported is ARFF, C4.5, CSV, libsvm, bsi, and XRFF.
  5. Iteration: The default iteration number is set to 10. Datasets first and algorithms first help in switching between dataset and algorithms so that algorithms can be run on all datasets.
  6. Algorithms: New algorithms are added by “New Button”. The user can choose a classifier.
  7. Save the experiment using the Save button.
  8. Run the experiment using the Run button.
Weka choose algorithm

#4) Knowledge Flow

WEKA KnowledgeFlow

Knowledge flow shows a graphical representation of WEKA algorithms. The user can select the components and create a workflow to analyze the datasets. The data can be handled batch-wise or incrementally. Parallel workflows can be designed and each will run in a separate thread.

The different components available are Datasources, Datasavers, Filters, Classifiers, Clusters, Evaluation, and Visualization.

#5) Workbench

WEKA has a workbench module which contains all the GUI in a single window.

WEKA Workbench

Why use WEKA Machine Learning Tool

With WEKA, machine learning algorithms are readily available to users. ML specialists can use these methods to extract useful information from high volumes of data. Here, the specialists can create an environment to develop new machine learning methods and implement them on real data.

WEKA is used by machine learning and applied sciences researchers for learning purposes. It is an efficient tool for carrying out many data mining tasks.

Features Of WEKA Explorer

#1) Dataset

A dataset is made of items. It represents an object for example: in the marketing database, it will represent customers and products. The datasets are described by attributes. The dataset contains data tuples in a database. A dataset has attributes that can be nominal, numeric, or string. In Weka, the dataset is represented by weka.core.Instances class.

Representation of dataset with 5 examples:

@data
sunny, FALSE,85,85,no
sunny, TRUE,80,90,no
overcast, FALSE,83,86,yes
rainy, FALSE,70,96,yes
rainy, FALSE,68,80,yes

What is an Attribute?

An attribute is a data field representing the characteristic of a data object. For example, in a customer database, the attributes will be customer_id, customer_email, customer_address, etc. Attributes have different types.

These possible types are:

A) Nominal Attributes: Attribute which relate to a name and has predefined values such as color, and weather. These attributes are called categorical attributes. These attributes do not have any order and their values are also called enumerations.

@attribute outlook {sunny, overcast, rainy}: declaration of the nominal attribute.

B) Binary Attributes: These attributes represent only values 0 and 1. These are the type of nominal attributes with only 2 categories. These attributes are also called Boolean.

C) Ordinal Attributes: The attributes which preserve some order or ranking amongst them are ordinal attributes. Successive values cannot be predicted but only order is maintained. Example: size, grade, etc.

D) Numeric Attributes: Attributes representing measurable quantities are numeric attributes. These are represented by real numbers or integers. Example: temperature, humidity.

@attribute humidity real: declaration of a numeric attribute

E) String Attributes: These attributes represent a list of characters represented in double quotes.

#2) ARFF Data format

WEKA works on the ARFF file for data analysis. ARFF stands for Attribute Relation File Format. It has 3 sections: relation, attributes, and data. Every section starts with “@”.

ARFF files take Nominal, Numeric, String, Date, and Relational data attributes. Some of the well-known machine learning datasets are present in WEKA as ARFF.

Format for ARFF is:

@relation <relation name>
@attribute <attribute name and data type>
@data

An example of an ARFF file is:

@relation weather
@attribute outlook {sunny, overcast, rainy}:
@attribute temperature real
@attribute humidity real
@attribute windy {TRUE, FALSE}
@attribute play {yes, no}        //class attribute: The class attribute represents the output.

@data
sunny, FALSE,85,85,no
sunny, TRUE,80,90,no
overcast, FALSE,83,86,yes
rainy, FALSE,70,96,yes
rainy, FALSE,68,80,yes

#3) XRFF Data Format

XRFF stands for the XML attribute Relation File Format. It represents data that can store comments, attributes, and instance weights. It has .xrff extension and .xrff.gz (compressed format) file extension. The XRFF files represented data in XML format.

#4) Database Connectivity

With WEKA, it is easy to connect to a database using a JDBC driver. JDBC driver is necessary to connect to the database, For example:

MS SQL Server (com.microsoft.jdbc.sqlserver.SQLServerDriver)

Oracle (oracle.jdbc.driver.OracleDriver)

#5) Classifiers

To predict the output data, WEKA contains classifiers. The classification algorithms available for learning are decision trees, support vector machines, instance-based classifiers, logistic regression, and Bayesian networks. Depending upon the requirement using trial and test, the user can find out a suitable algorithm for the analysis of data. Classifiers are used to classify the data sets based on the characteristics of the attributes.

#6) Clustering:

WEKA uses the Cluster tab to predict the similarities in the dataset. Based on clustering, the user can find out the attributes useful for analysis and ignore other attributes. The available algorithms for clustering in WEKA are k-means, EM, Cobweb, X-means, and FarhtestFirst.

#7) Association

The only algorithm available in WEKA for finding out association rules is Apriori.

#8) Attribute Section Measures

WEKA uses 2 approaches for best attribute selection for calculation purposes:

  • Using Search method algorithm: Best-first, forward selection, random, exhaustive, genetic algorithm, and ranking algorithm.
  • Using Evaluation method algorithms: Correlation-based, wrapper, information gain, chi-squared.

#9) Visualization

WEKA supports the 2D representation of data, 3D visualizations with rotation, and 1D representation of a single attribute. It has the “Jitter” option for nominal attributes and “hidden” data points.

Other main features of WEKA are:

  • It is an open-source tool with a Graphical User Interface in the form of “Explorer”, “Experimenter” and “Knowledge Flow”.
  • It is platform-independent.
  • It contains 49 data preprocessing tools.
  • 76 classification and regressions algorithms, 8 clustering algorithms are present in WEKA
  • It has 15 attribute selection algorithms and 10 feature selection algorithms.
  • It has 3 algorithms for finding association rules.
  • Using WEKA, users can develop custom code for machine learning.

Common WEKA Installation Errors and Fixes

While installing the WEKA is fairly simple, sometimes you can experience WEKA installation errors and problems, Below are solutions to some of the most frequent problems you may face.

Java Not Found Error: An error that says that Java is not found on your computer.

Solution:

  • Download and install the latest version of JRE or JDK.
  • Make sure that Java is installed correctly using java -version in Command Prompt/ Terminal.
  • Restart your computer after installation and open WEKA once again.
  • It may be useful to upgrade to the most recent version of WEKA, since it may come with the bundled Java Runtime Environment.

Installer Doesn’t Start or Closes Immediately: The installer either doesn’t launch or instantly closes.

Solution:

  • Download the installer on the WEKA website, since it may be corrupted.
  • Right-click on the installer and run it as administrator.
  • Turn off your antivirus temporarily in case it blocks the installer (turn on later when the installation is finished).
  • Make sure that you’ve downloaded the installer for your OS.

WEKA Crashes/Closes Upon Opening: The program opens briefly and then stops responding or closes itself.

Solution:

  • Download the latest version of WEKA from official site.
  • Install the latest version of Java if your installer doesn’t include it.
  • Restart your computer and launch WEKA.
  • If you are working with huge datasets, you can increase Java Heap Size by adjusting WEKA startup parameters.

Permission Issues: You can’t install WEKA because of access denied or other permission problems.

Solution:

  • Open the installer as administrator.
  • Install WEKA in a folder where you have writing access (your user directory).
  • Make sure that your organization or antivirus doesn’t block software installation.
  • If necessary, contact your IT department.

What to do after Installing WEKA

Once you’ve managed to install WEKA, it is time to proceed to exploring machine learning functionalities of WEKA.

Load a Sample Dataset: There are several built-in datasets in WEKA that can be used as a starting point.

  • Start WEKA , open Explorer and Go to the Preprocess tab.
  • Click Open file.
  • Open the data folder in the WEKA installation directory.
  • Open one of the sample datasets (e.g., iris.arff, weather.nominal.arff).

After loading the dataset, you will get all the attributes, class labels, and statistics in the Preprocess panel.

Build Your First Decision Tree: J48 classifier is a part of WEKA and it implements C4.5 decision tree classification algorithm that is one of the best algorithms for starters.

  • Go to the Classify tab.
  • Choose trees → J48 as a classifier.
  • You can keep default settings or modify them if you need to do so.
  • Click Start to build a model.

You will be shown the generated decision tree as well as evaluation metrics:

  • Accuracy
  • Precision
  • Recall
  • Confusion Matrix
  • Kappa Statistic

It is a simple example of decision tree classification in WEKA.

Save a Model

After training the model, you will want to save it for further use.

  • Right-click the result of building the model from the Result list.
  • Select Save model.
  • Choose the destination folder and provide a name.
  • Click Ok to save the model using .model extension.
  • The model can then be loaded from the file later.

Explore Visualization: WEKA provides several visualization methods that can help to analyze datasets and results of machine learning models.

You can:

  • Use scatter plot to visualize connections between attributes.
  • Analyze class distribution and attribute values.
  • Visualize generated decision tree.
  • Analyze errors of predictions and classification results. Those visualization capabilities can help to detect patterns, outliers and understand machine learning models better.

Frequently Asked Questions

Q1) Which Java Version Works Best with WEKA?

The recommended Java version for WEKA is the latest version of the 64-bit Java Runtime Environment or JDK. The installation file provided by the WEKA developers for the latest version of the software comes with a Java runtime bundled inside. However, if you face Java-based problems, then download the latest LTS release of Java and check its installation using java -version in Command Prompt.

Q2) How to Update WEKA Without Losing Settings

The process of updating WEKA is simple and easy and it will not cause any loss of settings.
1. Download the latest WEKA setup file from the website.
2. Close all open WEKA applications and programs.
3. Install the downloaded file on top of the existing WEKA version or at a new location.
4. Launch WEKA and confirm that your settings have not changed and everything is working as expected.
As a precautionary step, take a backup of any custom packages, datasets, and .model files..

Q3) How to Uninstall WEKA Completely

To uninstall WEKA completely from your Windows computer follow these steps.
1. Go to Settings > Apps > Installed Apps (Programs & Features on earlier versions of Windows).
2. Select WEKA from the list of installed applications.
3. Press Uninstall button and follow the instructions.
4. Delete the folder that holds any custom WEKA data or .model files.
5. Restart your computer to finish the uninstallation process.
Note that if you installed WEKA along with bundled Java runtime, uninstalled WEKA will delete the bundled Java runtime also.

Q4) WEKA Installation Checklist

To be able to use WEKA, make sure that you have done the following:
• Downloaded WEKA from its official website.
• Installed the appropriate version of WEKA for your operating system.
• Installed/checked the appropriate Java version .
• Launched the WEKA Explorer interface.
• Loaded a sample dataset.
• Created and evaluated your first machine learning model (e.g., with the J48 classifier).
• Saved your created model.
This list makes sure that your WEKA installation is ready for data mining, classification, clustering, and other machine learning purposes.

Q5) Which Java version is compatible with WEKA?

The latest 64-bit Java Runtime Environment (JRE) and Java Development Kit (JDK) is compatible with WEKA. Most WEKA installers for Windows include the Java runtime. Therefore, it could happen that you do not need to install Java.

Q6) Where are the sample datasets in WEKA?

Some sample datasets are included in WEKA to study machine learning algorithms. Once the WEKA Explorer is started, go to Open file and open the data folder in the installation directory of WEKA. Here are some sample datasets:
– iris.arff – a classification dataset on flowers.
– weather.nominal.arff – a sample weather prediction dataset.
– cpu.arff – a dataset on CPU performance.
– soybean.arff – a plant disease classification dataset.
These datasets will be useful for practicing classification, clustering, regression, and data preprocessing.

Q7) Can I install WEKA on macOS and Linux?

Yes. WEKA is a multiplatform application that can be used on Windows, macOS and Linux. You should download an appropriate installer/package for your OS from the official WEKA website. As WEKA is implemented in Java, the functionality and the interface remain the same for all supported operating systems.

Conclusion

In this WEKA tutorial, we provided an introduction to the open-source WEKA Machine Learning Software and explained step by step download and installation process. We have also seen the five options available for Weka Graphical User Interface, namely, Explorer, Experimenter, Knowledge flow, Workbench, and Simple CLI.

We have also learned about the features of WEKA with examples. The features include Dataset, ARFF Data format, database connectivity, etc.

=> Visit Here For The Exclusive Machine Learning Series

Was this helpful?

Thanks for your feedback!

READ MORE FROM THIS SERIES:



2 thoughts on “Weka Tutorial: How to Download & Install Weka Tool (2026)”

Leave a Comment