Solved

Java Libraries Errors trying to build android for the eee_701 platform

Posted on 2009-05-12
9
700 Views
Last Modified: 2013-11-21
Hi,

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

http://code.google.com/p/patch-hosting-for-android-x86-support/wiki/BuildAndroidForX86Platforms

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/
LSDocumentBuilderFactory.java:276: 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
warning
      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
0
Comment
Question by:marietto2008
  • 5
  • 3
9 Comments
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 500 total points
ID: 24370490
Hi,

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

http://groups.google.com/group/android-porting/browse_thread/thread/66862bdb52dac936

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.

Cheers,
K.

0
 
LVL 16

Expert Comment

by:ai_ja_nai
ID: 24372510
I did not see any errors in the excerpt you posted. I've seen only warnings. You should post all the compiling trace
0
 
LVL 2

Author Comment

by:marietto2008
ID: 24374392
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 ?



 
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24374437
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.


0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 2

Author Comment

by:marietto2008
ID: 24375105
I've removed JRE5 and it has been uninstalled JDK5 too. If I try to reinstall JDK5 I should reinstall JRE5,too.
0
 
LVL 2

Author Comment

by:marietto2008
ID: 24376544
and then ? what should I do ? I can't install sun-java5-jdk without to install sun-java5-jre,too.
0
 
LVL 2

Author Comment

by:marietto2008
ID: 24376557
you say : make sure that the path indicates JDK not JRE,which kind of path should I change ?
0
 
LVL 2

Author Closing Comment

by:marietto2008
ID: 31580788
10x
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24384959
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:
   PATH=/usr:/bin:/usr/bin:/usr/lib/java/bin

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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, people trade privacy and security for convenience. However in today's concrete jungle, this is an extremely foolish decision considering the vast amount of technologies being used against consumer interest. First off, I won't waste any time e…
A short article about a problem I had getting the GPS LocationListener working.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now