java - Persistent No Class Def Found Error and external JAR issues -
my code reads
import android.os.bundle; import rita.wordnet.riwordnet; import java.util.*; import android.app.activity; import android.content.intentsender; import android.view.menu; import android.widget.textview; public class mainactivity extends activity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); textview strlab; strlab=(textview)findviewbyid(r.id.textview1); riwordnet wordnet = new riwordnet(); string word = "diode"; system.out.println("\nfinding parts of speech " + word + "."); string[] partsofspeech = wordnet.getpos(word); (int = 0; < partsofspeech.length; i++) { strlab.settext(""+partsofspeech[i]); } } @override public boolean oncreateoptionsmenu(menu menu) { // inflate menu; adds items action bar if present. getmenuinflater().inflate(r.menu.main, menu); return true; } }
it compiles fine. i'm using latest version of android sdk adt bundle windows available. when ever run app stops unexpectedly.
i'm using rita wordnet jar files. added them copying them libs folder.
i understand jar files needs java 5.0 or 6.0. changed setting 1.6 in java compiler options in project properties. understand "order , export" method of adding jars out-dated.
can please me ?
edit: adding screenshots of log cat
from stacktrace above, seems need more dependencies. in case java wordnet library.
http://mvnrepository.com/artifact/net.sf.jwordnet/jwnl
do have 1 inside classpath?
Comments
Post a Comment