could not find method

161 views
Skip to first unread message

nepirt

unread,
Jun 18, 2012, 6:32:35 PM6/18/12
to microsoft-tran...@googlegroups.com
I've been messing with this for about an hour now and I cannot figure it out. I followed the doc and used your sample code, I have no errors showing in my code but everytime I run my app it crashes and I receive this error in the log-  Could not find method com.memetix.mst.translate.Translate.setClientId

any idea?


Jonathan Griggs

unread,
Jun 18, 2012, 6:35:57 PM6/18/12
to microsoft-tran...@googlegroups.com
Hello. Let's see if we can figure this out...

1) Which version of the library are you using?

2) How are you managing your dependencies? (via Maven, or including the jar in your classpath?)

nepirt

unread,
Jun 18, 2012, 7:05:38 PM6/18/12
to microsoft-tran...@googlegroups.com
Thanks for the quick response, you have to forgive me I'm relevantly new to java. 

I am using - microsoft-translator-java-api-0.6.1-jar-with-dependencies.jar

I added to my project by placing it into the lib folder, in eclipse I right clicked, add to build path.

Jonathan Griggs

unread,
Jun 18, 2012, 7:26:32 PM6/18/12
to microsoft-tran...@googlegroups.com
Ok, it sounds like we're barking up the right tree. A few more questions:

1) When you added to build path, you added the microsoft-translator-java-api-0.6.1-jar-with-dependencies.jar explicitly through "Add Jar" button, not just the /lib directory?

2) Is your project building OK?

3) Are you running your code from within Eclipse? (right click the class with your Main, and Run-As -> Java Application) 

4) If running in Eclipse, is the library listed under Right-Click -> Run As -> Run Configurations -> Classpath (tab)?

nepirt

unread,
Jun 19, 2012, 10:12:54 AM6/19/12
to microsoft-tran...@googlegroups.com
1) When you added to build path, you added the microsoft-translator-java-api-0.6.1-jar-with-dependencies.jar explicitly through "Add Jar" button, not just the /lib directory?

  • I placed it in the lib folder, then through eclipse I located the folder in the package explorer, then on the file I right click -> build path. 
  • After this the jar file appears in the Referenced Libraries folder

2) Is your project building OK?

  • yes, it builds without any errors

3) Are you running your code from within Eclipse? (right click the class with your Main, and Run-As -> Java Application) 

  • yes

4) If running in Eclipse, is the library listed under Right-Click -> Run As -> Run Configurations -> Classpath (tab)?

  • I cannot find the classpath tab - I see android / target / common

Jonathan

unread,
Jun 26, 2012, 2:45:42 PM6/26/12
to microsoft-tran...@googlegroups.com
Try renaming your /lib directory to /libs that is what made it work for me.

nepirt

unread,
Jul 9, 2012, 12:43:30 PM7/9/12
to microsoft-tran...@googlegroups.com
That did the trick! Thanks for your patience. 
Reply all
Reply to author
Forward
0 new messages