Java Libraries Errors trying to build android for the eee_701 platform


I'm trying to build android for the eee_701 platform using these instructions :

After building most of the code I get an error related to java librares.  Any clue?

I'm using Ubuntu 9.04 with VMware.

dalvik/libcore/dom/src/test/java/org/w3c/domts/ warning: non-varargs call of
varargs method with inexact argument type for last parameter;
cast to java.lang.Object for a varargs call
cast to java.lang.Object[] for a non-varargs call and to suppress this
      Object domRegistry = newInstanceMethod.invoke(null, null);
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
22 warnings
make: *** [out/target/common/obj/JAVA_LIBRARIES/core-
tests_intermediates/classes-full-debug.jar] Error 41
Who is Participating?
Kerem ERSOYPresidentCommented:

Here's another link on how-to build. Please note the various versions for gcc etc. too.

What Java version you're using?  If you're using JRE switch to JDK. If you're using JDK6 Please uninstall and grab a JDK 1.5 instead.

If you can not succeed with Ubuntu 9.04 go grab Ubuntu 8.04 LTS instead.


I did not see any errors in the excerpt you posted. I've seen only warnings. You should post all the compiling trace
marietto2008Author Commented:
the disk space on the partition was ended. Now I've elnarged it. I'm using sun-java5-jdk and sun-java5-jre,what should I do ?

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Kerem ERSOYPresidentCommented:
ok now that you've expanded your partition remove the JRE5 if you've instaleld both or make sure that the path indicates JDK not JRE.

Try to recompile. What happens now ? Let me know.

marietto2008Author Commented:
I've removed JRE5 and it has been uninstalled JDK5 too. If I try to reinstall JDK5 I should reinstall JRE5,too.
marietto2008Author Commented:
and then ? what should I do ? I can't install sun-java5-jdk without to install sun-java5-jre,too.
marietto2008Author Commented:
you say : make sure that the path indicates JDK not JRE,which kind of path should I change ?
marietto2008Author Commented:
Kerem ERSOYPresidentCommented:
Oh sorry I'm just back:

- JDK will setup jre too. there's no problem with that.
- What to set is:
-  export  the variable called JAVA_HOME= such as
    export JAVA_HOME=/usr/lib/java/bin  (not /usr/lib/java/jre/bin ) !
-  add /usr/lib/java/bin to your path. Such as:

To make these permanent you need to put them in .profile. If you want to make them system wide put it in /etc/profile

I am assuming that your jaca is installed under a path like : /usr/java/jdk1.5.0_18
and there's a symbolic link to /usr/lib/java to that directory. So that as your versions change you won't need  to modify your path and JAVA_HOME statements.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.