Google Code and Eclipse Update Site - java

I am trying to use an Eclipse Update Site project from a Google Code project site (http://code.google.com/p/mdpm).
It uses a git repository, here is the url to the update site
https://code.google.com/p/mdpm/source/browse/#git%2Fcom.lowcoupling.mdpm.updateSite
The problem is that Eclipse doesn't manage to get it from the Install New Software dialog.
I mean I clearly understand the problem is that these urls are not direct and actually returns a web page, not a folder as Eclipse would expect. But, since it seems google has disabled the "downloads" from google code, how should I do that?
Is there any direct URL to my resources?

Ok I can answer my own question
the direct url is http://mdpm.googlecode.com/git/com.lowcoupling.mdpm.updateSite/

Related

Why doesn't Tomcat Server have latest HTML updates?

I'am trying to run this project on my local host.
I followed these instructions on how to launch a dynamic web project on Tomcat Server.
Everything works and when I run the application, I see this which is correct
Now I'am trying to play around with the code a bit. I located the html code that corresponds to the new wine page - /WebContent/tpl/wine-details.html
I changed the country label to show states instead.
However when I re run the web application on the Tomcat Server, the label still says country.
Does anyone know what the issue is? I made sure to save the file. What I also found interesting was there were two copies of this file, in backbone-jax-cellar and backbone-jax-cellar-master. I made sure that both copies contained the states label.
If anyone's having this issue still, I recommend just visiting the URL in a web browser. I used Chrome and everything is showing up fine.
I think the problem here is that Eclipse is somehow caching the html page and doesn't update it when it runs the web app

The module hasn't been compiled yet

I have GWT-Maven project created using IntelliJ. I can build and run it but the browser shows a strange error on home page. How to fix it?
I've tried to create new project and import the existing code but it doesn't help.
Project download: GwtStudy
You need to run it GWT Development mode with Jetty.
The you will get a code server at http://127.0.0.1:9876/
and a web server at: http://127.0.0.1:8888/yourapp.html
See also this video: https://www.youtube.com/watch?v=kx9RxrQZnFA
The tutorial is slightly misleading. You need to run the app by choosing "GWT Development mode with Jetty" and not "GWT development mode" as one may believe following the tutorial (the super dev mode is the standard nowadays).
If you run the app using "GWT development mode" you will start only the code server, that will run the java code, but it will not be able to serve the html page that hosts the stockwatcher application.
If you run it with "GWT Development mode with Jetty" you will get a code server at http://127.0.0.1:9876/ AND the web server at: http://127.0.0.1:8888/stockwatcher.html, that is the URL that you need to open with your browser to see the page that hosts the app (you can see that the docs shows the browser opening the url at port 8888 and not at port 9876).
The answer of Jankos is right but for me it was not enough clear. The video is not strictly needed or related to solve the issue, so I added this answer to help gwt beginners like me.
This is the CodeServer, which compiles your app on-demand, and serves the compiled scripts and their source maps.
You need another web server to serve your webapp, including most importantly an html page that includes the nocache.js script.
Depending on how you "run" your app this may or may not already be the case (you'd need to give more information).

Open Office - download Java code samples with Tortoise SVN

I'm trying to download some code samples from the Openoffice wiki site (https://wiki.openoffice.org/wiki/API/Samples) but so far without success. I use the Tortoise SVN client and to download the code I have created a new folder on my Windows PC. I then right click on this folder and choose "SVN Checkout", add the URL of repository (in this case "https://wiki.openoffice.org/wiki/API/Samples") and click. However I get the error "Server sent unexpected return value (503 Service Unavailable) in response to".
Can anyone say what I'm doing wrong here? I know very little about Tortoise SVN and have never used it before.
First of all, the url you are using is not the correct one as Keugyeol already pointed out, but still the "official" link will not work because the host name is no longer active.
However, the following is supposed to be a mirror of that site and you should be able to get your examples downloaded from there. (https://github.com/vmiklos/lo-sdk-examples)
That's not the correct URL. If you go into that URL, you'll find the sample command under the section Checkout the sourcecode i.e. the correct URL seems in the form of svn://svn.services.openoffice.org/ooo/contrib/sdk/examples/java

Youtube API impossible on android?

I've been having tremendous problems with connecting my android app to the youtube API. Firstly I tried to go along the route of using the native youtube gdata java client(http://code.google.com/p/gdata-java-client/). I had read that this could then be integrated into an android app easily enough and so I set about doing that but I would stumble every time at the line
YouTubeService ytservice = new YouTubeService("AppName",Dev_Key);
I'd enter the correct details here, even have all the necessary external jars but every time I would be given a NoClassDefFoundError reporting that YouTubeService could not be found and neither could it's superclass, MediaService. (Just so you know, I had gdata-youtube-2.0.jar, gdata-client-1.0.jar, gdata-media-1.0.jar, guava.11.0.2.jar and jsr305.jar)
So then I tried which appeared to support android (http://code.google.com/p/google-api-java-client/wiki/Android). There was even a sample example where google tasks had been integrated so it looked promising. It didn't have an actual YouTube class like it did have a taskService but it did support OAuth 2.0 login which I could work with by just sending off URL requests to the youtube API with OAuth 2.0 authentication. I tried this but when the only key I could get from it in combination with android's AccountManager was an auth key token. Posting this with the URL request to google resulted in an 'authentication required' response from youtube(because i was providing an incorrect access token, it was at least twice the size of a working access token i was comparing it with).
How can I find the access token that I need for the youtube API from the AccountManager? Or even better, how can I get the YouTubeservice to work?
Thanks
rory
Edit
Amad, thanks for the answer but unfortunately that is what i am already doing:
(source: themobilelook.com)
maybe it'll help if i supply my project folder: here it's a barebones setup, literally just to test if the YouTubeService works.
using adt 20, jdk compliance level 1.6
if you manage to create a working version then itnwoild be great if you could share it
The YouTube API library/libraries must be included in the project. By going to the Project Properties > Build Path > Order and Export tab, you can tick the checkbox next to the all YouTube-API-related libraries to ensure that they will be included in the project when you export it. Make sure to clean and rebuild after doing this.
As for the access token... not totally sure. The documentation may help there. This Google Groups thread may help also.
If you get NoClassDefFoundError during Runtime, then I suspect you did not include them to work at runtime. You have to check the checkbox for each .jar like this:
(Of course you have to add them to your java build path first)

GWT 2.0 Eclipse plugin - how to automatically launch browser on run / debug?

I've downloaded the new GTW 2.0 and it's eclipse plugin
In the new eclipse plugin, when running or debugging instead of opening the browser, it shows this:
For your convenience, here are some URLs that you may wish to view in development mode. Simply copy/paste a URL below into any supported browser.
At least they could have made the URL clickable (e.g. open your default browser) but you can only copy.
Is there a patent infringment they are trying to avoid? whats so hard in opening a browser link?
It seems they don't support it for some reason, there is no workaround, and it is the intended way.
Notice that your launch configuration
is listed in the view, along with some
suggested URLs to start up your GWT
application. Copy the URL for your
application into the browser's address
bar by selecting the entry and
choosing Copy from the context menu.
Once you have navigated to the startup
URL in your browser, you'll notice
that a browser entry will be added to
the launch configuration:
If anyone from Google reads this, it would be nice to explain why on earth you don't launch the URL?
Strange. I haven't looked at this stuff since GWT 1.8 or so, but at that time my favorite browser would pop right up when the app was launched.
I don't know exactly what's wrong in your case, but I'd check the following:
Does (double) clicking on a .html file in a file browser (Explorer or whatever you use) cause a browser to open up?
What about double clicking"Run as..." on a .jsp file in Eclipse? For me, that fires up Firefox, regardless of GWT. You may want to set up a file association in Eclipse to make this work.

Categories