Errors in the following switches ... vmoptions - Android Studio

Someone who's reading one of my Android books is getting the following error message when he double-clicks the studio64.exe file:
Java installation not completed, unable to install Java , errors in the following switches c/progfiles/android/android studio/bin/studio64.exe.vmoptions check commands are valid and try again
Any suggestions?

try to set java home variable. define that to your computer where you installed java
Set?*JAVA_HOME:
Right click My Computer and select Properties.
On the Advanced tab, select Environment Variables, and then edit?*JAVA_HOME?*to point to where the JDK software is located, for example,?*C:\Program Files\Java\jdk1.6.0_02.

Related

[Q] DDMS cannot find ADB

I am trying to fix the WiFi on my Captivate. This thread here tells how to do it. Unfortunately when I run DDMS I get the error "Failed to get the adb version: Cannot run program "adb": CreateProcess error=2, The system cannot find the file specified." I have tried installing the SDK on both a Windows 7 64-bit and XP 32-bit machine. I get the same error on both machines. I have tried both the generic Galaxy S drivers and the Captivate drivers. Any suggestions? Here are the instructions I've followed in case you don't want to read the other thread:
1. Install the SDK -> Android SDK | Android Developers
(make sure the <SDK>/tools path is added to the windows path variable. My Computer -> Properties -> Advanced -> Environment Variables -> System variable -> add the SDK path at the end of Path variable )
2. On your phone, please enable (tick mark) "USB debugging" under "Settings" -> "Applications" -> "Development"
3. Connect your phone using USB to PC/Laptop. Close phone manager application if it comes up on the PC.
4. Run "ddms.bat" from <SDK>/tools directory. The DDMS application will come up and it should readily connect to your phone. (in the main screen, under Name, you should find the phone ID and SW ver. no.)
5. Go to menu Device -> File Explorer. New window will come up.
6. Here go to data -> wifi directory. You will see a file bcm_supp.conf.
7. Though it is not possible to read this file, you should be able to delete it. (at least I could delete it). You can delete the file by selecting it and then pressing red "-" on top left of the window.
Thanks!
Post in q and a.
sent from my craaazy fast cappy running di11igaf v2.5 at 1280mhz!!!
silverslotcar said:
Post in q and a.
sent from my craaazy fast cappy running di11igaf v2.5 at 1280mhz!!!
Click to expand...
Click to collapse
Yes, Q&A would be the proper location for this thread.
Sent from my GT-I9000 using XDA App
Ok, sorry, although I just figured out the problem. The Path should have the platform-tools directory instead of the tools directory because that's where adb is located. I corrected that and it loaded right up. Unfortunately, when I click on the + sign for the Data folder it doesn't show me anything Guess I'm going to have to do a factory reset after all.
automagrt said:
I am trying to fix the WiFi on my Captivate. This thread here tells how to do it. Unfortunately when I run DDMS I get the error "Failed to get the adb version: Cannot run program "adb": CreateProcess error=2, The system cannot find the file specified." I have tried installing the SDK on both a Windows 7 64-bit and XP 32-bit machine. I get the same error on both machines. I have tried both the generic Galaxy S drivers and the Captivate drivers. Any suggestions? Here are the instructions I've followed in case you don't want to read the other thread:
1. Install the SDK -> Android SDK | Android Developers
(make sure the <SDK>/tools path is added to the windows path variable. My Computer -> Properties -> Advanced -> Environment Variables -> System variable -> add the SDK path at the end of Path variable )
2. On your phone, please enable (tick mark) "USB debugging" under "Settings" -> "Applications" -> "Development"
3. Connect your phone using USB to PC/Laptop. Close phone manager application if it comes up on the PC.
4. Run "ddms.bat" from <SDK>/tools directory. The DDMS application will come up and it should readily connect to your phone. (in the main screen, under Name, you should find the phone ID and SW ver. no.)
5. Go to menu Device -> File Explorer. New window will come up.
6. Here go to data -> wifi directory. You will see a file bcm_supp.conf.
7. Though it is not possible to read this file, you should be able to delete it. (at least I could delete it). You can delete the file by selecting it and then pressing red "-" on top left of the window.
Thanks!
Click to expand...
Click to collapse
Hi,
I am going crazy with this crap, I am not impressed how google put this **** together.
I can see you managed to fix the issue of ddms not finding adb but I didnt. Can you please explain in more details? I searched everywhere over the internet but everybody just says "add the path". Fine. Then what....?
I added a new path in the environmental system variables called "SDK" and points to:"C:\program files\Android\android-sdk-windows\platform tools\. Still no joy. What am I doing wrong?
thanks
Did you reboot after adding the path?
And I didn't realize that Google had changed the SDK path to "platform-tools" with their latest release. Just plain dumb imo as folks have been so used to it being in just the "tools" location.

Installing Tizen SDK for Wearables

Simple step by step tutorial for installing the Tizen SDK for Wearables
1) Go to http://developer.samsung.com/
2) Select Development Tools for Samsung Gear.
3) Under the SDK portion of the table, select Tizen SDK for Wearable.
4) Before downloading the files, choose a target location. This will make locating the files easier later on.
5) Under Tizen SDK for Wearable 1.0.0b2, in the Install Manager column, select and download the install bin or exe file for your development environment. This file is approximately 4 MB.
6) Under SDK Image, select and download the matching SDK Image. This file is approximately 560MB.
7) Double-click the Install Manager (the 4MB file). The Tizen Window for SDK appears, saying “Cannot start Tizen SDK for the Wearable Install Manager” and “Cannot find repository. Please check your repository (http://)”
8) Click on the Advanced button.
9) Select the SDK Image radio button (bottom half of the screen), and click on the open folder icon to the right.
10) Locate the SDK Image (~560MB), select it, and click Open. This is where having a predetermined download target can be very helpful. The file unzips and takes you back to the previous screen. Click OK.
11) This takes you back to the Tizen Window for SDK, except now you have no warning, and a Next button. Click the Next button.
12) The EULA appears, read and accept the EULA by clicking Next.
13) Install type is Typical. Click Next.
14) Accept the default install location or choose your own, and click Next.
15) The Intel Hardware Accelerated Execution Manager (HAXM) Setup Wizard appears. Click Next for the next three screens, and then click Finish.
16) Reboot if asked to.
Installation is now complete. Next is to start working with some of the Sample Projects, like Making a Custom Watch Face
.
.
Tyzen SDK: cannot execute java even if it was istalled, check environment variables or Java version (1.06 or superior)
Changing or introducing java path variable doesnt work sofar. You get stuck at start. The same problem occurs when installing the wearables SDK version, 32 or 64 bits in W7.
First question, I suppose I could have added more relevant data. Thank You.
Other cases are adb and fastboot problems after Android SDK and Eclipse.

flash tool wont recognize Java JRE

Hello everyone,
the last lollipop update soft bricked my phone, so now i am trying to recover it... but i am new to flashing, rooting, etc , and consequently struggling a bit. ( i went through the sony pc companion repair steps before i got to here.
Main issue : i downloaded flashtool from here: ://github.com/Androxyde/Flashtool and it gave me a Java error
"No JVM could be found on your system
Please define EXEJ JAVA HOME to point it to an installed 32 bit JDK or JRE"
So i went and installed the latest Java JRE , restarted my computer , and still get the same error. What should i do?
running windows 7
im sure i will have more questions, but thanks in advance!
libtechsplit said:
Hello everyone,
the last lollipop update soft bricked my phone, so now i am trying to recover it... but i am new to flashing, rooting, etc , and consequently struggling a bit. ( i went through the sony pc companion repair steps before i got to here.
Main issue : i downloaded flashtool from here: ://github.com/Androxyde/Flashtool and it gave me a Java error
"No JVM could be found on your system
Please define EXEJ JAVA HOME to point it to an installed 32 bit JDK or JRE"
So i went and installed the latest Java JRE , restarted my computer , and still get the same error. What should i do?
running windows 7
im sure i will have more questions, but thanks in advance!
Click to expand...
Click to collapse
try to add java commands to environment variables
copy the javajdk\bin folder location and paste in the system/user path environment variables available in SYSTEM Properties--> Avdanced Settings--- >Advanced Tab --> Environment Variables and there yo will find system environment variables and path environment variables
paste the location in system environment variable --> path
the location will be like this C:\Program Files\Java\jdk1.7.0_80\bin
Thank you,
I tried uninstall and reinstall of both Flashtool and Java JDK , then tried the recommendation.
After copying the JDK file location C:\Program Files\Java\jdk1.8.0_65 into the environment variables , i now get a different error when i try to run Flashtool64 :
Java.lang.ClassNotFoundException: gui.Main
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Regular flashtool (not Flashtool64) gets multiple different Java errors. I'm not sure which i should be using?
Flashtool is still not functioning for me. Can anyone recommend a different software? All i want to do is install a stock ROM so my phone will function again
please close this thread
turns out i am in the wrong forum, the c6616 is actually a Z, not a Z1
please close this thread , i will start over in the correct forum, thank you

[Guide+Video]How to bypass WebOS activation on the HP Touchpad

How to bypass WebOS activation on the HP Touchpad
HP TouchPad | WebOS Activation Bypass Video
https://www.youtube.com/watch?v=IjtLNL-Lspc
Download the WebOS activation package here
1) You will need to have Java installed to run the Novacom installer. Click here:
2) You will need to have the Novacom software installed.
Install the Novacom software by running the Universal installer 1.4.1.jar found in the package.
Or
Manually select and install the Novacom driver for your OS from the package provided.
Note: You may need to reboot after installing this software.
3) Enter webOS recovery mode and connect the Touchpad to your PC with the USB cable:
-Reboot the HP Touchpad and hold down the volume up button while the Touchpad reboots.
-Once you see the large USB symbol on the screen release the volume button.
-Connect the HP Touchpad to your PC via the USB cable.
4) Run the devicetool2.jar from a prompt/terminal:
Run the ”Activate WebOS HP TP” batch file to automatically run the tool.
Or
Open up a command prompt/terminal and type in the code:
-Windows users can open a command prompt directly by ”Activate WebOS HP TP” folder by, Holding [Shift] & [Right Click] then select open Command window here
View attachment 4211710
Enter the Code:
java -jar devicetool2.jar
Explanation:
The command prompt will need to be directed to the folder that contains the devicetool2.jar before entering the code to run the program.
java -jar path/to/devicetool2.jar
where "path/to/devicetool.jar" is the location you downloaded devicetool2.jar to
5. Wait until the tool displays "Device is ready.", then disconnect your HP TouchPad.
-Congratulations you have now bypassed the activation and are ready to use WebOS.
reserved
Worked for me although typing the java command (java -jar devicetool2.jar) didn't work as it couldn't find the jar file, but using the BAT file worked. Based off this post, I think the issue was I didn't type the path to the devicetool2.jar as I just followed the video. I typed the command from the directory the files were located in so not sure why Windows 10 cmd line didn't use the file without the path?
BAT works with win10
mindfulness said:
Worked for me although typing the java command (java -jar devicetool2.jar) didn't work as it couldn't find the jar file, but using the BAT file worked. Based off this post, I think the issue was I didn't type the path to the devicetool2.jar as I just followed the video. I typed the command from the directory the files were located in so not sure why Windows 10 cmd line didn't use the file without the path?
Click to expand...
Click to collapse
Thank you for reporting your success with the bat file and windows10. Ya got to be the path but i'm glad the bat worked, that's much easier anyway:highfive:
Thank you, It works like a charm!
Can confirm it still works in 2021/2022. Windows 7, JDK-7u80 (used old versions on purpose)

Android Studio does not start, all the paths are written JAVA_HOME, JDK_HOME, PATH

Android Studio does not start, all the paths are written JAVA_HOME, JDK_HOME, PATH does not help. Windows I have x64. After installing the program, the executable studio64.exe starts, but nothing happens. When I open the startup file studio.exe, I get an error:
Failed to load JVM DLL c:\Program Files\Java\jdk-9.0.1\bin\server\jvm.dll if you already have a 32-bit JDK installed, define a JAVA_HOME variable in Computer > System Properties > Sysytem Settings > Environment Variables.
JAVA SDK works, checked, the latest version of jdk-9.0.1 is installed from the oracle site, checked on Eclipse. Help please, I do not know what to do.

Categories

Resources