Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,529 Members 40,400 Now Online
XDA Developers Android and Mobile Development Forum

PAC Building Error.

Tip us?
 
Uzayr
Old
#11  
Uzayr's Avatar
Senior Member - OP
Thanks Meter 420
Posts: 364
Join Date: Mar 2013
Location: Chennai
Quote:
Originally Posted by MasterAwesome View Post
Try syncing your repository..

And try

Sudo updates-alternatives --config java

And two me output

Regards
MasterAwesome
i got OpenJDK 6 & 7 and i switch between them when i have to.

Code:
android@builduntu:~$ sudo update-alternatives --config java
[sudo] password for android: 
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      auto mode
  1            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      manual mode
  2            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      manual mode

Press enter to keep the current choice[*], or type selection number:
and syncing is fine..i just did a re-sync again.
 
MasterAwesome
Old
#12  
MasterAwesome's Avatar
Senior Member
Thanks Meter 677
Posts: 1,049
Join Date: Jun 2013
Quote:
Originally Posted by Uzayr View Post
i got OpenJDK 6 & 7 and i switch between them when i have to.

Code:
android@builduntu:~$ sudo update-alternatives --config java
[sudo] password for android: 
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      auto mode
  1            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      manual mode
  2            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      manual mode

Press enter to keep the current choice[*], or type selection number:
and syncing is fine..i just did a re-sync again.
There's your error you need sun java.. Oracle JDK 1.6 others are not supported.

Regards
MasterAwesome
“Be yourself; everyone else is already taken.”― Oscar Wilde
 
Uzayr
Old
#13  
Uzayr's Avatar
Senior Member - OP
Thanks Meter 420
Posts: 364
Join Date: Mar 2013
Location: Chennai
Quote:
Originally Posted by MasterAwesome View Post
There's your error you need sun java.. Oracle JDK 1.6 others are not supported.

Regards
MasterAwesome
i had previously Oracle jdk 1.6 when i started this build. but after these errors i switched to open jdk.

oracle jdk 7 breaks my java installation.
 
MasterAwesome
Old
(Last edited by MasterAwesome; 30th May 2014 at 05:55 PM.)
#14  
MasterAwesome's Avatar
Senior Member
Thanks Meter 677
Posts: 1,049
Join Date: Jun 2013
Quote:
Originally Posted by Uzayr View Post
i had previously Oracle jdk 1.6 when i started this build. but after these errors i switched to open jdk.

oracle jdk 7 breaks my java installation.
yeah you're not supposed to use jdk 7 for now android supports only jdk 1.6_45 :/

first, extract jdk 1.6.bin to your /usr/lib/jvm
and you're supposed to update-configurations for each java binary
rename the .txt attched to .sh and make it runnable by using chmod a+x filename and run it.. you'll get options choose sun java 1.6 and click update. this will make it work.
Attached Files
File Type: txt update-java-0.5b.sh.txt - [Click for QR Code] (6.6 KB, 7 views)
“Be yourself; everyone else is already taken.”― Oscar Wilde
The Following User Says Thank You to MasterAwesome For This Useful Post: [ Click to Expand ]
 
Uzayr
Old
#15  
Uzayr's Avatar
Senior Member - OP
Thanks Meter 420
Posts: 364
Join Date: Mar 2013
Location: Chennai
Quote:
Originally Posted by MasterAwesome View Post
yeah you're not supposed to use jdk 7 for now android supports only jdk 1.6_45 :/

first, extract jdk 1.6.bin to your /usr/lib/jvm
and you're supposed to update-configurations for each java binary
rename the .txt attched to .sh and make it runnable by using chmod a+x filename and run it.. you'll get options choose sun java 1.6 and click update. this will make it work.
i'll try it out and let you know, ASAP
thank you
 
MasterAwesome
Old
#16  
MasterAwesome's Avatar
Senior Member
Thanks Meter 677
Posts: 1,049
Join Date: Jun 2013
Quote:
Originally Posted by Uzayr View Post
i'll try it out and let you know, ASAP
thank you
ASAP=as slow as possible?

Jk :P

Regards
MasterAwesome
“Be yourself; everyone else is already taken.”― Oscar Wilde
 
Uzayr
Old
#17  
Uzayr's Avatar
Senior Member - OP
Thanks Meter 420
Posts: 364
Join Date: Mar 2013
Location: Chennai
Quote:
Originally Posted by MasterAwesome View Post
ASAP=as slow as possible?

Jk :P

Regards
MasterAwesome
lol,

alright...i get the same error when using Oracle's Java 6

Code:
android@builduntu:~$ java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
android@builduntu:~$ javac -version
javac 1.6.0_45
android@builduntu:~$
 
MasterAwesome
Old
#18  
MasterAwesome's Avatar
Senior Member
Thanks Meter 677
Posts: 1,049
Join Date: Jun 2013
Quote:
Originally Posted by Uzayr View Post
lol,

alright...i get the same error when using Oracle's Java 6

Code:
android@builduntu:~$ java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
android@builduntu:~$ javac -version
javac 1.6.0_45
android@builduntu:~$
Okay send me the build/core/java.mk I'll check it

Regards
MasterAwesome
“Be yourself; everyone else is already taken.”― Oscar Wilde
 
Uzayr
Old
#19  
Uzayr's Avatar
Senior Member - OP
Thanks Meter 420
Posts: 364
Join Date: Mar 2013
Location: Chennai
Quote:
Originally Posted by MasterAwesome View Post
Okay send me the build/core/java.mk I'll check it

Regards
MasterAwesome
I have attaches
Attached Files
File Type: zip java.mk.zip - [Click for QR Code] (5.6 KB, 3 views)

Tags
build, errors, java, local_sdk_version, pac
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes