Re: import weka project. jar file in weka software

Peter Reutemann <[email protected]> Fri, 15 Dec 2023 08:41:13 +1300
Newsgroups gmane.comp.ai.weka
Message-ID <CAHoQ12JXiC6qzetV-_5bPPs75UxeMwZLCYThkSfu_bmsMqEOXA@mail.gmail.com>
> I want to import a project.jar to Waka software or open the file.jar with Waka software, but I can't. How to open project file.jar in Waka software?

Weka is a Java application and its code base is stored in a Java
archive (jar) called weka.jar.

Are you trying to make the additional functionality from the
project.jar available in Weka or are you trying to analyze the content
of the project.jar file with Weka algorithms?

The answer to the latter: no, you can't just load a Java jar file and
analyze it within Weka. Weka can load datasets in various text formats
like ARFF or CSV. You will need to convert the jar into such a dataset
format before you can load it with, e.g., the Weka Explorer.

The answer to the former: this is a basic Java question and not
specific to Weka.

Since I don't what operating system you are running or what the
project.jar contains, I can just give you some generic instructions:
1. place the project.jar in the same directory that contains your weka.jar
2. open a terminal/command-prompt and navigate to the directory that
contains weka.jar and project.jar
3. start Weka with the additional jar in your classpath:
- on Linux/Mac
  java -classpath weka.jar:project.jar weka.gui.GUIChooser
- on Windows
  java -classpath weka.jar;project.jar weka.gui.GUIChooser

NB: I'm assuming that the correct version of Java is installed on your
system and the "java" executable is available through directories
listed in your PATH environment variable.

More information on the Java classpath:
https://docs.oracle.com/javase/8/docs/technotes/tools/windows/classpath.html

Cheers, Peter
-- 
Peter Reutemann
Dept. of Computer Science
University of Waikato, Hamilton, NZ
Mobile +64 22 190 2375
https://www.cs.waikato.ac.nz/~fracpete/
http://www.data-mining.co.nz/
_______________________________________________
Wekalist mailing list -- [email protected]
Send posts to [email protected]
To unsubscribe send an email to [email protected]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html