Hi,

Just in case, try:

sudo update-alternatives --config java

Same command for javac and javadoc, and check if your default java SDK
is the one from your installed package (sun-java5-jdk)

Good luck, kr

2009/5/4, nail <[email protected]>:
>
> dear Mike
>
> what is the real package name of "java 1.5." in ubuntu system ?
>
> the java version in my ubuntu build host is "sun-java5-jdk"
>
> On 5月1日, 下午1時17分, DrMike <[email protected]> wrote:
>> You need to use java 1.5.
>>  -Mike
>>
>> On Apr 28, 10:13 pm, nail <[email protected]> wrote:
>>
>>
>>
>> > dear all,
>>
>> > i try to generate the pdk_docs target using following command to
>>
>> > generate the document of android
>>
>> > ==========================================
>> > make pdk pdk_docs dist DIST_DIR=dist 2>&1 | tee logs/`date +%y%m%d-%H%M
>> > %S`
>> > ==========================================
>>
>> > and my java version is "sun-java5-jdk"
>>
>> > but it happens compile error below:
>>
>> > =======================
>>
>> > javadoc: error - In doclet class DroidDoc,  method start has thrown an
>> > exception java.lang.reflect.InvocationTargetException
>> > java.lang.RuntimeException: ParseError: [development/pdk/ndk/../../../
>> > out/target/product/generic/obj/PACKAGING/pdkdocs_intermediates/docs/
>> > header.cs:1] Undefined macro called: custom_masthead()
>> >         at org.clearsilver.CS._parseFile(Native Method)
>> >         at org.clearsilver.CS.parseFile(CS.java:58)
>> >         at ClearPage.write(ClearPage.java:120)
>> >         at ClearPage.write(ClearPage.java:74)
>> >         at DroidDoc.writeDirectory(DroidDoc.java:525)
>> >         at DroidDoc.writeHTMLPages(DroidDoc.java:547)
>> >         at DroidDoc.start(DroidDoc.java:209)
>> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >         at sun.reflect.NativeMethodAccessorImpl.invoke
>> > (NativeMethodAccessorImpl.java:39)
>> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke
>> > (DelegatingMethodAccessorImpl.java:25)
>> >         at java.lang.reflect.Method.invoke(Method.java:585)
>> >         at com.sun.tools.javadoc.DocletInvoker.invoke
>> > (DocletInvoker.java:269)
>> >         at com.sun.tools.javadoc.DocletInvoker.start
>> > (DocletInvoker.java:143)
>> >         at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
>> >         at com.sun.tools.javadoc.Start.begin(Start.java:128)
>> >         at com.sun.tools.javadoc.Main.execute(Main.java:41)
>> >         at com.sun.tools.javadoc.Main.main(Main.java:31)
>> > 1 error
>> > make: *** [out/target/common/docs/online-pdk-timestamp] Error 45
>>
>> > ================
>>
>> > does any body has idea about this issue ?- 隱藏被引用文字 -
>>
>> - 顯示被引用文字 -
> >
>


-- 
Daniel Baeyens
Warp Networks S.L. - http://www.warp.es

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to