[Q] Java 7: OpenJDK vs Oracle for Lollipop ROM compiling - Shield Tablet Q&A, Help & Troubleshooting

Hi, Iḿ trying to compile wx_un_do from 5.0.1 source and I have realized that when launch "lunch" command to prepare compilation (rel-st8-l-r2-partner) it needs OpenJDK instead Oracle... Is this ok?
Thnx!

I use OPENJDK, ye. I was confused too. First I had Java 8 and it errors out on me, then I uninstall that and tried Java 7 to no avail, finally kept Java 7 but installed OPENJDK and commented out a line in my build script. Whatever the error it is you're getting, paste the whole thing here.

berryman13 said:
I use OPENJDK, ye. I was confused too. First I had Java 8 and it errors out on me, then I uninstall that and tried Java 7 to no avail, finally kept Java 7 but installed OPENJDK and commented out a line in my build script. Whatever the error it is you're getting, paste the whole thing here.
Click to expand...
Click to collapse
I have compiled the entire ROM with OpenJDK without errors, so I suppose Nvidia prefers this Java version... Any known remarkable difference with Oracle JDK... ???
Thnx.

entelekia said:
I have compiled the entire ROM with OpenJDK without errors, so I suppose Nvidia prefers this Java version... Any known remarkable difference with Oracle JDK... ???
Thnx.
Click to expand...
Click to collapse
It's not a painus in the anus to get your android build machine switched over any more, with nvidia anyways.
I find nothing wrong with OpenJDK, especially for these purposes.

Related

"Help" With Creating Rom.

Hello Guys,, Im Going 2 Install Linux " Ubuntu 9.10 " And i wanted 2 know if is that ( operating system ) the 1 i need for making rom's and such.
And if so then could anyone help me with the steps on how to create a rom.
im really getting serious about this soo please help.
and i have a cdma hero "sprint"
Rooted
Recovery Img 1.5.2
Rom: [Rom-dev] (2-18-10) AOSP 2.1 | Sensors Now Work by darchstar
Thankx In Advance
lonnie23 said:
Hello Guys,, Im Going 2 Install Linux " Ubuntu 9.10 " And i wanted 2 know if is that ( operating system ) the 1 i need for making rom's and such.
And if so then could anyone help me with the steps on how to create a rom.
im really getting serious about this soo please help.
and i have a cdma hero "sprint"
Rooted
Recovery Img 1.5.2
Rom: [Rom-dev] (2-18-10) AOSP 2.1 | Sensors Now Work by darchstar
Thankx In Advance
Click to expand...
Click to collapse
You should be okay using Ubuntu 9.10. I currently have that installed, but haven't done anything yet with it. Although, I actually plan on switching to Fedora 12 -- since I'm more familiar with the Red Hat distro's.
If you need help getting started, you should look into these tutorials below, provided and documented by Gbhil from Android Central.
How to create custom Icons:
http://forum.androidcentral.com/htc-hero-roms-hacks/6070-changing-hero-application-icons.html
ROM FAQ/How to Build ROMS:
http://forum.androidcentral.com/hacking/6037-general-rom-faq.html
How to setup Ubuntu for the Android SDK:
http://forum.androidcentral.com/hac...ramming-envrionment-using-ubuntu-windows.html
OR here:
http://www.futuredesktop.org/developing_android_apps_on_ubuntu.html
Gbhil does an excellent job explaining how things work and how to begin your journey with Android development, hope that helps.
I've used the links above to begin making a custom icon pack, and hopefully soon enough another AOSP ROM.
I use Ubuntu 9.10 for everything I do. Make sure you're root user in that by doing these commands in the terminal:
Code:
sudo passwd
*your root password here*
*repeat root password*
Then, log out of that user, and click "other" to log in. Type root for username, and the password you set with sudo passwd for password. Note, Ubuntu 9.10 is also referred to as Ubuntu Karmic or Karmic Koala, so those are the same as 9.10.
Thankx But could you help with more?
When i try to install the Sun's Java Runtime Engine (JRE) and Java Development Kit (JDK) thier both .bin files + i dont understand on how to make them work.
could you help?
lonnie23 said:
Thankx But could you help with more?
When i try to install the Sun's Java Runtime Engine (JRE) and Java Development Kit (JDK) thier both .bin files + i dont understand on how to make them work.
could you help?
Click to expand...
Click to collapse
I don't know about that, I just use the java built into ubuntu.
How did you set up yours then?
Doo you make roms and stuff??
Because i have a dual boot with my win7 and ubuntu
lonnie23 said:
How did you set up yours then?
Doo you make roms and stuff??
Because i have a dual boot with my win7 and ubuntu
Click to expand...
Click to collapse
All the links I gave you will give you the information to get started. Again, follow this think, it even says what its going to help you install:
We are now going to install these programs
• The Ubuntu Linux Desktop.
• Sun's Java Runtime (JRE) and Development Kit (JDK).
Java Runtime is only needed to run the Eclipse IDE. Android has its own optimized Java VM (Dalvik).
• The Eclipse IDE.
• The Android Software Developer's Kit (SDK).
• The Android Developer Tool (ADT), a special Eclipse plugin.
http://www.futuredesktop.org/developing_android_apps_on_ubuntu.html
If you want to test if Java works -- you can run the commands java --version, which java and echo $JAVA_HOME (which java and echo $JAVA_HOME should correctly state where you chose to set your environment variables when you run them). Otherwise you could open a text editor (I use VIM) and write the universal "hello world" in Java and test Java that way to make sure the program runs.
Lastly, everyone here is more than willing to help you -- but try to search for the information via Google, here on XDA, or other Android forums yourself first -- you'd be surprised that they probably already have your answer.
HeroMeng said:
I use Ubuntu 9.10 for everything I do.
Click to expand...
Click to collapse
I don't think Ubuntu 9.10 is bad -- but I've always worked with Red Hat/CentOS and at work we use RHEL servers, so Fedora is an easy switch for me.

Android Kitchen thread CLOSED

I just went to the android kitchen thread to see if there have been any updates to accommodate java 7 and the dev has closed the thread
Any one know how to get the kitchen to recognize java 7, it still is looking for java in the jre6 folder and that isn't there anymore. I have even done a fresh install of cygwin after installing java 7 and it still didn't automatically recognize the new version.
Hopefully dsixda doesn't take too long a break but I am sure it is well deserved, it is a priceless tool.
You can have more than one version of java installed on your system you know. Java 7 isn't going to just magically improve anything for you really unless you're a developer.
True but didn't know if it was an fairly easy change to a script or something to get it to check/recognize the new location. Before it would let me get to the "building a rom from working folder" portion before it would give me a message about java, now it won't even start the kitchen saying it can't find java version.
I wouldn't consider myself a dev by any means but I build roms for my own use and to just try different things out to see how things work/change things, basically to learn what does what.
Between this issue and fact that I can't get pc to recognize my phone as a storage device anymore...I am lost.
Symlink java7 to the old location for java6.
adrynalyne said:
Symlink java7 to the old location for java6.
Click to expand...
Click to collapse
Just to add to what adrynalyne said (since it's the easiest way), that would be using the "ln" command on linux/unix/cygwin or mklink on windows.
Thanks for idea, tried mklink but in process realized I had x86 version of java6 and x64 of java7. So I tried just installing x86 version of java7 and opened up kitchen and was able to create output .zip from my current working folder
Now if I could just get pc to recognize phone properly... then maybe I think I will avoid updates of software for awhile.

Cygwin issues

I've searched and not found a reasonable or usable solution to this. I installed Cygwin, installing everything. But when I try to run Android Kitchen, I constantly get the error of java not being installed, even though it is. Am I installing Cygwin wrong, or what?
ShilohDaniel said:
I've searched and not found a reasonable or usable solution to this. I installed Cygwin, installing everything. But when I try to run Android Kitchen, I constantly get the error of java not being installed, even though it is. Am I installing Cygwin wrong, or what?
Click to expand...
Click to collapse
Try to type "java" in the cygwin command line, do you see the correct output (help) from Java?
knutson said:
Try to type "java" in the cygwin command line, do you see the correct output (help) from Java?
Click to expand...
Click to collapse
Yes I see that now. Now it's saying clear can't be found, so I still can't run Android Kitchen.
ShilohDaniel said:
Yes I see that now. Now it's saying clear can't be found, so I still can't run Android Kitchen.
Click to expand...
Click to collapse
Make sure that all required executables are available through the PATH environment variable. You can type "echo $PATH" in the command line to see current paths.
knutson said:
Make sure that all required executables are available through the PATH environment variable. You can type "echo $PATH" in the command line to see current paths.
Click to expand...
Click to collapse
Here's what doing that came up with.
Code:
[email protected]_Laptop ~
$ echo $PATH
/usr/local/bin:/usr/bin:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Program Files/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/usr/lib/lapack
ShilohDaniel said:
Here's what doing that came up with.
Click to expand...
Click to collapse
For the "clear", try to install the ncurses (in the Utils category).
Ok, now the java issue is back. I tried doing a reinstall of Cygwin, went ahead and changed the path to java, and still getting the java missing error. I know working in Windows 8 doesn't help, but still.
ShilohDaniel said:
Ok, now the java issue is back. I tried doing a reinstall of Cygwin, went ahead and changed the path to java, and still getting the java missing error. I know working in Windows 8 doesn't help, but still.
Click to expand...
Click to collapse
It's strange, but there is no magic... So just find where java is installed on your system (someting like Program Files\Java\jre7\bin), and make sure that it is accessable through the PATH in Windows. And then restart cygwin and type "java", and it should work.
I'm still not having any luck installing a working version of this. Deleted the install again and reinstalled the whole deal. Now theres no bash_profile file to change the java thing. Ugh! How many times does it take to install this application?
Ok, started from scratch. Followed the install directions here to a "t". But the error "java not found" keeps coming upi. If it helps, I'm running Windows 8 64 bit on a brand new computer. My java installs are fresh and the newest.
Am I just missing something since I was running Cygwin on another computer?
Try to modify PATH manually.

[Q] Full Java Path

Hey guys,
I installed Android Studio but it said that the JDK isn't installed.
The path for java isn't right...
So I need the full java path.
I searched in the whole internet. But I didn't found a full path.
Thank you (If you can help)
Btw, i'm using windows 8
It worked. Sorry guys
The Dev Clock said:
Hey guys,
I installed Android Studio but it said that the JDK isn't installed.
The path for java isn't right...
So I need the full java path.
I searched in the whole internet. But I didn't found a full path.
Thank you (If you can help)
Btw, i'm using windows 8
Click to expand...
Click to collapse
Oops. It worked. Sorry guys
Just for the record ; the problem you faced is due to JDK not being an environment variable/on the build path of your OS.
After making sure JDK is downloaded (java development kit), add it to your environment variables/build path. The error shall be immediately gone.

Emulator Kernel Version Missing (Pic Provided)

Trying to build my own AOSP ROM and I keep getting stuck on emulator unable to find the kernel version, though the file is there.
I am using Hyper-V VM with Ubuntu V20 installed and the VHD is exactly that, a .vhd file extension for the virtual hard drive.
I just can not seem to resolve the problem on the missing kernel, also have supplied a pic showing exactly what it says after the build is finished and then I try and run emulator.
Any help or info, links on the matter would be much appreciated and thank you for taking the time to help out.
I have also noticed I can not use "emulator -list-avds" nothing happens. Just exits and terminal is ready for user input again.
So far I did a repo sync again and then a m -checkbuild and just waiting for it to finish to try emulator again
Update: Decided to start from scratch
Changes that I have made.
Using Ubuntu 18.04 for O.S
Switched from M.S Hyper-V to Oracle Virtual-Box (V.B has more features then Hyper-V and is better in performance because of it.).
Virtual HDD is set to .VHD but is on Sata and not IDE now (Virtual-Box only allows it).
Made the VHD a fixed drive instead of dynamic for better performance (Max size of 512GB)
Dedicated 32GB of ram to VM.
Allowed up to 6 cores on a 12 core processor.
might experiment getting Oracle JDK installed instead of using openjdk, due to having issues with it.
UPDATE_1
Fresh build on 18.04 same issues as old build. emulator, avd and android. all not working.
I might have missed a package to download or something or maybe java still is not working. Using openjdk 11 at the moment. I am running out of ideas as to why i can not get it working.
Update_2
Looks like the reason emulator is not working is due to me not installing SDK, I am not using the IDE so I think I need the command-line & Platform tools installed. got to work out how to install it now.
UPDATE_3
SDK from what I know is installed. Now I am getting an output file is missing, but build completed with no issues. Please help, new image also supplied.

Categories

Resources