Hi,
I am trying to build Android FS (eclair AOSP) on a Ubuntu server where
I don't have sudo permissions. So I downloaded JDK 1.5 from Sun and
installed it on my file system (e.g. ~/java).
I am setting the following env var before building (based on this
discussion
http://ubuntuforums.org/showthread.php?t=253530)
export JDK_HOME=~/java/jdk1.5.0_22
export PATH=$JDK_HOME/bin/:$JDK_HOME/jre/bin:$PATH
export MANPATH=${MANPATH}:$JDK_HOME/man/
export JAVA_HOME=$JDK_HOME
I have all kind of errors like these:
build/tools/droiddoc/src/DroidDoc.java:1000: cannot find
symbol
symbol : class
ClassDoc
location: class
DroidDoc
ClassDoc classDoc = (ClassDoc)
doc;
^
build/tools/droiddoc/src/DroidDoc.java:1009: cannot find
symbol
symbol : class
ClassDoc
location: class
DroidDoc
ClassDoc current =
classDoc;
^
build/tools/droiddoc/src/DroidDoc.java:1040: cannot find
symbol
symbol : class
Doc
location: class
DroidDoc
if ((entry instanceof Doc) && isHidden((Doc) entry))
{
^
build/tools/droiddoc/src/DroidDoc.java:1040: cannot find
symbol
symbol : class
Doc
location: class
DroidDoc
if ((entry instanceof Doc) && isHidden((Doc) entry))
{
^
build/tools/droiddoc/src/DroidDoc.java:1080: cannot find
symbol
symbol : class
Type
location: class
DroidDoc.HideHandler
if (proxy instanceof Type && methodName.equals
("toString"))
{
^
Note: Some input files use unchecked or unsafe
operations.
Note: Recompile with -Xlint:unchecked for
details.
136
errors
After settings the env var, I have the following Java install:
$ java -version
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) Server VM (build 1.5.0_22-b03, mixed mode)
If I don't set the env variables, I have this:
$ java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode)
Is there a way I can configure my server (without root privileges) so
that I can build Android with Java installed in a non standard
location?
thanks