
I also found file wekaexamples.zip and I copied all the java files into the project. So I created a Maven project with Weka dependency: I found file weka-src.jar and inside was a pom.xml that point me to Attachment: Screenshot added library to module path.pngįirst I want to say that I have no experience with Weka and I just wanted to see if the problem relate to Eclipse.Attachment: Screenshot added weka (external jar) to modulepath.png.Attachment: Screenshot added weka (external jar) to classpath.png.Attachment: Screenshot added weka (classpath variable) to modulepath.png.Attachment: Screenshot added weka (classpath variable) to classpath.png.I've included this screenshot as well again in case I've done it incorrectly. For this I had to create a new user library which I called weka, and the imports still do not work. I've attached screenshots of the jar file in the classpath and then the modulepath in case I did it incorrectly? I also saw there was the option to add a variable (rather than a jar) to the classpath and modulepath so I tried using those instead of the jar file directly, but this did not work either.Īnd after rereading your answer and seeing that you were talking about the library not the jar file, I added the library to the module path. I tried removing the jar from the classpath variable and adding it to the modulepath instead (eclipse did not allow for the same jar file to be added to both classpath and modulepath), refreshed the project and tried to run it again but the imports were still not working. Thanks for the reply :) in the attachment "Screenshot eclipse3" of my original post, I share a photo of the Classpath variable section of the Preferences window where we can see the path to the weka.jar file at the bottom.
#WEKA JAR ONLINE UPDATE#
Thanks for any help :)Įdit: UPDATE The error is now "The package 48 is not accessible" instead of the previous "Import X is not available" I've provided some screenshots to try and help illustrate the error and what seems to me to be no issue with the location of the jar file and classpath. I've done this before in the past with success, and I'm not sure why it's not working now? I've checked the classpath variable in Eclipse and added the path to weka.jar because it wasn't there previously as suggested by someone but the imports still aren't working.
#WEKA JAR ONLINE ARCHIVE#
I am using Eclipse, so I created a new Java Project in the default workspace, added an external archive to its build path (as I describe below), created two empty Java classes, and pasted in the Weka-generated code.
#WEKA JAR ONLINE CODE#
Hi, I'm writing a project that uses two classes generated by a different program (Weka generates source code for a decision tree produced when providing one of its classifiers (in my case the J48 algorithm) with training data (recording occupancy of a room (T/F) based on 5 other attributes) that I found online).
