java.lang.NoClassDefFoundError: org/apache/http/params/HttpParams

0 votes

I'm getting

java.lang.NoClassDefFoundError: org/apache/http/params/HttpParams

 

With a simple java code..

 

http://pastebin.com/x4Fq7Ta1

 

 

I get

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/params/HttpParams
at com.shephertz.app42.paas.sdk.java.game.GameService.getAllGames(GameService.java:294)
at project.leaderboards.LeaderboardService.<init>(LeaderboardService.java:31)
at project.leaderboards.ServiceLocator.getLeaderboardService(ServiceLocator.java:9)
at com.fainosag.engine.Main.main(Main.java:26)
Caused by: java.lang.ClassNotFoundException: org.apache.http.params.HttpParams
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 4 more
 
I've added  App42_JAVA_SDK_2.4.jar to my libs folder, and to build path + export.
asked Aug 22, 2014 in App42 Cloud API-BaaS by paul.bv96 (31 points)
edited Aug 22, 2014 by paul.bv96

1 Answer

+1 vote
 
Best answer
Hello Paul,
 
Thanks for sharing the details with us.
 
Kindly add all the reference jar files  in your project build path which is in lib folder of downloaded sdk and let us know if it resolve your issue.
 
Thanks
answered Aug 22, 2014 by hs00105 (2,005 points)
selected Aug 22, 2014 by paul.bv96
I've put all the .jars from the example and worked.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...