"Unrecognized option: 9999999" build error

565 views
Skip to first unread message

Troy Bennett

unread,
Oct 22, 2008, 4:59:58 PM10/22/08
to android-platform
>~/mydroid$ make
build/core/product_config.mk:229: WARNING: adding test OTA key
host Java: clearsilver (out/host/common/obj/JAVA_LIBRARIES/
clearsilver_intermediates/classes)
Unrecognized option : 9999999
make: *** [out/host/common/obj/JAVA_LIBRARIES/
clearsilver_intermediates/javalib.jar] Error 41
>

any ideas?

Jiang, Kerry

unread,
Oct 22, 2008, 9:18:36 PM10/22/08
to android-...@googlegroups.com
It is caused by the Java environment in your machine.
Android requires at least Java5 with update 12. You can issue the command ' java -version' to check the version you are using first.

-Kerry

kapare

unread,
Oct 22, 2008, 9:53:25 PM10/22/08
to android-platform
Have the same error!

[kapare@vostro mydroid]$ $ANDROID_JAVA_HOME
bash: /usr/java/jdk1.6.0_07/: is a directory
[kapare@vostro mydroid]$ $JAVA_HOME
bash: /usr/java/jdk1.6.0_07/: is a directory
[kapare@vostro mydroid]$ make
build/core/product_config.mk:229: WARNING: adding test OTA key
host Java: clearsilver (out/host/common/obj/JAVA_LIBRARIES/
clearsilver_intermediates/classes)
Unrecognized option : 9999999
make: *** [out/host/common/obj/JAVA_LIBRARIES/
clearsilver_intermediates/javalib.jar] Error 41
[kapare@vostro mydroid]$ java -version
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK Server VM (build 1.6.0-b09, mixed mode)

Joe Onorato

unread,
Oct 22, 2008, 11:57:42 PM10/22/08
to android-...@googlegroups.com
Can you run "make showcommands" and post the results of that.  The showcommands option makes it print the commands that make is running.

-joe



2008/10/22 kapare <kevyn.alex...@gmail.com>

Jiang, Kerry

unread,
Oct 23, 2008, 12:38:10 AM10/23/08
to android-...@googlegroups.com

Yesterday I fixed the similar problem ( unrecog opt: 9999999, error 41) on my machine. I found out that even java – version showing Java 6 used, some other java programs like jar… linked to Java5 (I have multiple versions installed).  If you installed multiple versions in your machine, try to go to /usr/bin/ to see which version all java programs are using

 


kapare

unread,
Oct 23, 2008, 7:01:22 AM10/23/08
to android-platform



[kapare@vostro mydroid]$ make showcommands
build/core/product_config.mk:229: WARNING: adding test OTA key
host Java: clearsilver (out/host/common/obj/JAVA_LIBRARIES/
clearsilver_intermediates/classes)
for f in ; do if [ ! -f $f ]; then echo Missing file $f; exit 1; fi;
unzip -q $f -d out/host/common/obj/JAVA_LIBRARIES/
clearsilver_intermediates/classes; (cd out/host/common/obj/
JAVA_LIBRARIES/clearsilver_intermediates/classes && rm -rf META-INF);
done
javac -J-Xmx256m -target 1.5 -Xmaxerrs 9999999 -encoding ascii -g -
extdirs "" -d out/host/common/obj/JAVA_LIBRARIES/
clearsilver_intermediates/classes external/clearsilver/java-jni/
CS.java external/clearsilver/java-jni/CSFileLoader.java external/
clearsilver/java-jni/JNI.java external/clearsilver/java-jni/HDF.java
|| ( rm -rf out/host/common/obj/JAVA_LIBRARIES/
clearsilver_intermediates/classes ; exit 41 )
Unrecognized option : 9999999
make: *** [out/host/common/obj/JAVA_LIBRARIES/
clearsilver_intermediates/javalib.jar] Error 41

[kapare@vostro mydroid]$ ll -al /usr/bin/java
lrwxrwxrwx 1 root root 22 2008-06-09 17:54 /usr/bin/java -> /etc/
alternatives/java

[root@vostro ~]# alternatives --config java

There are 2 programs which provide 'java'.

Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java

Enter to keep the current selection[+], or type selection number:




On Oct 23, 12:38 am, "Jiang, Kerry" <kerry.ji...@intel.com> wrote:
> Yesterday I fixed the similar problem ( unrecog opt: 9999999, error 41) on my machine. I found out that even java - version showing Java 6 used, some other java programs like jar... linked to Java5 (I have multiple versions installed). If you installed multiple versions in your machine, try to go to /usr/bin/ to see which version all java programs are using
>
> ________________________________
> From: android-...@googlegroups.com [mailto:android-...@googlegroups.com] On Behalf Of Joe Onorato
> Sent: 2008年10月23日 11:58
> To: android-...@googlegroups.com
> Subject: Re: "Unrecognized option: 9999999" build error
>
> Can you run "make showcommands" and post the results of that. The showcommands option makes it print the commands that make is running.
>
> -joe
>
> 2008/10/22 kapare <kevyn.alexandre.p...@gmail.com<mailto:kevyn.alexandre.p...@gmail.com>>
>
> Have the same error!
>
> [kapare@vostro mydroid]$ $ANDROID_JAVA_HOME
> bash: /usr/java/jdk1.6.0_07/: is a directory
> [kapare@vostro mydroid]$ $JAVA_HOME
> bash: /usr/java/jdk1.6.0_07/: is a directory
> [kapare@vostro mydroid]$ make
> build/core/product_config.mk:229<http://product_config.mk:229>: WARNING: adding test OTA key
> host Java: clearsilver (out/host/common/obj/JAVA_LIBRARIES/
> clearsilver_intermediates/classes)
> Unrecognized option : 9999999
> make: *** [out/host/common/obj/JAVA_LIBRARIES/
> clearsilver_intermediates/javalib.jar] Error 41
> [kapare@vostro mydroid]$ java -version
> java version "1.6.0"
> OpenJDK Runtime Environment (build 1.6.0-b09)
> OpenJDK Server VM (build 1.6.0-b09, mixed mode)
>
> On Oct 22, 9:18 pm, "Jiang, Kerry" <kerry.ji...@intel.com<mailto:kerry.ji...@intel.com>> wrote:
>
> > It is caused by the Java environment in your machine.
> > Android requires at least Java5 with update 12. You can issue the command ' java -version' to check the version you are using first.
>
> > -Kerry
>
> > -----Original Message-----
> > From: android-...@googlegroups.com<mailto:android-...@googlegroups.com> [mailto:android-...@googlegroups.com<mailto:android-...@googlegroups.com>] On Behalf Of Troy Bennett
> > Sent: 2008年10月23日 5:00
> > To: android-platform
> > Subject: "Unrecognized option: 9999999" build error
>
> > >~/mydroid$ make
>
> > build/core/product_config.mk:229<http://product_config.mk:229>: WARNING: adding test OTA key

kapare

unread,
Oct 23, 2008, 7:09:21 AM10/23/08
to android-platform
So the problem was that alternatives was pointing somewhere else ;)

[root@vostro ~]# alternatives --install /usr/bin/java java /usr/java/
jdk1.6.0_07/bin/java 1
[root@vostro ~]# alternatives --config java

There are 3 programs which provide 'java'.

Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
3 /usr/java/jdk1.6.0_07/bin/java

Enter to keep the current selection[+], or type selection number: 3
[root@vostro ~]# alternatives --config java

There are 3 programs which provide 'java'.

Selection Command
-----------------------------------------------
* 1 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
+ 3 /usr/java/jdk1.6.0_07/bin/java

Enter to keep the current selection[+], or type selection number:

[kapare@vostro mydroid]$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)

Thx a lot!

kap

kapare

unread,
Oct 23, 2008, 7:47:02 AM10/23/08
to android-platform
Same problem with javac and jar!

Also javah, javadoc, if other pop I will add those but for now it is
compiling ;)

HOWTO :::
[root@vostro ~]# alternatives --config javac

There is 1 program that provides 'javac'.

Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/java-1.5.0-gcj/bin/javac

Enter to keep the current selection[+], or type selection number:
[root@vostro ~]# alternatives --install /usr/bin/javac javac /usr/java/
jdk1.6.0_07/bin/javac 1
[root@vostro ~]# alternatives --config javac

There are 2 programs which provide 'javac'.

Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/java-1.5.0-gcj/bin/javac
2 /usr/java/jdk1.6.0_07/bin/javac

Enter to keep the current selection[+], or type selection number: 2
[root@vostro ~]# javac -version
javac 1.6.0_07

[root@vostro ~]# alternatives --install /usr/bin/jar jar /usr/java/
jdk1.6.0_07/bin/jar 1
[root@vostro ~]# alternatives --config jar

There is 1 program that provides 'jar'.

Selection Command
-----------------------------------------------
*+ 1 /usr/java/jdk1.6.0_07/bin/jar

Enter to keep the current selection[+], or type selection number:

[root@vostro ~]# alternatives --install /usr/bin/javah javah /usr/java/
jdk1.6.0_07/bin/javah 1
[root@vostro ~]# alternatives --config javah

There is 1 program that provides 'javah'.

Selection Command
-----------------------------------------------
*+ 1 /usr/java/jdk1.6.0_07/bin/javah

Enter to keep the current selection[+], or type selection number:

[root@vostro ~]# alternatives --install /usr/bin/javadoc javadoc /usr/
java/jdk1.6.0_07/bin/javadoc 1
[root@vostro ~]# alternatives --config javadoc

thx

Troy Bennett

unread,
Oct 23, 2008, 4:43:19 PM10/23/08
to android-platform
Thanks for the help, got it to compile fine. On Ubuntu the command is
update-alternatives.

kapare

unread,
Oct 29, 2008, 8:30:26 AM10/29/08
to android-platform
Hi

I think we could have done it simply by removing java from alternative
and fixing the PATH properly.

But didn't try

I'm happy to help

kap
Reply all
Reply to author
Forward
0 new messages