java.awt.image. is a restricted class in google application engine - java

I wanted to write an application on Google App Engine + Google Cloud Storage for some images processing. But I stumble upon the following exception:
java.awt.image.DirectColorModel is a restricted class.
For image processing, I wanted to try out Apache Commons Imaging. My guess is that any libraries for image processing will stumble on similar error, since probably most of them use java.awt.image.* package. Do you have any idea how to solve this problem?

So basically Google AppEngine does not support java.awt.image.* .
However, you can use the Google AppEngine Image API to work with images.
And you can check this link for more details on Image-API: https://developers.google.com/appengine/docs/java/images/
Btw, similar issue at java.awt.* is not supported by GAE? how to resolve this?

Related

Google Analytics API DataQuery object

I am new to Java and to the Google Analytics API. I am using Eclipse Kepler Service Release 1. I want to write a small console program in java that will read the output from another program(Start Date and End Date) from a console and query Google Analytics to return some Event Labels and write them to a csv.
I am having trouble getting started though. Google's getting started tutorial is not that helpful and also I can't figure out how to add jars from the API to my solution. I'm trying to use a DataQuery object because that is how the tutorial suggests you start, but I am pretty sure the object is not in any of the jar files that come with the Google Analytics API.
I think they are in the Core Reporting API. I installed the Google API plugin for eclipse but the Core Reporting API is not listed and I cannot find a download for it online.
Does anyone know how to download the Core Reporting API or if this is even the correct place to start?
Does anyone have any good examples of a Java program that does something similar that they are willing to share?
This tutorial of google having full java example you can customize it for different data queries
https://developers.google.com/analytics/devguides/reporting/core/v2/gdataJava
This is query explorer tool provided by google
http://ga-dev-tools.appspot.com/explorer/

Need to display data queried from GAE datastore in a nice way

I want to display data queried from GAE datastore in a nice way (graphs, etc.)
What is the best way to do it?
As I'm already working with GAE, perhaps there is a google API for that? The only thing I found online is Chart.js but I need to channel the JS into java which seems complicated.
Any advise will be welcome, Thanks!
I think a better way is to do the charts from the browser not the server. Just pass your data to the js and use google charts to display them. There are tons of examples and a playground for google charts.
GWT is a natural web front end for GAE applications---the Eclipse Google plugin integrates GWT with GAE, and the GWT tutorial includes a section on GAE. Several charting libraries are available, for example, http://code.google.com/p/gwt-google-apis/wiki/VisualizationGettingStarted. Moreover you can build your own in HTML5 with the GWT Canvas.

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 to read a Barcode.. any particular API ? i need in the J2ME

Please suggest a API that can let me do the barcode read in mobile for J2ME..
There's a related post on doing this on Android: Using ZXing to create an android barcode scanning app
Update: As bhakki pointed out, you are asking about J2ME. The ZXing library appears to have partial support for J2ME: http://code.google.com/p/zxing/, so this other post may be of use still. Of course, this assumes you are using a mobile device with a camera
Update2: Specific J2ME code can be found in their SVN repository: http://code.google.com/p/zxing/source/browse/trunk#trunk%2Fjavame%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fclient%2Fj2me%253Fstate%253Dclosed ... and their forums may be of use: https://groups.google.com/group/zxing/search?group=zxing&q=javame&qt_g=Search+this+group

Google App Engine + AdWords API: java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException

I know a lot so far about this exception. But I am wondering, if any of you tried to use AdWords API on GAE. AdWords uses Axis as underlying WS library, which do not work on GAE and unfortunately I cannot find solution to make it working. I tried already this: http://dev.bizo.com/2009/04/calling-soap-web-services-on-google-app.html
Does any of you know if there is a way to use AdWords API on GAE with Java?
Thanks in advance for any help
Konrad
The problem is that the adwords client library uses some things that forbiden in GAE's sandboxed environment.
This was resolved by a patch: http://code.google.com/p/google-api-adwords-java/issues/detail?id=62
For more info look here: http://penumbro.us/post/1135755221/adwords-api-on-app-engine-java-part-3

Categories

Resources