Eclipse for android on Debian Lenny
I have installed Eclipse on Debian Lenny after having installed java (apt-get install sun-java6-jre sun-java6-plugin sun-java6-jdk).
When I run Eclipse, I have the following message when it comes to selet the folder that will be used as the workspace:
GCJ has been detected as the current Java virtual machine.
Use of GCJ is untested and unsupported.
Please consult the documentation for more
I just ignored this message and go into "help" -> "software updates" to install android development tools. When I add "https://dl-ssl.google.com/android/eclipse/" to download the Developer tools, I got an error (see below) and the installation cannot go any further. Is that due to the Garbage Collector message I got above ?
Below are the error I got on the console from which I run eclipse:
lj:/home/luc# eclipse/eclipse
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
Error while logging event loop exception:
java.lang.OutOfMemoryError
<<No stacktrace available>>
Logging exception:
java.lang.OutOfMemoryError
<<No stacktrace available>>
GC Warning: Out of Memory! Returning NIL!
....
Thanks a lot for your help, Luc
Asked by: Julian190 | Posted: 25-01-2022
Answer 1
This message is your clue:
GCJ has been detected as the current Java virtual machine.
That means your system Java is still the GCJ version, not the Sun version.
If you don't need GCJ for other things, you can remove the package (apt-get remove
or apt-get purge
). This might break other dependencies though.
Otherwise, use update-alternatives
to configure which package supplies your java
and javac
commands:
update-alternatives --config java
update-alternatives --config javac
Answered by: Freddie899 | Posted: 26-02-2022
Similar questions
eclipse - Android Google Map Addon not available?
i am trying to display google map on Android refering to this tutorial
http://developer.android.com/resources/tutorials/views/hello-mapview.html
when i go to google website to download addon it says addons are not available kindly guide what should i do to achieve this??
eclipse - how to put Search on Google map in Android?
i am looking to put search on google map in android application can any one guide me how to achive this???
and want to display some text along with that perticular search location.
any help would be appriciated.
Eclipse launch error when trying to run an Android app
I'm trying to set up my workstation for Android development with Eclipse Galileo. I installed the latest ADT plugin and the Android SDK, but I get this error when I try to run any basic Android project I create.
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.pac...
java - Can't run JUnit 4 test case in Eclipse Android project
I am new to Java and am trying to run a unit test on a class I am writing. Eclipse (3.5) created the unit test class for me and added Junit4 to my class path.
My Class:
public class DistanceUtil
{
public static double metersToMiles( double meters )
{
return 0;
}
public static double metersToKilometers( double meters )
{
return 0;
}
}
My unit test:
publi...
JavaDoc in an Eclipse Android Project
In our Android project, our code is JavaDoc'd and that generates everything properly. However, any reference to the Android API classes/functions results in a JavaDoc error and a link to the relevant information is not generated. Instead we get plaintext class names. How can we set up Eclipse to turn these into links to the online Android API reference (preferably) or a local copy (if necessary)?
eclipse - Why doesn't logcat show anything in my Android?
Why doesn't logcat show anything in my Android (while developing apps with Eclipse)?
It just doesn't print anything. It's empty.
eclipse - Android Device Chooser -- device not showing up
I'm using Eclipse + ADT, and my physical device (listed below) is unlisted on Android Device Chooser. I have updated Eclipse and all of the Android packages. My phone is running Android OS 1.6, which corresponds to the target version listed in the Eclipse Project.
Also, the reason I decided to try testing on a real device is because the emulator doesn't seem to be working right anymore when I run my project. The e...
Which Eclipse for Android?
Should I use 32-bit Eclipse or 64-bit Eclipse for Android development? Im on a MacBook Pro (Core 2 Duo). Does it matter which version for Android coding?
eclipse - "Android 2.x" vs "Google APIs" for Android AVD Setup
In the Android AVD manager (or a new project for that matter), it will give two options for the same API level.
For example, for Level 7 (2.1) it will show "Google APIs - Level 7" and "Android 2.1 - Level 7" in the selection drop down.
What, if any, is the actual difference between these two and why would I want one over the other?
eclipse - Android Google Map Addon not available?
i am trying to display google map on Android refering to this tutorial
http://developer.android.com/resources/tutorials/views/hello-mapview.html
when i go to google website to download addon it says addons are not available kindly guide what should i do to achieve this??
eclipse - how to put Search on Google map in Android?
i am looking to put search on google map in android application can any one guide me how to achive this???
and want to display some text along with that perticular search location.
any help would be appriciated.
eclipse - Google Map does not display in Android?
i am trying to run google map tutorial using following link
http://mobiforge.com/developing/story/using-google-maps-android
followed all steps but when i try to run this application it does not display anything except boxes and zooming button
can any one guide is there any thing i am missing?? i have obta...
Eclipse launch error when trying to run an Android app
I'm trying to set up my workstation for Android development with Eclipse Galileo. I installed the latest ADT plugin and the Android SDK, but I get this error when I try to run any basic Android project I create.
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.pac...
java - Can't run JUnit 4 test case in Eclipse Android project
I am new to Java and am trying to run a unit test on a class I am writing. Eclipse (3.5) created the unit test class for me and added Junit4 to my class path.
My Class:
public class DistanceUtil
{
public static double metersToMiles( double meters )
{
return 0;
}
public static double metersToKilometers( double meters )
{
return 0;
}
}
My unit test:
publi...
JavaDoc in an Eclipse Android Project
In our Android project, our code is JavaDoc'd and that generates everything properly. However, any reference to the Android API classes/functions results in a JavaDoc error and a link to the relevant information is not generated. Instead we get plaintext class names. How can we set up Eclipse to turn these into links to the online Android API reference (preferably) or a local copy (if necessary)?
eclipse - Why doesn't logcat show anything in my Android?
Why doesn't logcat show anything in my Android (while developing apps with Eclipse)?
It just doesn't print anything. It's empty.
eclipse - Android Device Chooser -- device not showing up
I'm using Eclipse + ADT, and my physical device (listed below) is unlisted on Android Device Chooser. I have updated Eclipse and all of the Android packages. My phone is running Android OS 1.6, which corresponds to the target version listed in the Eclipse Project.
Also, the reason I decided to try testing on a real device is because the emulator doesn't seem to be working right anymore when I run my project. The e...
How to avoid Eclipse leaks on XServer when editing Android XML files?
When I'm editing XML files in Eclipse (mainly, Android layouts and so), it causes leaks on XServer and it ends eating all my RAM (4GB), so I have to Ctrl+Alt+Backspace to continue.
Do you know any remedy for that?
Which Eclipse for Android?
Should I use 32-bit Eclipse or 64-bit Eclipse for Android development? Im on a MacBook Pro (Core 2 Duo). Does it matter which version for Android coding?
Still can't find your answer? Check out these communities...
Android Google Support | Android Community | Android Community (Facebook) | Dev.io Android