3rd party .jar includes with Google App Engine - java

I am writing a Google App Engine app using Java that uses 3rd party libraries. I am getting a "java.lang.NoClassDefFoundError" when running the app when it hits the line with references to the 3rd party library. This app works when creating a normal servlet, so I am pretty sure the code is correct.
I am developing in Eclipse.
Does the app engine not allow 3rd party libraries?
Do I need to configure the class path differently?
HELP!!

If using Eclipse, You need to copy the required jar(s) to the /WEB-INF/lib folder manually.

Please see if the library you are using will play in the google app engine or not?
This link lists most third party libraries/frameworks and the issues that occur when you use different versions of them with GAE and also possible solutions if any.
The ClassNotFoundError is seen in a some instances with some libraries with GAE. for example spring-security etc.

Related

How to upload two separate .aab files with different configuration on google play store?

I know a single app bundle is enough to support different kinds of configurations, but one of our module is in react native and recently we've upgraded the Gradle version to 7.0.0. due to which our build machine won't let us use the minimum SDK below 21. This is why I wanted to create separate .aab files(one created on the build machine the other one from android studio) with different API levels(one will support android 19+ and the other one will support android 21+) and I wanted to upload these bundles without changing package name or application id. Any suggestions around this? or is there any better way to do this?
Note:- Two separate .aab are a must. I already have looked into this solution but it is not helpful to me.

Integrate endpoints.cmd generated library from maven eclipse plugin project into android app

I'm a bit of a newbie to all this.. but I can't seem to find any specific instructions for my scenario
I have built a simple endpoint api, using a maven project via eclipse.
I have built an android app, and just want to add a little test in it to use the simple api.
(sidenote: i have also built an app engine web app which will later also [i hope] make use of the same endpoint api, so both the web app and the android app make use of the same library / code)
anyway, I'm stumbling on a couple steps.
I can't seem to use the eclipse 'google -> generate cloud endpoint client library' option, since it's a maven project.
So i found on the google site, instructions to use the endpoints.cmd commandline to generate the library.
I successfully did this apparently (it created a zip file rather then just a jar)
here is where i am confused what to do next.. or if i missed something.
I have tried adding the jar within the zip as a library in the build path for my android app.
When I do that, I see that the Builder member doesn't seem to have been added.
Should I expect it to have been added by the library generation?
I can't seem to do anything in my android app code to use the library.
What am I missing / doing wrong?

Problems with accessing data from Google Calendar API

I want to get a users calendar events (entries) via the java google calendar API (V3.0). Unfortunately, I was unable to find any working example (tutorial) or successfully run anything. What I did so far:
I checked the APIs Explorer and successfully run some requests via the google website and my developer api key (conclusion: my API access works in theory).
I tried to follow the "Your first App"-guide. There are two ways to invoke the API: REST or client libraries. I want to use the java client library.
So I tried to set up the client library : downloaded the jars and added them to the build path (in eclipse) - as I usually do this with external jars. I now can import the classes without errors.
Here, the guide finishes abruptly if I want to use the java client library instead of directly accessing it via REST...
From here I have absolutely no idea what to do. I found a lot of examples in the web (usually for the v1.0 or v2.0 API), but was unable to run any of them. (On Google Developers I found several examples, but all for Android or AppEngine. Nothing worked...)
Does anyone of you know a very simple example to get a users events via Java library (Google Code API)?
solved it on my own. For all of you who want to start using the Google APIs in Eclipse. I highly recommend using Maven which immensely helps including the right jars (actually, it does it for you). Then try this example code (link) to start (OAuth2 authentication). You also will need a dev account and API key from google: link. Then you can start coding :) enjoy!

How do I use GWT Google Web Toolkit in my own Java project without GAE?

I would like to see if I can use GWT in my already existing Servlet-site using the Resin web-server, however I am having problems locating any decent guides that can help me out
Does anyone have a hands-on tutorial/guide on how to use GWT outside an "GWT project" or without using Google App Engine (GAE)?
I am still using Eclipse and have GWT plugins enabled and added the GWT support for the project, but I am unsure how to connect all the components together without using GAE.
First of all, you dont need GAE for GWT. I have been using GWT nearly for two years. I do not need to install GAE sdk..
I recommend your to read this document . It explains how to configure application servers to integrate with gwt..

need source code of libraries to run on android

I need the sourcecode for these libraries:
commons-codec-1.3
commons-httpclient-3.0.1
commons-logging-1.1
log4j-1.2.14
jaxb-ri-2.1
I need the code to recompile it in eclipse in android app and use it with javax.xml packages as you know javax.xml can not be used in eclipse in an android project.
All of this is to use the Amazon-EC2 SDK to access them from android mobile.
all of thes is to use amazon-ec2 sdk to access them from android mobile
Your list of JARs is incorrect. The current AWS Java SDK does not use log4j or jaxb, but does use other libraries.
You may better served finding another way to access the Amazon AWS API that requires fewer third-party dependencies, such as typica, or simply invoking the query API directly using HttpClient.
All of this is to use the Amazon-EC2 SDK to access them from android mobile.
AWS now provides a dedicated AWS SDK for Android developers. I would take a look at this as it may provide the functionality you need without you having to satisfy a lot of other dependencies.

Categories

Resources