Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

March 25, 2010

Solving my problem with Eclipse !!! [SOLVED]

Last Update 25/3 21:56 - problem solved

In my efforts to solve my problems with Eclipse and Android working on my Ubuntu Linux 10.04 lucid lynx Beta 1(and earlier Alphs 3) I decided to remove Eclipse completely using synaptic and marking eclipse and its components for "Complete Removal".

I deleted the workspaces I had lying around and I went on a hunt for any eclipse-related (config) files with # sudo find / -name *eclips*

Apart from files in ~/.mozilla/eclipse/ (permissions.sqlite, places.sqlite, places.sqlite-journal and prefs.js) that I dare not delete and some files in Trash (that I am not able to empty, as Nautilus hangs when opening Trash (bug #544859 for which I need to do a valgrind run - will do that tonight)) I seem to be free of eclipse-related files.

So I will once more try to install eclipse from the Ubuntu repositories with

# sudo apt-get install eclipse

and then pray for the best. See you at the other side ;-)

Update (13:48):

Excerpt from the above # sudo apt-get install eclipse :


0 upgraded, 59 newly installed, 0 to remove and 0 not upgraded.
Need to get 230MB of archives.
After this operation, 361MB of additional disk space will be used.

Good thing that the University 'net connection is behaving today - doing from ~180 KBytes/s and upwards :-)

Update (13:53)
Well. Still having the same problems. Sigh. Eclipse looks for https://dl-ssl.google.com/android/eclipse/ which it does not find. Now what?

Update (21:56)
It seems that there was already bug filed in Launchpad: eclipse unable to 'install new software' (bug #541482). Somehow I just missed it :-s

It is a problem with the network stack, and if you force java to use the IPv4 stack by adding the following to your eclipse (when starting it):


-vmargs -Djava.net.preferIPv4Stack=true

things are back to normal. Great! Problem Solved!

PS.
thus having the line


eclipse -vmargs -Djava.net.preferIPv4Stack=true

in the launcher does the trick!

March 22, 2010

Problems with Eclipse and ADT (Android Development Tools)

I am having a few problems since my upgrade to Ubuntu 10.04 (lucid lynx), working in Eclipse. I cannot install the Android Development Tools (ADT). I cannot even get in contact with the Eclipse repositories. I have tried both the Ubuntu package of Eclipse and the .tar ball from eclipse.org. It makes no difference.

I seem to have no other difficulties with my lucid lynx, other than that WINE does not have a lucid lynx ppa (as far as I can see). But I am still wondering if it is something related to lucid lynx that makes me unable to get to the Eclipse and ADT repositories. So I am downloading an ISO image of Ubuntu 9.10 Karmic Koala and will run that in VirtualBox. Unfortunately the network at my university is quite slow today. I might actually get better transfer speeds through my cell phone, but I need to keep my data usage down - I only have 300 MB/month as I am trying to cut costs.

Googling bug reports on this I have found some on Eclipse crashing on (an earlier) lucid lynx alpha due to xulrunner being buggy. This was connected to the auto-completion feature in Eclipse. If this is a related bug, I am not sure.

I will update this post as I get more info. I am still downloading karmic koala.

UPDATE (12:05):
I have downloaded the ADT 0.9.6 .zip file but the install fails due to missing org.eclipse.wst.sse.core - so I still need to get the Eclipse part right.

UPDATE (23/3 22:15 CET)
I reinstalled Ubuntu with lucid lynx beta 1. Still no go. I cannot even get eclipse to access its own update repositories. Veeeery frustrating!

March 17, 2010

Problems with Eclipse IDE, Android SDK hindering the development of Analytics 4 Android ...

I am currently experiencing problems that might have roots in problems with my Eclipse IDE and the installed Android SDK (which might actually have r4, not r5, for which Eclipse had downloaded its r5 parts).

So I have wasted valuable time trying to debug the new UI for Analytics 4 Android. So no real advancement on that front. I have downloaded and installed the new SDK r5 and Eclipse is now downloading and installing the new parts for this.

But I am seriously wondering, Should I just back up the important parts of my /home partition and then proceed to install the latest Lucid Lynx Alpha release ... It would have the advantage of getting rid of old files (the current installation has roots in 7.10 and has just been incrementally been upgraded).

So while I am working tonight I will be thinking about whether to wait for the first Beta or just jump straight in now.

Anyhow the Analytics 4 Android projects page is now online at kaddu.dk

Hope You have a good day!

December 27, 2009

Developing on Android

I've had an Android phone - the HTC Hero - for almost 3 weeks now and now I feel it is time to get to the next level - developing applications and widgets for this platform. That is why I chose to get an Android so I better get started on it.

This blog-entry is a place and thought holder for research, research plans and ideas for apps and widgets. It is primaryly for my own use and is put online so that I have access to it from different places. You are very welcome use and comment on it.

At a later stage I will put articles on my web site.

Android development can be done on several platforms including Windows, Linux and Mac.

My development platform is my laptop which is running Ubuntu (Linux) 9.10 Karmic Koala. I have to find an Integrated Development Environment (IDE), a Version Control System, the Android Source Development Kit. I also need to research the Android APIs.

Following the quick start guide at the Android Development web site the supported IDE is Eclipse version 3.4 and above. This ties in well with my choice of using Ubuntu 9.10 as it contains Eclipse 3.5 whereas Jaunty (9.04) contains only Eclipse 3.2.

First you have to install Eclipse and the lastest JDK.

... to be continued ...

... to be researched:
Android Development with Eclipse - Tutorial by Jack Vogel (Android 2.0 Eclipse 3.5)