Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8064377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:20:47+00:00 2026-06-05T11:20:47+00:00

I am trying to run the code here — http://code.google.com/p/android-market-api/wiki/HowDownloadApps –, and have this

  • 0

I am trying to run the code here — http://code.google.com/p/android-market-api/wiki/HowDownloadApps
–, and have this code in a Tester.java file (shown below). Two .jars are also in the same directory as this file, named androidmarketapi-0.6.jar and protobuf-java-2.2.0.jar. Both are in my classpath (I’m on Windows 7). It compiles fine, with the command “javac Tester.java”. A Tester.class file is created in the same directory.

 public class Tester {
         public static void main (String[] args) {
                 MarketSession session = new MarketSession(true);
                         System.out.println("login...");
         }

 }

However, the program will not run!

 java Tester

and

 java -cp . Tester

both yield the below error message:

 Exception in thread "main" java.lang.NoClassDefFoundError: Tester
 (wrong name: com/gc/android/market/api/Tester)
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
     at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)

And there’s 9~ more of these “at java.net”, “at java.security”, “at sun.misc,”
“at sun.launcher” type error messages.

Anyone have any idea?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T11:20:48+00:00Added an answer on June 5, 2026 at 11:20 am

    Based on the error message, I can see that Tester is inside a package com.gc.android.market.api

    I would expect your console command to be something like

    java com.gc.android.market.api.Tester

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I m trying to run the code given here - http://code.google.com/p/android-honeycomb-fragment-tutorial/source/browse/#svn%2Ftrunk%253Fstate%253Dclosed on a 7
I'm trying to do the python tutorial here http://code.google.com/appengine/docs/python/gettingstarted/helloworld.html (I have python 2.5 installed)
When trying to run the sample code here: http://www.nikhilk.net/Live-Search-REST-API.aspx I get: Error 52 The
I'm trying to run the code from here MDN: Generators and Iterators function fib()
I'm trying to run this CannyEdge-detection algorithm on ImageJ. The code is here on
I am trying to run the following code (which I got from here ).
I've got the following code (lifted from here ), and I'm trying to run
I'm trying to run the following code, written on my local machine: http://www.jsfiddle.net/WShdx/3/ Functionality-wise
I am trying to run this code where I have a list of lists.
Here's the C# code directly from the website ( http://jobijoy.blogspot.com/2007/10/time-picker-user-control.html ) that everyone refers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.