[CALUG] Android SDK
Jim Sansing
jjsansing at verizon.net
Thu Sep 2 15:21:08 EDT 2010
If your JRE is gcj, I have found that Eclipse runs a lot better with
Sun's JRE than gcj. The last time I tried to use gcj with Eclipse, I
was doing SSL networking and it simply did not work. When I switched to
the Sun java package, my app not only started working, Eclipse
performance was easily twice as fast.
Be aware that if you leave gcj installed, you have to configure the
system to use Sun java instead (unless the package handles it for you).
This includes:
1) Set /etc/alternative/java* using the update-java-alternatives script
(or update-alternatives if the java specific script is not available)
2) Make sure Eclipse is using the right JRE in Window -> Preferences ->
Java -> Build Path -> Classpath Variables
BTW, I am not praising Sun here. I think it was a dirty trick they
pulled by not working with FOSS on Java, and now with Oracle muddying up
the waters, the details of what Sun didn't do when they finally "open
sourced" Java are coming out. I am not ready to ditch it entirely, but
I am definitely looking at other alternatives. As far as Android goes,
I don't expect Oracle to win, and even if they do, I expect Google to
indemnify developers and users. But the whole business seems like a lot
of pain for little or no gain to me.
Later . . . Jim
John Alan Hastings wrote:
> I am setting up an Android SDK and am running into some fragility.
>
> I have set up Android with eclipse on one machine which is running
> Ubuntu 8.04 (LTS). This works smoothly and without a problem. This
> machine is heavy and not very portable.
>
> I bought a nice little Asus EeePC model 1018PS. 1.1 kg and a battery
> life in excess of 6 hours. I blew away Windows and installed Ubuntu
> 10.04. This machine is very light, very portable and will be a very
> good advertisement for Linux when it arrives on the customer's premises.
>
> If it works.
>
> Which it doesn't.
>
> I installed eclipse (Galileo) and android (the latest version, whatever
> it is, and the same one that is on the other machine). The JRE and JDK
> which they say is required came from the Ubuntu repository and both are
> present.
>
> Eclipse starts and runs, but when I try to install the android plugin, I
> start getting critical errors. The most frequent is:
>
> murrine_style_draw_box: assertion 'height >= -1' failed
>
> There must be a memory leak, because in fairly short order it crashes
> with an out of memory condition.
>
> Any ideas?
>
> Alan
>
> +--------------------------------------------------------------
> | A rock pile ceases to be a rock pile the moment a single man
> | contemplates it, bearing within him the image of a cathedral.
> | -- Antoine de Saint-Exupery
> +--------------------------------------------------------------
> Alan Hastings
> jah1066 at aol.com
> GnuPG/PGP Public key, 2010: 8C4489C4
>
> _______________________________________________
> CALUG mailing list
> CALUG at unknownlamer.org
> http://lists.unknownlamer.org/listinfo/calug
>
>
More information about the CALUG
mailing list