Only this fixed my error:
If you are not able to launch a jnlp application after installing UFT
on you machine, Just uninstall UFT and try to launch the application
and then install UFT
I am not sure what to do when this issue is back as I didn't really solve the issue structurally. My question is what could have made this behavior possible? During the issue phase, I was not even able to launch Java Control Panel (.cnpl) or javaws instance for any jnlp. changing the environment variables also didn't work. Reinstalling Java also didn't.
The environment variables that UFT adds by default for Java Add-In might be causing issue.
Try removing or renaming JAVA_TOOL_OPTIONS and _JAVA_OPTIONS environment variables, although if you want to load Java Add-in support for your application these environment variables are needed.
Read below for more information:
https://admhelp.microfocus.com/uft/en/14.50-14.53/UFT_Help/Content/Addins_Guide/Checking_Java_EnvironmentVariables_Settings.htm
Related
My environment is Windows 10, JRuby, and Java 1.8.
Running the JRuby program
java_import javax.swing.JFrame;
JFrame.new("abc")
(which is actually part of the jirb_swing script that comes with JRuby) now results in an error
java.awt.AWTError: Assistive Technology not found: com.evidian.wg.jpi.WGJPI
I am not aware that I have changed something in my Java/JRuby configuration, although our centrally managed Windows 10 might have been updated overnight. In any case, the code has worked so far without error.
I have found this link to a similar problem, but it refers to WSL, and I don't use WSL.
SOLVED the case by installing a fresh copy of Java (for the safe side, I installed all of the SDK, and not just the Java runtime) in addition to the existing one (i.e. I did not make an uninstall), and I made sure that the JDK's bin directory is first in the PATH. I also set the JAVA_HOME environment variable to this directory (it was unset before). After doing this, the error seems to be gone.
I have an Owasp Zap program that was working fine on java8, Windows 10. Recently, I upgraded to Java 11 as our automation project will not run on anything else. I have removed Java 8 folders from my C: drive and edited the environment variables and everything works fine except for Zap, which gives the error:
This application requires a Java Runtime Environment 1.8.0. The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.
I went to my registry but under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\ there was only references to the 11.0.5 jdk
I don't have anything in my environment variables pointing to the old jre as far as I can verify.
I don't have java 8 in Control Panel\All Control Panel Items\Programs and Features, although maybe when I deleted it, I deleted manually and should have ran a cleanup program.
Following some advice here, I looked for a jvm.dll file in Runtime Lib in my registry, but I don't even see a Runtime Lib. I also don't see any of the other java related folders other people mentioned finding in their registries that fixed this problem for them. This is what my registry looks like:
Also I noticed in Control Panel > Programs, there is a link for Java referring to the Java Control Panel, but it is a blank file icon, and when I click it, i get the message "Application not found"
Unfortunately, IT took my admin rights so I can't uninstall and reinstall Zap, but I'd love to solve this this weekend if it's possible.
I have uninstalled the old runtime and download the offline installation from https://www.java.com/en/download/manual.jsp. After installing the offline installation it's working fine for me.
I'm trying to install ElasticSearch on my machine. The goal is to install everything without setting JAVA_HOME as it may interfere with other software
I downloaded the latest JRE and installed it. At this stage JAVA_HOME is not set and that's exactly what I was expecting
Then, I ran the following:
elasticsearch-service.bat install elasticsearch-service
"C:\path_to_my_jre"
First problem: if the path to my JRE contains whitespaces the command will fail. If I place the JRE on a path without whitespaces it works fine.
After some struggling the ElasticSearch service is now installed correctly
Unfortunately if I try to run the service (from the Windows services panel) it doesn't start, the log file states that JAVA_HOME is not set.
It is possible to avoid setting JAVA_HOME globally? Setting it would mean interfering with other applications and I don't want to take that risk
I noticed that the Windows service being created calls the elasticsearc-service-x64.exe passing it a weird parameter \RS.... . What's that parameter? Can I pass a custom JRE path to that executable and avoid setting JAVA_HOME alltogether?
I was reading some articles about how jvm works, and i tested that if i change the jre from Eclipse(installed JREs), the code will be executed in that jvm. So my question is why the eclipse needs to have JAVA_HOME set in environment variables. Does eclipse use that JRE in any form if i select another in Eclipse(installed JREs)
Eclipse does not require JAVA_HOME to be set, but as info for you, many MANY tools that you can find over the web use inter under the hood oracle tools, those will never run if your computer has no idea where they are located, JAVA_HOME is just a variable in the enviroment, so you( and the tools you use) can execute things like javac or java without telling every time where those are in the pc
.
Am getting the following error message while trying to run java. I have typed in java -version but am getting error:
C:\>java -version
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\
bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
Error occurred during initialization of VM
Could not find agent library jvmhook on the library path, with error: Can't find
dependent libraries
Java is being invoked in a slightly abnormal way.
I have multiple answers depending on your Java version number and whether or not you wish to perform automated testing on your computer.
HP's Quick Test Professional (QTP, an automation tool) has been installed on your computer; this is the program which creates _JAVA_OPTIONS (and usually also IBM_JAVA_OPTIONS) to be what you observed in your post:
-Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\
bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
QTP puts these in place so that it can recognize Java objects, allowing you test a Java application.
It also can create environment variable
JAVA_TOOL_OPTIONS with
-agentlib:jvmhook
which is required for working with Java 1.6
If you do not require QTP to perform tests against Java applications then you can experiment with removing these environment variables.
Pro-tip for easy reverting, just amend the Environment Variable names (e.g. rename _JAVA_OPTIONS to IGNOREME_JAVA_OPTIONS)
*Environment variables require local admin privileges and a system restart to take affect.
If you are using Java version 1.5 or older then you can probably get away with removing JAVA_TOOL_OPTIONS only.
The jasmine.jar seems to be troublesome to a number of java applications; I have had considerable difficulty with this stopping my applications from running in the past.
The _JAVA_OPTIONS environment variable is making some very serious modifications to your Java environment -- and obviously doing it wrong, since it's not launching. I don't know what is setting that environment variable, but if it's not something you're trying to do yourself, if I were you I'd make a note of the value just in case you need to restore it, then go to your Windows "System" Control Panel and remove _JAVA_OPTIONS altogether.
I'm using Intellij IDE. Removing .idea folder from project's local directory solved this issue.