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 9178773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:37:53+00:00 2026-06-17T17:37:53+00:00

I need to compile this project: https://github.com/boatmeme/microsoft-translator-java-api i create a project named microsoft-translator-java-api in

  • 0

I need to compile this project:
https://github.com/boatmeme/microsoft-translator-java-api

i create a project named “microsoft-translator-java-api” in eclipse and copy all of this project files starting from “com” folder into the src folder of my new project. everything OK but i have some errors that says i need a dependency library called “json-simple”, then i go to here: http://code.google.com/p/json-simple/downloads/list and download the latest version(1.1.1) and import it to my project by right click on my project and click on “build path” and then click on “add external archives” and import it on my project… every thing is OK right now and i don’t have any error…

now, i need to create a jar file. to do this i right click on my project and click on “export” then select java->jar file from list, click next, select my project and uncheck .classpath and .project on the right side panel and then click on finish and create my .jar file…

i need this file in my android project, when include this file in my project and run project i get errors. this is my logcat:

01-23 11:44:41.016: E/AndroidRuntime(285): FATAL EXCEPTION: AsyncTask #1
01-23 11:44:41.016: E/AndroidRuntime(285): java.lang.RuntimeException: An error occured while executing doInBackground()
01-23 11:44:41.016: E/AndroidRuntime(285): at android.os.AsyncTask$3.done(AsyncTask.java:200)
01-23 11:44:41.016: E/AndroidRuntime(285): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
01-23 11:44:41.016: E/AndroidRuntime(285): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
01-23 11:44:41.016: E/AndroidRuntime(285): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
01-23 11:44:41.016: E/AndroidRuntime(285): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
01-23 11:44:41.016: E/AndroidRuntime(285): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
01-23 11:44:41.016: E/AndroidRuntime(285): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
01-23 11:44:41.016: E/AndroidRuntime(285): at java.lang.Thread.run(Thread.java:1096)
01-23 11:44:41.016: E/AndroidRuntime(285): Caused by: java.lang.NoClassDefFoundError: org.json.simple.JSONValue
01-23 11:44:41.016: E/AndroidRuntime(285): at com.memetix.mst.MicrosoftTranslatorAPI.retrieveResponse(MicrosoftTranslatorAPI.java:161)
01-23 11:44:41.016: E/AndroidRuntime(285): at com.memetix.mst.MicrosoftTranslatorAPI.retrieveString(MicrosoftTranslatorAPI.java:199)
01-23 11:44:41.016: E/AndroidRuntime(285): at com.memetix.mst.translate.Translate.execute(Translate.java:61)
01-23 11:44:41.016: E/AndroidRuntime(285): at com.memetix.MicrosoftTranslatorAndroidTestActivity$MyAsyncTask.doInBackground(MicrosoftTranslatorAndroidTestActivity.java:34)
01-23 11:44:41.016: E/AndroidRuntime(285): at com.memetix.MicrosoftTranslatorAndroidTestActivity$MyAsyncTask.doInBackground(MicrosoftTranslatorAndroidTestActivity.java:1)
01-23 11:44:41.016: E/AndroidRuntime(285): at android.os.AsyncTask$2.call(AsyncTask.java:185)
01-23 11:44:41.016: E/AndroidRuntime(285): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
01-23 11:44:41.016: E/AndroidRuntime(285): … 4 more

when i use pre-compiled version of “microsoft-translator-java-api” everything is ok and project works perfectly. but with my own compiled not…

you can find pre-compiled jar file here: https://github.com/downloads/boatmeme/microsoft-translator-java-api/microsoft-translator-java-api-0.6.1-jar-with-dependencies.jar

and this is my compiled file:
https://dl.dropbox.com/u/15006326/java/microsoft-translator-java-api-0.6.1-jar-with-dependencies.jar

can anybody check this and help me? i need only add Persian(fa) language in language .java file and recompile it… but it doesn’t work for me. ineed this project:
https://github.com/boatmeme/microsoft-translator-android-test

with modified language.java file only…
please help me. 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-17T17:37:54+00:00Added an answer on June 17, 2026 at 5:37 pm

    From the log, it can be seen that there is a NoClassDefFoundError which means that Java cannot find a class at runtime which was available during compile time.

    json-simple has been included at compile time but not at runtime. The org.json.simple project is packed inside the pre-compiled jar.

    So either configure Eclipse to build a runnable jar which should package the required libraries into the jar, or create a Manifest for the jar and add the dependency with the Class-Path header.

    It might also be useful to use a Java Decompiler to compare the downloaded binary with your compiled jar which should give a clear indication of the differences.

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

Sidebar

Related Questions

I am trying to compile this project https://github.com/lilac/Android-ImageMagick . To produce the android-magick.so I
In a project I am running I need to compile this code into a
I need to compile the unit with /EHsc option, how could i set this
I need to compile my GWT 1.7 project from my ant build file....anyone know
I'm doing a project for school, so I need to compile it with: gcc
Hey guys. I need to compile some project. I installed Visual C++ 6.0 +
so I installed this: http://www.vimov.com/isimulate/ then i removed it because i didn't need it
So, we have a project using the Three20 Library from Facebook ( http://github.com/facebook/three20 ),
I'm using Sass 3.1.10 with Compass 0.11.5. I need to compile my compass project
I need a compile time check for what version of glibc will be used.

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.