Hi guys. I have trouble with installing Java JDK 5 on Ubuntu 11.04. It's necessary for custom ROM development, so I really need it. I've had it installed before, but I had to format my Ubuntu partition and I lost it. I've followed all the steps, but there's an error telling that the sources are missing. Any ideas guys? It's very important, so please help!
Thanks in advance!
Did you add Path variables?
PATH=$PATH:/path/to/executables
Are you using OpenJDK or Oracle JDK.
Ubuntu comes with OpenJDK by default so if you want the Oracle version go to their website. Download JDK 5 extract the JDK then add the Path variables to the executable folder.
Also make sure you get the self-extracting download and not the rpm download.
en4bz said:
Did you add Path variables?
PATH=$PATH:/path/to/executables
Are you using OpenJDK or Oracle JDK.
Ubuntu comes with OpenJDK by default so if you want the Oracle version go to their website. Download JDK 5 extract the JDK then add the Path variables to the executable folder.
Also make sure you get the self-extracting download and not the rpm download.
Click to expand...
Click to collapse
Thanks for the info! Will definitely try this.
en4bz said:
Did you add Path variables?
PATH=$PATH:/path/to/executables
Are you using OpenJDK or Oracle JDK.
Ubuntu comes with OpenJDK by default so if you want the Oracle version go to their website. Download JDK 5 extract the JDK then add the Path variables to the executable folder.
Also make sure you get the self-extracting download and not the rpm download.
Click to expand...
Click to collapse
Where's JDK 5? I can't see it.
Sent from my GT540 using XDA App
I just had to install an Ubuntu machine for the same reason: to build AOSP from source and I couldn't do in in my preferred environment, Gentoo (JDK5 is officially dropped from Gentoo due to security issues).
Ubuntu didn't have any qualms about installing JDK5. Just ran:
sudo apt-get install sun-java5-jdk
then followed the instructions here:
http://source.android.com/source/initializing.html
Gene Poole said:
I just had to install an Ubuntu machine for the same reason: to build AOSP from source and I couldn't do in in my preferred environment, Gentoo (JDK5 is officially dropped from Gentoo due to security issues).
Ubuntu didn't have any qualms about installing JDK5. Just ran:
sudo apt-get install sun-java5-jdk
then followed the instructions here:
http://source.android.com/source/initializing.html
Click to expand...
Click to collapse
Thanks a lot! I successfully installed Java JDK5 on my Ubuntu!
Related
I installed linux just to help with the android development, now what?
same basic process as with windows, download the Android SDK from the dev site, and follow the directions on the site. If you have Ubuntu just use the software explore to get/install Java JDK, and Eclipse. From eclipse install android plugin, and then android components
you can add the Android/tools folder to Path if you so desire as well (for ADB), I believe that is also on the dev site.
have a bootcd for Kubuntu 9 Carmic Koala.
is there a how-to for rooting from the bootcd without installing anything?
check the how to root the htc aria topic. the same rules apply with a linux live cd and linux install.
heres a link.
http://forum.xda-developers.com/showthread.php?t=714250
Read the post because it states for the prerequisites: "If you're in Linux, you only need to do Step 4, Step 6, and Step 7." then follow the rest of the guide.
your going to need the android sdk for linux though so you can adb to the device.
jasonyump said:
your going to need the android sdk for linux though so you can adb to the device.
Click to expand...
Click to collapse
any directions on how it is applied in a BOOTCD only system where nothing is changed on system?
ie. where downloaded? how installed? where?
yes, I read the post previously but there is a dearth of information on how-to for linux, yet many posts recommend doing the rom flash/root in linux
You just download the sdk. There are no drivers for your phone for linux. I used an ubuntu x86 cd and when you run adb for the first time it installs the service and you just go from there.
pySignare
"-to sign"
v1.0
Version 1.0
Complete re-write into python.
Prerequisites
Windows (for now)
Java
Get Java here --> https://www.java.com/en/download/
Python 3.x
Get 3.3.4 here --> http://www.python.org/download/releases/3.3.4/
Instructions
Download
Extract
Copy Unsigned APKs Into "UnsignedApks"
Run "pySignare.py"
Follow On-Screen Prompts
Thats It
Future Development
Make X-Platform - (Shouldn't be too hard)
Minor code tidy up
Currently its bundled with TestExample.apk (just an empty renamed zip) so it can be tested straight away.
DOWNLOAD HERE (Download ZIP - Right hand side)
Please post your experience, and if you encounter any errors, let me know and I'll attempt to fix.
FAQ
Q. I get the error - 'java' is not recognized as an internal or external command, operable program or batch file.
A. You either, do not have the Java installed or have not added java to your PATH in Environment Variables. Either install Java or add Java to your PATH.
Thanks dude.
Any feedback, problems or suggestions?
wow it works! Easy to use! thanks!
Thank you.
Are there any Linux wizards out there who can help me port this?
New version 0.3 available.
tried it all i get is cannot find specified path
edit: forget that i fixed it had to modify the it as im using jdk 1.7.0
I don't know why I changed it, but in v0.3 it assumes you have installed the Java Development Kit (JDK) on a 64bit system (it mirrors my system rather than a universal approach).
If you have java added to your windows PATH, try using these files, just extract these to the same directory and run these instead.
works great! small suggestion is for the batch file to ask for the location of your jdk.
also have error checking as the batch said it worked but didnt at first (due to the location of the jdk)
andyharney said:
I don't know why I changed it, but in v0.3 it assumes you have installed the Java Development Kit (JDK) on a 64bit system (it mirrors my system rather than a universal approach).
If you have java added to your windows PATH, try using these files, just extract these to the same directory and run these instead.
Click to expand...
Click to collapse
I am using a 64 bit system I have jdk on both program files 64 bit and (x86) and the path in the test keys ran to jdk 1.6.0_25(x86) so I used notepad ++ edit it to 1.7.0(x86) tried again it signed and zipalinged no problem
Sent from my Desire HD using XDA App
Your right, I wrote this quickly to fulfil my needs on my system.
I will update to v0.4 with error checking & JDK checking soon.
Thanks for the suggestion.
EDIT: Seems you beat me to the reply leith. If your JDK is added to your windows path then it shouldnt matter whether its 32 or 64 bit. When I updated from v0.2 to v0.3 I used my personal build rather than the universal "java" approach. I can see that as explicit paths are specified in the .bat. v0.4 will add error checking and will most probably include a stripped out java package.
awesome! keep up the good work dude
andyharney said:
DOWNLOAD HERE
Click to expand...
Click to collapse
unable to dl now: Fatal error: Method ExceptionDisplay::__toString() must not throw an exception in /home/aharney/public_html/index.php on line 644
?
Try using a different browser, that error is quite rare and unique to certain localised versions of windows + firefox.
Version 0.4 now out.
Flawless victory brilliant Andy
im no stranger to signing apks
both of us know this tool is the best
better than any other signtool
never gonna give this up
not gonna desert this tool...
I saw what you did there. Version 0.5 will replace icon.png in every apk with a png of his face.
I can't download the file
Forbidden
You don't have permission to access /index.php on this server.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Click to expand...
Click to collapse
Yeah, I had to take the site down again. Been hit with 2 DDoS attacks in the last 3 days. I don't know why.
I will have it back up at some point tonight. I will PM you when its back up.
If you are like me you are tired of reformatting to have to type in a long mess of stuff just to use adb well I have simplified it in a small sh file. It installs all the applications according to Android's website. I even updated the application names to the ones which Ubuntu 11.10 64-bit recognizes. It's an initial release feel free to modify.
Extract all files to your HOME dir, edit the username in phones.rules and execute in terminal
Find the most recent version on github (Link in my Signature)
Download initial release here : https://github.com/elginsk8r/build_env/zipball/master
elginsk8r said:
If you are like me you are tired of reformatting to have to type in a long mess of stuff just to use adb well I have simplified it in a small sh file. It installs all the applications according to Android's website. I even updated the application names to the ones which Ubuntu 11.10 64-bit recognizes. It's an initial release feel free to modify.
Extract all files to your HOME dir, edit the username in phones.rules and execute in terminal
Find the most recent version on github (Link in my Signature)
Download initial release here : megaupload dot com ?d=QJ1VLJIL[/url]
Click to expand...
Click to collapse
gr8 idea how to run it on windows7??
doomhammer07 said:
gr8 idea how to run it on windows7??
Click to expand...
Click to collapse
You can't compile on windows, you need a linux distro or mac to do so!
cdesai said:
You can't compile on windows, you need a linux distro or mac to do so!
Click to expand...
Click to collapse
Or a Linux distro running as a VirtualBox VM under Windows.
a change to your script...line 14
cd ~/sdk/tools
should be changed to
cd ~/android-sdk-linux/tools
anyone could probably figure it out but for those in need and confused..
Can someone repost this script? Some sort of FBI warning on megaupload atm.
I'll reupload when I get home tonight with updated version
Sent from my HTC Glacier using XDA
link has been updated. Thanks JKILO for pointing that out I must have overlooked that one.
hey there!
is there a possibility to get this script anywhere?
the link to github is dead and i can't find it elsewhere...
would be really cool!
greetz n thx,
sUsH
Hi, i'm having troubles to open the SDK manager. I have Windows 7 64-bit and i Installed de jdk 1.7.0_25 64-bit. This are the solutiones i've tried but with no success:
Installing SDK in c:\
Adding JAVA_HOME enviroment variable to the system pointing to jdk1.7.0_25
Adding JDK_HOME pointing the same place...
adding c:\program files.....jdk...\bin; to Path in enviroment variables
Editing few lines of android.bat file like:
Code:
set java_exe=
call lib\find_java.bat
if not defined java_exe goto :EOF
to
Code:
set java_exe="c:\Program Files\Java\jdk1.7.0_25\bin\java.exe"
Downloading the version that comes with eclipse... same results..
Finally i tried with Android Studio but when i try to open SDK Manager inside this program it comes an error that say:
ERROR: No suitable Java found. In order to properly use the Android Developer
Tools, you need a suitable version of Java JDK installed on your system.
We recommend that you install the JDK version of JavaSE, available here:
http://www.oracle.com/technetwork/java/javase/downloads
If you already have Java installed, you can define the JAVA_HOME environment
variable in Control Panel / System / Avanced System Settings to point to the
JDK folder.
You can find the complete Android SDK requirements here:
http://developer.android.com/sdk/requirements.html
As it writes you this
ERROR: No suitable Java found. In order to properly use the Android Developer
Click to expand...
Click to collapse
maybe it wants 32-bit Java for you 64-bit system anyway?
Like an obvious hint: Try 32-bit Eclipse 32-bit Java and 32-bit ADT plugin in you system. It should work.