classnotfoundexception - ClassNotFound on running (no compilation errors in eclipse) -



classnotfoundexception - ClassNotFound on running (no compilation errors in eclipse) -

as have described in title have simple java project in eclipse. in project have 2 packages:

com.tester.beta.api , com.tester.beta.sample

the api bundle has classes, , sample project has 1 class main function:

package com.tester.beta.sample; import java.io.bufferedinputstream; import java.io.datainputstream; import java.io.file; import java.io.fileinputstream; import java.io.ioexception; import java.io.inputstream; import com.tester.beta.api.analyzer; public class illustration { /** * @param args */ public static void main(string[] args) { //i load files hdd analyzer analyzer = new analyzer(); } }

i have no compilation errors in eclipse - seems working fine. when run project , when goes line analyzer analyzer = new analyzer(); classnotfound exception...

i have tried cleaning, rebuilding, refreshing project. restarting eclipse, pc, everything. tried adding output folders project build path manually - nil helps. 1 have thought wrong here? must trivial have spent many times on google no results :/

you class not found because jar file (or folder) containing analyzer class not in classpath.

how running class?

if running in command line mode, have specify classpath follows:

java -cp ./path_to_jar illustration

eclipse classnotfoundexception

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -