[Q] need help installing java for android SDK - Desire Q&A, Help & Troubleshooting

Hi folks
Seen as a lot of stuff can be flashed from using the android sdk interface im looking to set it up when i ran the installer it told me the java development kit(jdk) wasnt found so I went to the recommended link and went for the following:-
Java SE Development Kit (JDK) Bundles - JDK 6 Update 25 with Java EE - Windows x64 - English 130.89 MB java_ee_sdk-6u2-jdk-windows-x64.exe
now after I installed it, the sdk setup still told me I hadnt got a jdk installed, I also restarted pc and tried still same thing. What am i missing?
edit:- after some more testing and searching I tried the standard windows java install and its worked now finishing the install now.

Yeh the installer is bugged. When it says it's not installed just press back then next.

Also try to reboot

Related

please i need help with DiamondCustomRUU.exe. init error

ok i decided to take the plunge in the dodgy world of flashing
and as luck would have it.......
im following the bible link
http://modmydiamond.info/index.php?option=com_content&task=view&id=15&Itemid=26
i have add the hardspl and confirmed it in the boot loader page tri color.
i have downloaded the *DiamondCustomRUU.exe* file quite a few times and it give this error every time i double click on it.
*The application failed to initialize properly (0xc0000135). click on ok to terminate the application*
the currrent state of the phone
------------------------------
everything on the phone apears to be workng just fine
however there is no touch flow 3D thats gone LOL
what can i do ?
is DiamondCustomRUU.exe the only file that can sort the radio ?
am i doomed ?
yes im slightly panicing too
please help
thanks in advance
HD
the microsoft activesync has synced and on green. connected
Ok thanks for reading. my heart attack is quickly gowing away.
the problem is solved.
the solution is to install .Net 2 from microsoft and install it.
im now moving forward again
HD
WWWWOOOOWWWWw
i done it
wicked you guys are DOGz NADz mate
wwwwooooowwwww
thanks
HD
Nice to see someone can solve his/her problem without any help.
As you can see, it's not that difficult
It still does not work in Win XP x64
I have tried installing .Net framework 2.0 or 3.0 but still fail......
jackycct
if are you trying to flash your phone and failing at the radio section
like above and you are seeing
i have downloaded the *DiamondCustomRUU.exe* file quite a few times and it give this error every time i double click on it.
*The application failed to initialize properly (0xc0000135). click on ok to terminate the application*
Click to expand...
Click to collapse
then download .net from microsoft and install it to your PC not the phone.
the developers are using functions from within .net hence why it is needed
if you have any other problem then please let us know
HD
.Net framework is installed in Win XP x64
I did install the .Net framework in Win XP x64 (64bits, not 32 bits) on my PC.
Before installing the .Net framework, the error message *The application failed to initialize properly (0xc0000135). click on ok to terminate the application* was shown.
After installing .Net framework 2.0 or 3.0, then it crashed and showed "DiamonCustomRUU has encountered a problem and needs to close. We are sorry for the inconvenience."
Win XP x64
Click to expand...
Click to collapse
im not all that clued up on Win XP x64 .net stuff.
maybe that version uses different methods call handlers or mem locations.
sorry i cant help
HD

ddms.bat - adb.exe error on DHD.

Hello everyone ... Yesterday i tried to take screensot with DDMS.bat like usually... But after launch ddms.bat and plug DHD into PC ERRORs appears.
First is adb.exe stopped working http://screenshooter.net/2759574/gjoqvjp
Second: Microsoft Visual C++ Runtime Error http://screenshooter.net/2759574/sqhiuql
third: TODO: <File description> .... http://screenshooter.net/2759574/pxrrsbs
if i connect DHD without run ddms my adb.exe is working fine i think (adb devices recognize SN of my device) but afterrun ddms adb is crashing and other errors appear :/
Log in cmd window looks like:
12:39:39 E/adb:
12:39:39 E/adb: This application has requested the Runtime to terminate it in an unusual way.
12:39:39 E/adb: Please contact the application's support team for more information.
12:39:44 W/DeviceMonitor: Failed to connect to client '4505': timeout
12:39:47 E/DeviceMonitor: Adb connection Error:
12:39:47 W/DeviceMonitor: Failed to connect to client '4795':
12:39:48 W/DeviceMonitor: Failed to connect to client '4808': Connection refused: connect
12:39:48 E/DeviceMonitor: Connection attempts: 1
12:39:48 E/DDMS: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannel Impl.java:507)
at java.nio.channels.SocketChannel.open(SocketChannel .java:146)
at com.android.ddmlib.AdbHelper.executeRemoteCommand( AdbHelper.java:367)
at com.android.ddmlib.Device.executeShellCommand(Devi ce.java:276)
at com.android.ddmuilib.SysinfoPanel.loadFromDevice(S ysinfoPanel.java:159)
at com.android.ddmuilib.SysinfoPanel.deviceSelected(S ysinfoPanel.java:126)
at com.android.ddmuilib.SelectionDependentPanel.devic eSelected(SelectionDependentPanel.java:52)
at com.android.ddms.UIThread.selectionChanged(UIThrea d.java:1666)
at com.android.ddmuilib.DevicePanel.notifyListeners(D evicePanel.java:752)
at com.android.ddmuilib.DevicePanel.notifyListeners(D evicePanel.java:740)
at com.android.ddmuilib.DevicePanel.access$1100(Devic ePanel.java:56)
at com.android.ddmuilib.DevicePanel$1.widgetSelected( DevicePanel.java:357)
at org.eclipse.swt.widgets.TypedListener.handleEvent( Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unkno wn Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents( Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Un known Source)
at com.android.ddms.UIThread.runUI(UIThread.java:492)
at com.android.ddms.Main.main(Main.java:98)
12:39:49 W/DeviceMonitor: Failed to connect to client '4818': Connection refused: connect
12:39:49 E/Logcat: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannel Impl.java:507)
at java.nio.channels.SocketChannel.open(SocketChannel .java:146)
at com.android.ddmlib.AdbHelper.executeRemoteCommand( AdbHelper.java:367)
at com.android.ddmlib.Device.executeShellCommand(Devi ce.java:284)
at com.android.ddmuilib.logcat.LogPanel$3.run(LogPane l.java:527)
12:39:50 E/DeviceMonitor: Connection attempts: 2
12:39:50 E/EventLog: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannel Impl.java:507)
at java.nio.channels.SocketChannel.open(SocketChannel .java:146)
Click to expand...
Click to collapse
I was looking for solution everywhere ... Reinstalled JDK (Java), SDK (revision 9), .NET Framework 4, Microsoft Visual 2010 ... What else can i do?
I`m using Windows 7 Ultimate x64, and on DHD ROM: Android Revolution 2.0.9 (but it is not ROM related... i flashed stock 1.32 and the same) However ... few weeks ago ddms was working fine without any errors :/
PLEASE for ANY help.
MOD:
Sorry if in wrong seciotn but didn`t know where can i ask for it.
The new SDK has a different path to adb.exe and its DLL files, so you might want to include:
c:\android-sdk-windows\platform-tools\
to your global PATH variable.
jkoljo said:
The new SDK has a different path to adb.exe and its DLL files, so you might want to include:
c:\android-sdk-windows\platform-tools\
to your global PATH variable.
Click to expand...
Click to collapse
Thanks for reply But i`ve already added this to PATH ... Forgot to write about it.
I wrote above ADB separately works fine ... but via ddms, adb is crashing.
Try to install new HTC Sync and copy files from platform-tools to tools.. After that & adding platform-tools to PATH my DDMS started working, and still works fine. I updated my SDK to the newest version.
Normally the path to adb in PATH is c:\android-sdk-windows\tools, as you may know, so I just added platform-tools path after it.
What do you mean when U say new HTC sync? I got sync for desire HD from SD.
Sent from my Desire HD using Tapatalk
Ok found newer version of HTC Sync ... installed it ... added again PATH/ copied files from platform-tools to tools ... but still the same :/ Anybody? Any ideas? It drives me crazy :/ Wrrrrr Now i`m not sure if any operation with adb, fastboot are safe for me For example radio flashing... With errors like this i`m afraid of bricking my device during radio flash...
New HTC Sync from HTC website. And you do not need a working SDK to flash a radio, just get the radio flash package from flashing guide.
You could try to remove the whole SDK and install SDK starter package from Android website.
I'm a developer experiencing the same issue, Htc Desire HD and adb work properly outside eclipse, but with eclipse it crashes. I have too Win7 64 bit and the newest version of SDK. I think something went wrong in the last update. I'm going to install latest skd in a XP to check what happens, before trying to reinstall eclipse and the SDK on my win7 machine.
Did you add C:\android-sdk-windows\platform-tools to your global PATH variable as suggested earlier in this thread? It fixed adb for me, and I use eclipse, too.
jkoljo said:
Did you add C:\android-sdk-windows\platform-tools to your global PATH variable as suggested earlier in this thread? It fixed adb for me, and I use eclipse, too.
Click to expand...
Click to collapse
As Jkoljo has said it has fixed my problem when new SDK was released.
Putting the path to the platform-tools and ddms worked after that.
Or try: cd "C: \ your SDK directory \ tools \ ddms.bat
If ddms is in platform-tools then: cd "C: \ your SDK directory \ platform-tools \ ddms.bat
I have the same problem. My ADB and HTC sync just works fine but when I run DDMS to capture a screenshot adb always crashes. I added both directories to the path variable. My system is XP 32bit.
With the old version of the sdk I didn't had any problems at all.
Any suggestions?
Mav3ric144 said:
I have the same problem. My ADB and HTC sync just works fine but when I run DDMS to capture a screenshot adb always crashes. I added both directories to the path variable. My system is XP 32bit.
With the old version of the sdk I didn't had any problems at all.
Any suggestions?
Click to expand...
Click to collapse
I gave up Didn`t solve it It still drives me crazy :/:/ The strangest thing is that ddms was working fine few (3) weeks ago. Suddently i connected to capture a screen and? buuuu :/ didn`t work -> adb.exe error :/
I DO NOT TALK HERE ABOUT NOT WORKING ADB
My ADB is working fine until i run ddms.bat. After that adb error appears :/
Hi again,
(Yes I have added the PATH variable)
I have been working in different machines to check if it was a room (AR HD 2.0.9), system or HDH itself problem.
I installed for the first time eclipse+SDK+ADT on a XP 32 bit and I got the same problem I have in my W7 64 bit. Impossible to connect.
Then I installed eclipse+SDK+ADT on a ubuntu 10.10 32 bit and all worked fine after I realised that once I started eclipse I had to open the console with root user, kill adb server and restart the adb server again. After that I had no problem debuggin my applications on the HDH with eclipse and ddms.
So I came back to my Win 7 64 bit and I did the same procedure. Now ddms seems to connect properly with the HDHD but when I try to debug anything I got a new error:
Failed to install myapp.apk on device 'HT0BHRX00568': Unable to open sync connection!
[2011-02-08 00:15:09 - xxx] java.io.IOException: Unable to open sync connection!
[2011-02-08 00:15:09 - xxx] Launch canceled!
I think there has to be something related with the windows installation and the sdk recently update.
Anyone has any new clues??
Thanks
Same here. It's driving me crazy. The funny thing is that it does work intermittently and then just stops again. Rebooting the PC and/or the phone doesn't fix it.
Please post if you find the issue.
I gave up Didn`t found any solution for this WRRRRRR thats the worst :/ There must be a way to fix it !
I'm still trying to solve it. As a temporary solution (I hope!) I'm developing using Eclipse on Ubuntu 10.10
I'm using Windows and not going to change my OS just for ddms ... Arrrrggg it was working on windows and must work again ;(
Tapnąłem z HTC Desire HD.
DDMS error
This seems to be related to and update (either Java, Android SDK or both)
The Java library is not handling IPv6 sockets.
In Linux, sudo "echo -n 0 > /proc/sys/net/ipv6/bindv6only" will turn off the IPv6 binding.
I am not sure what the equivalent method in Windows is.
for reference: http://stackoverflow.com/questions/...ent-ddms-from-command-line-not-seeing-devices
I think Java ... Cuase i didn`t update SDK until this error occured :/
Maybe Windows or Java updater did the update and voila ...ddms suddently stopped working. Maybe someone will find solution for Win users ...
Hi, I have disabled ipv6 on win7 as you suggested and nothing changed. Maybe in August was, but right now, I don't think It's ipv6 related because Eclipse works properly on a Ubuntu 10.10 fully updated with ipv6 running.
Thanks any way

Android SDK Manager

I've tried and tried to install SDK Manager and read all posts on this forum relating to it but still get the Java not found in your path message.
I've tried changing the path as suggested but without a positive result. I've also googled it on numerous occasions and tried standing on my head while drinking a chocolate milkshake. Is there something simple I'm missing? Any help or advice would be appreciated.
If you installed Java jdk (its different to normal Java) and it doesn't work, when you get to the bit that says Java not found, press back then next and it should change to Java found. It's just the installer being buggy and its what I have to do.
Sent from CM7

[Q] Wildfire s usb_drive / Device not found

Hey guys
I specialy registered to this forum for my next question/problem.
First of all, I'm using Wildfire s, 2.3.7, CyanogenMod-7.2.0-RC1-marvel.KANG + i'm using Windows 8 Consumer Preview.
I was trying to install
"[Tool] Android Screencast 0.4 (open-source)"
http://forum.xda-developers.com/showthread.php?t=557717
But when i connect my htc to pc with usb debugging it fails to install the driver. I've downloaded many usb_drivers from all over internet and tried to install them manually using device manager but it doesn't seem to work.
Finly i found the "HTCDriver3.0.0.007.exe and it worked on other computer (Win7). when i tried to install it in win 8 it gives an error telling that Driver installer in not supported for this OS. tried to run in capatibility mod but no luck.
Also tried to modify the usb_driver files "android_winusb" my adding lines in end etc.. still didn't work.
usually i don't ask help from any forum rather i google things and read other ppl posts. which worked.... until now So now i'm asking for help at this topic, i've been through almost every post in xda telling about Device not found, without any luck there eith.
If needed it's possible to remote controll my pc with teamviewer.
Help is really appreciated.
ps. device manager shows that yellow attention mark.
TEMP FILES / Extract .msi~
I got it work myself after all.
If you need help to install the device, mail me.
[email protected]
why not just post the answer?
had trouble getting drivers for windows 8 64 to work when trying to flash ruu update. could not find drivers online or a thread on xda, eventually downloaded the google drivers from sdk, and they worked perfectly after manually installing them for the android phone and then again for the android 1.0 device when it boots to hboot.

Ruu and Windows 10

So I'm trying to restore my 10 to factory via Ruu.exe that I got from htc site. Made sure I got the correct file for my variant. Installed htc sync drivers and running windows 10 pro.
Whenever I try to run the ruu it says it's extracting files but then closes out. Did some research and found these
https://m.reddit.com/r/htcone/comments/2oxjoc/ruu_wont_run_as_administrator/
And
http://forum.xda-developers.com/htc-one-m8/help/ruus-windows-10-t3356796
Tried it all and still won't run. Any suggestions to get it to run on windows 10? I'm like really stuck, can't figure this out for the life of me please help
nofroyo said:
Any suggestions to get it to run on windows 10?
Click to expand...
Click to collapse
try right-clicking on the ruu.exe and go to properties, then on the Compatibility tab check the box to run in compatibility mode and try Win 7. I'd still run it as administrator though.
I've not actually restored my 10, but i did fire up the ruu once to make sure it downloaded properly and got the main screen. i'm on win10-1511 still
nofroyo said:
So I'm trying to restore my 10 to factory via Ruu.exe that I got from htc site. Made sure I got the correct file for my variant. Installed htc sync drivers and running windows 10 pro.
Whenever I try to run the ruu it says it's extracting files but then closes out. Did some research and found these
https://m.reddit.com/r/htcone/comments/2oxjoc/ruu_wont_run_as_administrator/
And
http://forum.xda-developers.com/htc-one-m8/help/ruus-windows-10-t3356796
Tried it all and still won't run. Any suggestions to get it to run on windows 10? I'm like really stuck, can't figure this out for the life of me please help
Click to expand...
Click to collapse
I followed this and installed all the vcredist linked at post #94 and can confirm that this will fix the issue.
http://forum.xda-developers.com/showthread.php?t=2757462&page=10
nofroyo said:
So I'm trying to restore my 10 to factory via Ruu.exe that I got from htc site. Made sure I got the correct file for my variant. Installed htc sync drivers and running windows 10 pro.
Whenever I try to run the ruu it says it's extracting files but then closes out. Did some research and found these
https://m.reddit.com/r/htcone/comments/2oxjoc/ruu_wont_run_as_administrator/
And
http://forum.xda-developers.com/htc-one-m8/help/ruus-windows-10-t3356796
Tried it all and still won't run. Any suggestions to get it to run on windows 10? I'm like really stuck, can't figure this out for the life of me please help
Click to expand...
Click to collapse
This is also common when you have an incomplete download. I suggest you re-download the file and try again.
I had the very same problem. The download was good. As soon as I installed the vcredist's the same download worked just fine.
rsa 329 said:
I had the very same problem. The download was good. As soon as I installed the vcredist's the same download worked just fine.
Click to expand...
Click to collapse
you said that already. That's why I sad "also".
nofroyo said:
So I'm trying to restore my 10 to factory via Ruu.exe that I got from htc site. Made sure I got the correct file for my variant. Installed htc sync drivers and running windows 10 pro.
Whenever I try to run the ruu it says it's extracting files but then closes out. Did some research and found these
https://m.reddit.com/r/htcone/comments/2oxjoc/ruu_wont_run_as_administrator/
And
http://forum.xda-developers.com/htc-one-m8/help/ruus-windows-10-t3356796
Tried it all and still won't run. Any suggestions to get it to run on windows 10? I'm like really stuck, can't figure this out for the life of me please help
Click to expand...
Click to collapse
Your question kept coming up as I searched for why RUUs won't run in Windows 10 64 bit.
Here's a link to the solution that fixed the issue for me:
https://forum.xda-developers.com/showpost.php?p=53081344&postcount=94
Thanks to onthezone for the post.
I had to install all x86 and x64 vcredist files from Microsoft before it worked for me. Tip: save the vcredist_##.exe files in folders based on the version they target (i.e. 2005, 2008, 2010, 2012) since all the file names are the same. I ignored the link to GPE full conversion back to sense roms since that didn't apply to me.
Good luck!
Here's the content in case the link ever goes down:
onthezone said:
Alright after tons of research and trial and error, I believe I found a fix to the installer crashing after accepting t&c. First make sure you have htc sync manager installed. Then install ALL of the c++ programs from here:
Download Visual C++ Redistributable for Visual Studio 2012 Update 4 from Official Microsoft Download Center
Download Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) from Official Microsoft Download Center
Download Microsoft Visual C++ 2005 SP1 Redistributable Package (x64) from Official Microsoft Download Center
Download Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) from Official Microsoft Download Center
Download Microsoft Visual C++ 2008 SP1 Redistributable Package (x64) from Official Microsoft Download Center
Download Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) from Official Microsoft Download Center
Download Microsoft Visual C++ 2010 SP1 Redistributable Package (x64) from Official Microsoft Download Center
Then rerun the ruu file with admin and should work.
If your coming from GPE full conversion you will get a error 156 and have to convert back via this guide:
GPE full conversion back to sense roms
Then rerun the ruu file with admin again and should work.
Click to expand...
Click to collapse
You must deactivate safe.. In windows defender then it's work
Gesendet von meinem HTC 10 mit Tapatalk
You do not even need all of the vcredist packages, just one... I cannot remember which one however, I believe it was the 2008 x86 or the 2010 x86 one

Categories

Resources