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

  • Home
  • SEARCH
  • 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 8216801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:15:27+00:00 2026-06-07T12:15:27+00:00

I am working to launch Amazon Mechanical Turk in Java. This is the link

  • 0

I am working to launch Amazon Mechanical Turk in Java.

This is the link for the project. (mturk-rest-java-1.0.zip can be downloaded at the bottom of the site)
http://aws.amazon.com/code/Amazon-Mechanical-Turk/581

When I unzip and am trying to Run the Sample with the following steps:

  1. Update the MTGettingStarted.java file to include your access identifiers.

  2. Compile the example by entering the following command:
    javac *.java

  3. Run the example by entering the following command:
    java MTGettingStarted

Compilation will give the following errors:

./src/com/amazon/mturk/requester/RESTResponse.java:23: package org.apache.xpath does not exist
import org.apache.xpath.*;
^
./src/com/amazon/mturk/requester/RESTResponse.java:108: cannot find symbol
symbol  : variable XPathAPI
location: class src.com.amazon.mturk.requester.RESTResponse
            str = XPathAPI.eval(doc, xpathString).toString();
                  ^
./src/com/amazon/mturk/requester/RESTResponse.java:125: cannot find symbol
symbol  : variable XPathAPI
location: class src.com.amazon.mturk.requester.RESTResponse
            NodeList nl = XPathAPI.selectNodeList(doc, xpathString);
                          ^
./src/com/amazon/mturk/requester/Utils.java:3: package org.apache.commons.codec.binary does not exist
import org.apache.commons.codec.binary.*;
^
./src/com/amazon/mturk/requester/Utils.java:58: cannot find symbol
symbol  : variable Base64
location: class src.com.amazon.mturk.requester.Utils
            signature = new String(Base64.encodeBase64(rawHmac));
                                   ^
Note: ./src/com/amazon/mturk/requester/RESTResponse.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors

Also, I cannot run the MTGettingStarted.java provided

Exception in thread "main" java.lang.NoClassDefFoundError: MTGettingStarted/java
Caused by: java.lang.ClassNotFoundException: MTGettingStarted.java
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

How can I solve the problem? Sorry that I am quite a beginner in Java.

Many 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-07T12:15:29+00:00Added an answer on June 7, 2026 at 12:15 pm

    The commands are missing classpath specification. Try compiling it with:

    javac -cp bin -d bin MTGettingStarted.java 
    

    And, then, run with:

    java -cp bin:lib/commons-codec-1.3.jar:lib/serializer.jar:lib/xalan.jar:lib/xercesImpl.jar:lib/xml-apis.jar MTGettingStarted
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

An app I'm working on can't meaningfully launch until it has a Location from
For a project I'm working on, we're still undecided whether the site will launch
I am working on a project in eclipse that when I launch using the
I'm working on an iPhone application (not an universal one). When I launch this
I'm working on an iPad app and reading this page that said launch images
I'm working on a small project to get myself acquainted with the Amazon web
I'm working on a project that requires us to launch a .NET 4 (C#)/WPF
I am working with UILocalNotification.Here When i Launch the notification i need a specific
My code was working absolutely fine before the launch of iPhone SDK 3.0 ,
Working with an undisclosed API, I found a function that can set the number

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.