Solved

Problem running jar file

Posted on 2011-03-06
9
381 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
  • 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 500 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
 
LVL 86

Expert Comment

by:CEHJ
ID: 35046377
How are you trying to run it?
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now