How to run uiautomatorviewer in java 11? - uiautomatorviewer

C:\Users\Shruti>uiautomatorviewer
-Djava.ext.dirs=C:\Program Files\Java\jdk-11.0.14\lib;..\lib is not supported. Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
First I had java 15 but I heard java 8 is compatible for uiautomatorviewer but it didn't helped then I uprgaded it to java 11 but same issue plz help

I couldn't make it work with Java 11 and I doubt it's possible to as there may be substantial differences in the APIs used, but I was able to run it using Java 8 while maintaining Java 11 as the default java.
Simply open <android-sdk>/tools/bin/uiautomatorviewer with a text editor and replace
javaCmd="java"
with
javaCmd="/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java"
(or whatever your path to java 8 bin is located)

Related

plr.dll: %1 is not a valid Win32 application

I have Postgres version 10 installed running under windows 10 enterprise using the pl/r interface. It has been working nicely up till now. Now I get
ERROR: could not load library "C:/Program Files/PostgreSQL/10/lib/plr.dll": %1 is not a valid Win32 application.
error message. I tried to download and replace the Pl/r files (both the 64bit and the 32 bit versions), stopped/restarted the service, but it did not help. Any suggestions?
I found the cause: Rdotnet needed the 32bit version of R and I changed the path (and forgot all about it). The error message was misleading, because it R had the wrong version, not the plr.dll. (if I copied the 32bit version od the dll it still didn't work). So thanks for trying to help.

No supported SDK compiler found on this computer/LIBSVM

I try to install LIBSVM on a Windows 10 PC. Everytime I try to run the make file I get the following error:
No supported SDK or compiler was found on this computer.
For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2013b/win64.html
I have tried to install all supported compilers and non of them worked and I stil get the error message back. Also when I type mex -setup it says:"No supported SDK or compiler was found on this computer. "
I have read this question and several others: https://de.mathworks.com/matlabcentral/answers/100144-why-does-mex-not-find-the-microsoft-windows-sdk-7-1-installed-on-64-bit-windows-in-matlab-7-14-r201 and also tried to isntall the respective batch but as I said I am using Windows 10 not 7 and it gives me the respective error message. Moreover I have installed not only the compiler but also the .NET Framework 4. I have also installed the dependency walker and it does not show me any missing packages.
As you can possibly see from the question I am not an expert but I am searching for hours now and I get back the same error message again and again.Are there any suggestions how I could make LIBSVM work?
Thanks
Carlos
Cannot install Windows SDK 7.1 on Windows 10
That did the trick--in case anyone ever stumbles upon the same problem.

Atg dyn exception

I face the below error while trying to run http://localhost:7103/dyn/admin/
atg 10.1.2 on windows 7 dyn/admin
The detailed exception is: java.io.IOException:
Cannot run program "javac": CreateProcess error=87,
The parameter is incorrect
this appear because windows has limitation on command parameter lenght
please advice how to solve this issue.
According to the ATG Support site:
Oracle Commerce ATG will convert JHTML pages into Java servlets and
then compile them into class files using the javac Java compiler. By
default, the javac executable is invoked to perform the page
compilation.
These errors point to a low level problem invoking the javac compiler. error=87 is mainly a problem on WebLogic 12 which has many different libraries in deeply nested directories.
The solution (which works for me on ATG11.1 and Weblogic 12.1.3) is
Edit or create the files
<ATG_Home>/localconfig/atg/dynamo/servlet/pagecompile/PageProcessor.properties
<ATG_Home>/localconfig/atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor.properties
(I prefer to create them in an <ATG_Data>/servers/<servername>/localconfig/... folder but not sure of your setup)
Add these lines to the created above.
# Use java's internal compiler - only use this when using Oracle's JVM.
javaCompilerClassName=atg.servlet.pagecompile.SunJavaSourceCompiler

Eclipse error: Java started exit code=1

I just downloaded the Eclipse Classic from Eclipse.org but when I open it, I get this error message:
I'am using Windows 7 64-bit (and I also downloaded the windows7-64bit version)
"Mapper" means Folders in danish btw.
Check if your JRE/JKD is also 64 bit.

Java compile on Ubuntu with openjdk, then run on windows with sun java gives error

I have been developing a Java program in Netbeans/Ubuntu 12.04 using OpenJdk. I have got this program to run successfully using the .jar in Linux, but when I copy the .jar to my Windows 7 virtual machine I get the following error;
"Could not find the main class: testprogram.Main. Program will exit."
Also this program uses no external libraries.
How did you start your program? Did you use java -jar yourjarfile.jar?
Maybe your Manifest file does not defined applycation entry point. You can study this topic here.
My fix to this problem was to use JDK 6 as opposed to JDK 7, still unsure as to why this error was produced, but this change has fixed the problem.