Unable to launch uiautomatorviewer tool - selenium

I am getting the below error while attempting to launch the UI Automator Viewer tool via command prompt.
C:\Users\getta\AppData\Local\Android\Sdk\tools\bin>uiautomatorviewer
-Djava.ext.dirs=..\lib\x86_64;..\lib is not supported. Use -classpath instead. Error: Could not create the Java Virtual Machine. Error: A
fatal exception has occurred. Program will exit.
I was googling and it suggested to downgrade Java to v8...any other workarounds apart from that??

Set your all android path properly.
Add a variable in system environment as mention below.
ANDROID_HOME : C:\Users[Your login name]\AppData\Local\Android\Sdk (Or any PATH that your android SDK located)
JAVA_HOME: C:\Program Files\Java\jdk1.8.0_172
ANDROID_SWT : C:\Users[Your login name]\AppData\Local\Android\Sdk\tools\lib\x86_64
ANDROID_PLATFORM_TOOLS : C:\Users[Your login name]\AppData\Local\Android\Sdk\platform-tools
Add below mention Path in Path Variable in the system environment.(If your SDK located in: C:\Users[Your login name]\AppData\Local\Android\Sdk\ )
C:\Program Files\Java\jdk\bin;
C:\Users[Your login name]\AppData\Local\Android\Sdk\tools\bin;
C:\Users[Your login name]\AppData\Local\Android\Sdk\tools;
C:\Users[Your login name]\AppData\Local\Android\Sdk\platform-tools;
C:\Program Files\nodejs\node_modules\npm\bin;
C:\Users[Your login name]\AppData\Local\Android\Sdk;
C:\Users[Your login name]\AppData\Local\Android\Sdk\tools\lib\x86_64\swt.jar;
You don't need to downgrade Java version, just have jdk1.8 and then set your JAVA_Home to there
I have version 10 in my system but also have the other jdks. As you can see in the attached docs, I have version 8 & 10 and the system knows version 10. But I set the JAVA_HOME to jdk 1.8 and it's working well.
JDK versions
What shows by command "java -version"

Related

Weblogic server installation error

I launch Oracle installer from the command line. The path is:
C:\Program Files\Java\jdk1.8.0_131\bin\java -jar fmw_12.2.1.3.0_wls.jar.
When the installation is complete сonfig.cmd is launching and this apprears in the command line:
Too long entering line. Unexpected appearance: :process_classpath. C:\Users\User\AppData\Local\Temp\OraInstall2017-12-26_12-32-05PM>
Who faced this and knows any solutions to bypass this?
I'm thinking it might be some privilege issue.
I had similar kind of issue , so I started the installation in admin mode
Instead running from direct java bin path , try to set class path in environment variable then try.

Configuring and running integrated weblogic server in jdeveloper

i know this can be very simple but i am not able to do so.
I am trying to start integrated weblogic server in jdeveloper(v11.1.1.7.0). But it always says the following error :
*** Using port 7101 ***
C:\Users\595452\AppData\Roaming\JDeveloper\system11.1.1.7.40.64.93\DefaultDomain\bin\startWebLogic.cmd
[waiting for the server to complete its initialization...]
The system cannot find the path specified.
The JRE was not found in directory C:\Oracle\MIDDLE~1\jdk160_29. (JAVA_HOME)
Please edit your environment and set the JAVA_HOME
variable to point to the root directory of your Java installation.
Press any key to continue . . . [Server Instance IntegratedWebLogicServer is shutting down. All applications currently running will be terminated and undeployed.]
My Java_home is set to the jdk i have installed and also have an entry in PATH of system variable.
**User variable:**
C:\Program Files\Java\jdk1.7.0_45;C:\Program Files\Java\jre7
**System Variable :**
C:\Program Files\Java\jdk1.7.0_45\bin;C:\Program Files\Java\jre7\bin
Please assist me in this regard.
I fixed mine by editing the setDomainEnv.cmd in my weblogic installation.
In my installation D:\srv\wls12120\user_projects\domains\mydomain\bin my installation pointed to:
set SUN_JAVA_HOME=D:\Java\jdk\jdk8u40 changed to
set DEFAULT_SUN_JAVA_HOME=C:\PROGRA~1\Java\JDK17~1.0_2
set DEFAULT_SUN_JAVA_HOME=D:\Java\jdk\jdk8u40 changed to
set JAVA_HOME=C:\PROGRA~1\Java\JDK17~1.0_2
as well as here:
if "%VM_TYPE%"=="JRockit" (
set JAVA_HOME=%BEA_JAVA_HOME%
) else (
if "%JAVA_VENDOR%"=="Sun" (
set JAVA_HOME=%SUN_JAVA_HOME%
) else (
set JAVA_VENDOR=Oracle
set JAVA_HOME=D:\Java\jdk\jdk8u40
set VM_TYPE=HotSpot
)
)
This has solved my issue.
Apparently the install routine thinks that your JAVA_HOME is set to the wrong jre. First test is to open a command shell and type in "java -version"
Verify that you see Java 1.7.0 and not 1.6.0
One this had been checked check the ide.conf file or jdev.conf file which java version is configured there. There you should see jdk 1.7.0 configured.
Then you remove the DefaultDomain folder out of the system 11.1.1.x.x.x folder.
Then start jdev again and try to start the integrated server again.
Solution: Windows 7
Delete the C:\Users\\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36 folder and then restart your JDeveloper.
Delete the C:\Users\"username"\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36 folder and then restart your JDeveloper
While upgrading Java version, remove all the files available in the below path
C:\Users\\AppData\Roaming\JDeveloper

Glassfish 3.1.2.2 in IDEA 11.1.4: "PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required"

I am trying to get our Mavenized web application up and running in a freshly installed IDEA 11.1.4 Ultimate (Windows 7) under a freshly unzipped Glassfish 3.1.2.2. I have done this many times in Eclipse, but am not familiar with IDEA.
I can build and deploy it just fine, but when I try to access pages with JSP-content I get:
PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
The Glassfish Application Servers entry adds the javax.ejb.jar, javax.servlet-api.jar and javax.servlet.jsp-api.jar as libraries.
I have set the project SDK to point to a full JDK resulting in:
(which does not seem to include a jar with javac)
The IntelliJ tutorials I've found so far, does not mention this problem. My guess would be that the "please start using this JDK" information is not passed on to Glassfish, so it just picks up the system JRE.
What configuration step have I missed? I do not want to edit configuration files - I expect the IntelliJ plugin to do this if I know how to tell it to.
I got the same notification and just changed in admin port -> Configurations -> server-config -> JVM Settings -> Java Home as "C:\Program Files\Java\jdk1.8.0_72", and it started working.
PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required.
I was getting same error after restarting my glassfish 4 server.When I am trying to access my deployed application it was saying to mention full JDK.
login to Glassfish admin console.(http://localhost:4848).
Go to Configuration---->server-config--->JVM Settings
Set the java home with your correct jdk home (ex:C:\Program Files (x86)\Java\jdk1.8.0_121).
Restart the server.
It will work fine.
Next solution helped me
source: http://alvinalexander.com/blog/post/java/fixing-glassfish-jdk-path-problem-solved
Find your asenv.bat file. C:\Program Files\glassfish-4.0\glassfish\config\asenv.bat
Open it in text editor and find strings like "set AS_ = blahblah"
Add this string there "set AS_JAVA=C:\Program Files\Java\jdk1.7.0_60" (print your own JDK path here). If string "set AS_JAVA= blahblah" already exists then just fix the path.
Add JDK_HOME\lib\tools.jar file to the JDK configuration Classpath.
However, the problem in your case may be different as Glassfish JDK is not taken from IntelliJ IDEA settings, this question may help:
How do I specify the jdk for a glassfish domain?

Xulrunner fails to launch MyApp

My latest attempt at a workable configuration (Win32) is this one found on kodewerx.org: http://www.kodewerx.org/wiki/A_Brief_Introduction_To_XULRunner:_Part_2 [dated 2010].
My config is as follows:
c:\program files\xulrunner\xulrunner.exe ..et all..
c:\program files\myapp\application.ini
I have added c:\program files\xulrunner to the system PATH.
From the command prompt xulrunner.exe executes and throws up its default help page.
So xulrunner.exe runs.
I have used Mozilla's Dev Org app for jump starting add on development: http://www.mozdev.org/projects/wizard/
I used a Application configurator which has provided me with a large number of files, in a typical moz/chrome layout.
c:\Program Files\MyApp\application.ini
c:\Program Files\MyApp\defaults\preferences\prefs.js
c:\Program Files\MyApp\chrome.manifest
c:\Program Files\MyApp\chrome\content\[*.xul|*.js]
c:\Program Files\MyApp\chrome\locale\en-US\*.dtd
c:\Program Files\MyApp\chrome\skin\*.css
I am uncertain about the minimum/maximum Gecko versions to specifiy at the current date: I have this for the moment, in application.ini:
[App]
Name=MyApp
ID=myapp#stainsby.ca
Version=0.1
BuildID=0001
Vendor=Stainsby
[Gecko]
MinVersion=1.9.2.0
MaxVersion=28.0.*
Any ideas?

Tomcat - The system cannot find the file specified

I downloaded Tomcat 6 from Tomcat Website and try to install. I found the .exe file in C:\apache-tomcat-6.0.35\bin but when i run the exe file the command prompt disappeared after show "The system cannot find the file specified". I already installed JDK 6 update 29 in my system. Please advice
I had a simmilar problem after installing a java update, but JAVA_HOME was set correctly. If you run tomcat as a service, you might have to right click on the tomcat icon and open java tab and change java virtual machine path or just set "use default".
If I were to "guess" I would say that the JAVA_HOME is not set. But to confirm :
Can you go the command line, make sure that JAVA_HOME is set correctly, startup tomcat (from command line) ? If you run into errors, please send the text output.
Try to run "startup.bat" to start a tomcat instance.
Go to your/path/tomcat and execute script catalina_start.bat .I had the same issue and this worked for me (though I installed Tomcat as a part of XAMPP package)