?
Solved

Problem running jar file

Posted on 2011-03-06
9
Medium Priority
?
428 Views
Last Modified: 2012-05-11
I am trying to run milk-1-0.jar file from this website. I have jre installed and set my classpath using: set CLASSPATH=C:\Users\chudy\Desktop\Work\wekafiles\milk\milk-1-0.jar . When I am trying to run the file from a command line using java milk.classifiers.DD -t data.arff according to this file http://www.cs.waikato.ac.nz/~ml/milk/README I am getting following error message:

Exception in thread "main" java.lang.NoClassDefFoundError: milk/classifiers/DD
Caused by: java.lang.ClassNotFoundException: milk.classifiers.DD
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: milk.classifiers.DD.  Program will exit.

How to run it?
0
Comment
Question by:chudyksg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
9 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 35046323
Please run the following and attach the file listing.txt
jar tv milk-1-0.jar >listing.txt

Open in new window

0
 
LVL 86

Accepted Solution

by:
CEHJ earned 2000 total points
ID: 35046365
Just checked: that jar file is not intended to be used like that: you need to unjar it and place the root folder in your classpath
0
 

Author Comment

by:chudyksg
ID: 35046371
I try to run it but nothing is happening. It just creates and empty txt file
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 86

Expert Comment

by:CEHJ
ID: 35046377
How are you trying to run it?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35046441
If you run the app without arguments, it will tell you what arguments you need
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35046650
I explained the problem clearly. The software runs for me
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35063212
Accept http:#35046365 please
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35068070
:)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month15 days, 17 hours left to enroll

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question