The scripts for some reason (multiple reasons actually) have stopped working, first it was the syntax highlighting that the editor I was using that was causing issues, now it looks to be the characters used for the caragereturn that is fouling things up. I've tomorrow off and will get to correcting the issues and the spelling in this response (on my phone right now on lunch) and let you know when it's been fixed.BearFather wrote:Been looking at this post for about a month and finally decided to plunge in and get this to work. I got Linux installed, and working(awesome I'm a Linux nut). So been playing in that got it all fined tuned to my liking.
So went to try to get java installed, with your tutorial and scripts. And hit a few problems.
First off this is on a ASUS MeMo Pad HD7, with Debian squeeze install from Debian kit.
Running the script I get:
root@android-6e239197478b51b2:/home/bearfather# ./JavaARM_Installer_now_with_jApps.sh
: No such file or directoryh_jApps.sh: line 1: #!/bin/bash
you can update this script from the following link
https://docs.google.com/document/d/1uLe ... cslist_api
As Always happy hacking and modding
and the author can be contacted through
Google at Michael NA and
XDA at S0AndS0
for any help or concerns
: command not found_now_with_jApps.sh: line 9: {
________________________________
This script is written in the hopes that it will be found useful
use it to install Java 7 from source on ARM Linux systems
You're about to install Java 7 soft float
Are you sure? [Y/n]Y
': not a valid identifierith_jApps.sh: line 16: read: `response
'/JavaARM_Installer_now_with_jApps.sh: line 17: syntax error near unexpected token `in
'/JavaARM_Installer_now_with_jApps.sh: line 17: `case "$response" in
So knowing some bash I look at your script and see it's banging out on the first case. So I comment out the yes or no cause I want to run this. Then I get this...
root@android-6e239197478b51b2:/home/bearfather# ./JavaARM_Installer_now_with_jApps.sh
: No such file or directoryh_jApps.sh: line 1: #!/bin/bash
you can update this script from the following link
https://docs.google.com/document/d/1uLe ... cslist_api
As Always happy hacking and modding
and the author can be contacted through
Google at Michael NA and
XDA at S0AndS0
for any help or concerns
: command not found_now_with_jApps.sh: line 9: {
________________________________
This script is written in the hopes that it will be found useful
use it to install Java 7 from source on ARM Linux systems
You're about to install Java 7 soft float
: command not found_now_with_jApps.sh: line 27: }
You are root.
Your home directory is /root.
If you are reading this message,
critical environmental variables have been set.
creating a list of packages to install to your system
creating a list of alternatives to install for JDK tools to your system
Creating script to compile the JRE/JDK description file named .java-7-oracle.jinfo to use with update-java-alternatives
Now writing Java7_Activator
./JavaARM_Installer_now_with_jApps.sh: line 517: warning: here-document at line 234 delimited by end-of-file (wanted `EOF')
: No such file or directory
root@android-6e239197478b51b2:/home/bearfather#
I even tried messing with the first line cause it's popping out a weird error on #!/bin/bash.
In the mean time, as you're a Linux nut, if you pull up the script in a text editor you can try manually entering the commands line by line sorry that after a month you've got errors.
I'm glad that root and dual booting didn't cause any issues and on the positive side of news I've been working on an android app to make things easier... provided that I don't make errors like in the install script
Update; after some reworking the punctuation (looks like that's one issue) I think this script should work. I've tested on my myTouch and it seems to work, I'm now downloading from the following link and testing on another device
https://app.box.com/s/vp8rhwoslfz8kut2weye
I'll update in a few minutes with if it works.
Update: on my other device, a Sero 7" pro, the SD (either) can't be read by a normal Linux user so I made some further modifications and uploaded another version
https://app.box.com/s/jj4b2ofwugz58dczfgxu
Note though; this version is for Java version 7u45 soft float and I had to move the tar to a folder that could be seen by a normal Linux user "/$HOME/ADev" all the editing between these two versions happens between lines 190-203 and it should be easy to see where you'll want to edit yours so that the script points to the correct version and folder. I'm going to kick on my PC and clean up this post some; let me know if you run into more errors please.
Edit: Corrected some of the spelling in response and added this following note on how to use the new installer scripts. This script (both of the new ones) are a bit different than the ones previous, they will prompt for more than just maptools installation. So for maptools first choose option "1" and complete the installation of Java from source then re-run the ARM_Modder script to choose the option that corresponds to Maptools to run that script... oh and be sure to use the "download" button when getting any of these scripts from drop box because the syntax highlighting that is in the preview will carry over if you just copy past from the web view. Also be sure to run these scripts from within the linux file structure "$HOME/somefolder" because you'll need to give them permission to execute, this is because of the Android OS preventing certain permissions on folders/files on "external" memory.
so step one though n
1. donwnload from one of the above links
2. copy over to a folder Linux can manipulate
3. set permissions to execute
4. run in terminal window on Linux (I prefer a normal Linux user over using root)
5. choose yes a few times and "1" for installing Java
6. re-run script and choose option "2" for installing Maptools
7. Run maptools and enjoy
~ if the version of java you have is different then change the lines referring to the version by opening with leefpad on Linux and use the "Replace" option to search for "7u21" or "7u45" and change to the version that corresponds to the version that you've downloaded.
~ if you're Linux user can't find the Java tar file then edit line "193" where it says "$HOME/ADev" or "/sdcard/download" and change it to mach where the tar file was downloaded. Sometimes moving the tar file to the Linux "home" directory and changing that line to point there will solve all problems with the script not finding the file correctly.
Update: the option "2" looks to be still broken but I have downloaded and extracted the latest version of maptools and can confirm that option "1" did indeed install Java correctly so for the mean time just install maptools manually and run the jar file within with "java -jar /home/user/maptools(version).jar" and it should work just fine.