Building java error - Motorola Photon 4G

Hey is anyone building on Ubuntu 12.04 with java 7? I know I should be using java 6 so how can I downgrade?
Sent from my MB855

This will remove...
sudo rm /var/lib/dpkg/info/oracle-java7-installer* sudo apt-get purge oracle-java7
The ppa for java 6 is apparently broken so its not as easy as an apt-get command. You'll need to download the bin file, make it an executable, then install. You may wanna just try reinstalling Java 7. Dunno why your build is failing. Good luck.
Java 6 bin and install instructions...
http://www.devsniper.com/ubuntu-12-04-install-sun-jdk-6-7/

Related

[Q] java jre/jdk 1.5 on ubuntu 11.04

ok guys i have a little issue lol i've spent the last 2 days trying to build a froyo rom from source! I foolowed this guide exactly as it says to do (http://source.android.com/source/initializing.html) and when i get to the part of building the rom and to run 'make j4' (making the code i assume) it says that i do not have the correct version of java, says i have 1.6.0_20 and the correct version is 1.5..... so i spent all night trying to figure out how to get the 1.5 version, so my question is how do i get the correct version of java properly installed so i can finish the build? I have already pulled the rom from source so i have the neccessary files, but ubuntu wont let me build it without the proper java installed lol can someone please help??
First remove the current java - i assume with the command:
sudo apt-get --purge remove sun-java6-jdk
Then get the older java as follows:
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper main multiverse"
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper-updates main multiverse"
$ sudo apt-get update
$ sudo apt-get install sun-java5-jdk
if you ever want to make a gingerbread ROM then you will have to get the newer java back

Need Help Installing Android SDK in linux

O.k. I've tried the Linux forums ad so now I thought I would try here. I'm trying to install the Android SDK in Linux Mint 11 but I don't have the 32-bit libraries installed. Does anyone know how to install these libraries and the SDK? After that I think I can handle it from there.
Any help would be greatly appreciated.
http://developer.android.com/sdk/installing.html
For your 32-bit libs, see the Troubleshooting section.
I think that linux Mint is a ubuntu derivative, so the info is on here:
http://developer.android.com/sdk/installing.html
http://source.android.com/source/initializing.html
Here's the summary for the command line freaks (assuming that linux mint also uses apt-get/ubuntu packages- I haven't had the pleasure of installing linux mint (yet) so I can't say fo' sho')
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" (natty might work here too)
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk ia32-libs
download the linux sdk and untar - "tar xf android-sdk_...blah...blah...just hit tab for the command line completion....tgz"
Then cd into the android_sdk/tools folder and type "./android update sdk --no-ui"
then kick back and watch the magic happen. It will then download all the images files for every version of android from cupcake to the T2000. It might take a few hours, depending on your download speed.

[Q] sun-java6-jdk Ubuntu 11.10

It appears sun-java6-jdk has been removed from the Canonical repository. I added "http://archive.canonical.com/ lucid partner" to my sources, but the package is not there. Are there any alternative ways to install it?
There are quite plenty of ways actually:
1. Install from some ppa:
Code:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
2. Download bin package from oracle site, but that's not ubuntu-way.
3. This one i like the most: create your own packages
http://www.techytalk.info/latest-oracle-sun-java-jdk-and-jre-6-on-ubuntu-operating-systems/
and in any case, don't forget to
Code:
sudo update-alternatives --config java
inflim said:
There are quite plenty of ways actually:
1. Install from some ppa:
Code:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
2. Download bin package from oracle site, but that's not ubuntu-way.
3. This one i like the most: create your own packages
http://www.techytalk.info/latest-oracle-sun-java-jdk-and-jre-6-on-ubuntu-operating-systems/
and in any case, don't forget to
Code:
sudo update-alternatives --config java
Click to expand...
Click to collapse
It worked, Thank You!
No problem! Google rules

Problem installing SDK

I've put about 8 hours into this now.
I'm trying to install the Ubuntu Touch SDK as per instructions on this page. http://developer.ubuntu.com/get-started/gomobile/ I'm at step 2, and I'm trying to do the "Create a currency converter phone app. But I don't have the "applications" selection in Qt's new project. What am I missing?
Here's what I did.
Code:
sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-proper
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update
sudo apt-get install ubuntu-sdk notepad-qml
But QTcreator wouldn't start properly. I found out that i needed to also install libbotan* by reading some forums.
Code:
sudo apt-get install libbotan*
So now QTcreator starts and I'm ready to create a new project, but I'm missing the ability to create a new "application> Qt Quick UI" because I don't have the "application" option.
This is a fresh install of 64 bit Ubuntu 12.10 with just my video editing, and java development software added.
AdamOutler said:
I'm trying to install the Ubuntu Touch SDK as per instructions on this page. http://developer.ubuntu.com/get-started/gomobile/ I'm at step 2, and I'm trying to do the "Create a currency converter phone app. But I don't have the "applications" selection in Qt's new project. What am I missing?
Here's what I did.
Code:
sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-proper
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update
sudo apt-get install ubuntu-sdk notepad-qml
But QTcreator wouldn't start properly. I found out that i needed to also install libbotan* by reading some forums.
Code:
sudo apt-get install libbotan*
So now QTcreator starts and I'm ready to create a new project, but I'm missing the ability to create a new "application> Qt Quick UI" because I don't have the "application" option.
This is a fresh install of 64 bit Ubuntu 12.10 with just my video editing, and java development software added.
Click to expand...
Click to collapse
dim319 in this thread
http://forum.xda-developers.com/showthread.php?t=2161369&page=2
figured out how to build c++ programs and posted a link to his tutorial here
https://www.googledrive.com/host/0B5kDhuHYYcvwWDZpS0puZXhnZkk/ubuntu-sdk-dev-en.html
Maybe that will help?
That's not helpful or relevant. I'm trying to set up the SDK properly, not compile an app. That comes way later... I have to BUILD the app first and the options are not showing up to even create a new app properly.
Fixed with
Code:
sudo apt-get remove qtcreator
sudo apt-get purge qtcreator
sudo apt-get install qtcreator
Was having the same problem. Thanks Adam.
Sent from my Galaxy Nexus using Tapatalk 2
AdamOutler said:
Fixed with
Code:
sudo apt-get purge qtcreator
Click to expand...
Click to collapse
Thanks for this Adam... Good info sir...

[TIP] How to restore Ubuntu after python uninstall

Hello, I would like to share with you my little experience.
I had wrong python version for compiling android from source so I decided to reinstall it.
But I was such an idiot that I typed: sudo apt-get remove python
And it removed the part of my ubuntu, it was unuseable.
So here are my 3 golden advices:
1. Don't type that command: sudo apt-get remove python
2. If you want to update python just type sudo apt-get install python2.7 (v3 is not recommended for android compiling)
3. If you removed python but still you have access to terminal type those commands:
$ sudo apt-get install python
$ sudo apt-get install ubuntu-desktop
$ sudo reboot
Click to expand...
Click to collapse
It should restore your missing part of system (That's how I restored my Ubuntu 11.10) , you can loose some settings or small things but everything should be as before.

Categories

Resources