android - ADT/Eclipse bug? -


i encountered problem annoying. made class file wherein contents same demo file on net. copy-pasted it, renamed it, , changed package file. now, problem whenever, suppose these: intent intent = new intent(mainactivity.this, screenslide.class); startactivity(intent);

screenslide.class 1 i'm referring to. gives me noclassdeffounderror. don't know how fix it. tried cleaning project still problem appears. strange thing tried project, libraries imported, deployed in pc , guess what? there's no error! it's frustrating. please me :(

listview.setonitemclicklistener(new onitemclicklistener() {              @override             public void onitemclick(adapterview<?> arg0, view arg1, int arg2,                     long arg3) {                 // todo auto-generated method stub                 string artist = (string) arg0.getitematposition(arg2);                 artist = artist.replace(' ', '+');                 intent intent = new intent(mainactivity.this, screenslide.class);                 //intent.putextra("artist", artist);                 startactivity(intent);             }         });   <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.fmpdroid.lastfmartists"     android:versioncode="1"     android:versionname="1.0" >      <uses-sdk         android:minsdkversion="11"         android:targetsdkversion="17" />     <uses-permission android:name="android.permission.internet"/>      <application         android:allowbackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:theme="@style/apptheme" >         <activity             android:name="com.fmpdroid.lastfmartists.mainactivity"             android:label="@string/app_name" >             <intent-filter>                 <action android:name="android.intent.action.main" />                  <category android:name="android.intent.category.launcher" />             </intent-filter>         </activity>         <activity             android:name="com.fmpdroid.lastfmartists.second"             android:label="@string/app_name" >         </activity>         <activity             android:name="com.fmpdroid.lastfmartists.screenslide"             android:label="@string/app_name" >         </activity>         <activity             android:name="com.fmpdroid.lastfmartists.screenslidepagefragment"             android:label="@string/app_name" >         </activity>     </application>  </manifest> 

after compile code, end .class files each class in program. these binary files bytecode java interprets execute program. noclassdeffounderror indicates classloader, responsible dynamically loading classes, cannot find .class file class you're trying use. indicates haven't set classpath option when executing code. this link explains how set classpath when execute.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -