I can't find the Java Control Panel on Windows 11 - java

I had this error when i tried to run this AR project jyotivasu
/
ARCore-Android/ARCore-App-Local-3dModel/ on the android studio:
Cause: com/android/tools/idea/gradle/run/OutputBuildAction has been
compiled by a more recent version of the Java Runtime (class file
version 55.0), this version of the Java Runtime only recognizes class
file versions up to 52.0
I've found a similar one to it here Class has been compiled by a more recent version of the Java Environment, so I'm looking for a way to upgrade/downgrade the version of Java, but I can't find Java control panel anywhere, I tried check the "Control Panel\All Control Panel Items", tried small icons, I tried this command javaws -viewer on cmd, win Run, PowerShell but it gives me an error 'javaws' is not recognized as an internal or external command
What can I do?

Right-click on the Start button and select the Control Panel option. In the Windows Control Panel, click on Programs. Click on the Java icon to open the Java Control Panel.

Related

For Apache NetBeans IDE 11.2, how do I point it to the correct version of JDK on my Fedora Linux System?

In NetBeans, I'm getting the error: Additional modules are needed to run Java SE support on JDK 8. How do I point Netbeans 11 to the correct version of JDK 8? I know where it is on my Fedora system, I just don't know how to tell Netbeans where it is. I'm on a standalone system, not connected to the internet. As a result, I'm unable to click the "Download and Activate" button, and for some reason the "Activate" button next to it is grayed out. I am unable to download the NetBeans IDE Plugin installer.
Under the Options >> Nashorn tab, I see that there is a way to import a path to JDK 8, but when I attempt to select it, then I get the following error: "Folder does not seem to be a valid userdir. Importing options from this location cannot proceed."

Java not found error when loading Apache Netbeans 9.0 or 10

I downloaded the archive for the program, unzipped it to C drive on Windows, then when I try to run either executable (32bit/64bit) in the bin folder I get the error message:
Cannot find JAVA 1.8 or higher.
in spite of Java 10 (JRE) being already installed. I also tried Installing Java 9 but was stuck with the same message.
I appreciate your help with this, Thanks.
Locate your Netbeans installation and in it the etc/netbeans.conf file. Open it with any text editor, and locate the line containing netbeans_jdkhome. If it is commented out (line starts with #), then remove the # to enable the setting. Then, set the value to the path to your JDK. This might be somethiing like C:\Program Files\Java\jdk-10.0.1.
Try to run the program again, it should work now. At least, it did for me.
Also, ensure that you installed the Java Development Kit (JDK), not only the Java Runtime Environment (JRE). Netbeans needs the former to be installed in order to function.
I experienced the issue after I updated Java and the version changed but the netbean.conf had the older version which is invalid.
The remedy is go into that file via notepad, or any text editor and then update the path with the correct version number, i.e. netbeans_jdkhome="C:\Program Files\Java\jre1.8.0_311".
You would go determined your latest Java edition, by pulling up the Java control panel and then hit the middle "Java" tab, hit "View" to see the current version you have installed.
This is the issue of compatibility of Netbeans with your installed jdk version
Locate your etc/netbeans.conf file and Open it. In the #netbeans_jdkhome="C:\Program Files\Java\jdk-17.0.1" replace the given path with your installed jdk. It will work

Ecilpse Oxygen.3a Java IDE cannot add window GUI via window builder error opening wizard

I try to use the Eclipse Oxygen v4.7.3a (Oxygen) Java IDE.
I try to use window builder to build a GUI application with Java, but when I try to add the window I have an error message.
I tried to google it, but I cannot even know what that message needs from me.
It says:
problem opening wizard
The selected wizard could not be started.
Plug-in org.eclipse.wb.swing was unable to load class org.eclipse.wb.internal.swing.wizards.application.NewSwingApplicationWizard.
An error occurred while automatically activating bundle org.eclipse.wb.core.java (528).
My java -version output:
OpenJDK version "10" 2018-03-20
OpenJDK Runtime Environment (build 10+46-Ubuntu-5ubuntu1)
OpenJDK 64-Bit Server VM (build 10+46-Ubuntu-5ubuntu1, mixed mode)
I had exactly the same error occur in Eclipse Oxygen.3a on my Mac with Java JDK 10 installed. There is code in WindowBuilder 1.9 that uses a Java feature that was either altered or dropped in Java 10. I was able to resolve the problem by making two changes (they assume that a Java 9 JDK is available on your system; if not, you must install it):
change the Java VM for Eclipse to one in a Java 9 JDK (using the -vm setting in eclipse.ini; see this link for a good post on how to do that)
change the JRE for the project to a Java 9 JRE
The first change is the more important one since Window Builder is a development aid running as part of Eclipse.
I made the project JRE change for my own sanity so I didn't have a mix of Java versions. You may be able to skip that change (I didn't try it).
I still have Java 10 as the default for the system, so you don't have to completely fall back to Java 9 if you install both JDKs. It may take some tweaking to get both Java 9 and 10 installed and have the one you prefer working as the system default.

Uninstall of jre 1.8 windows 7 in wrong way - now all .exe files open as binary in text editor

I cannot open any programs ending with .exe, not even the command line because all files with .exe extension are opening as binary in a text editor. I am on a 64-bit machine running windows 7. Prior to this issue I already had:
jdk's 1.7 and 1.6 installed, with the windows java environment set to use JRE 1.7 (setting through control panel -> java -> java tab).
Steps that created the issue:
Program needed JRE 1.8 to run/launch. So following Oracle/Java prompts I installed JRE 1.8.
LCompleted the activity I was doing.
Went to launch Spring Tool Suite to do development
Spring would not launch because it is configured to use 1.6
Went to programs/java/jre1.8 folder & deleted it to see if it would then pick up jdk 1.6 instead.
This did not work. Checked java -version from command line, & it listed 1.8
Went to Control panel -> java ->java tab & deleted 1.8 line from available JRE's/JDKs, & had only 1.7 present
Went back to command line after logging out/in so changes would be registered by the machine, & "java -version" still said 1.8
Made mistake of then, with programs/java/jre1.8 folder still in trash, of going to control panel -> programs and features -> java 8 entry & hitting uninstall.
I can't even open a command line or a web browser on that machine. Anyone know steps to fix?
Open an administrative command prompt and use the command "assoc .exe=exefile". That should restore your .exe file association. If you can't open your command line through regular means, try opening task manager and selecting File -> New Task -> cmd

Change java version used by java applets in browser

I am trying to do some automated testing with selenium on a site that has a java applet. Specifically, I want to test different java versions on different browsers.
It is relatively easy to change the jre that is being used by local applications/commandline - usually just a modification of the PATH and perhaps a registry tweak (HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Runtime Environment/CurrentVersion seems to need to be changed sometimes).
But I can't seem to manage to change what a browser applet uses. It is my understanding that this version is determined by the plugin for that browser. I've tried to get around this by actually uninstalling all the jre on the machine, then installing the specific version I want to test. However, I need java to be available at all times so I am preserving a jdk (1.8.0_25).
This works, sometimes. Recently I've been trying to install jre7 (update 71 and update 72) but neither installation seems to affect the version of java used in the applet. In firefox, the add-ons page shows Java (TM) Platform SE 7 U72 10.72.2.14 under plugins, and yet it is running 1.8.0_25 in applets (from http://javatester.org/version.html)
My question is: how can I ensure that a specific version of java is running in browser applets? Sorry if my situation is a bit confusing - I've tried cutting it down to the bare minimum.
OS: Windows 7 Enterprise
Browsers: Chrome 39.0.2171.71 m, FF35.0, 33.0, 27.0, IE8
Reference Java Control Panel
Java
The Java panel looks like this:
Click the View... button to access the Java Runtime Environment
Settings dialog. Java Runtime Environment Settings
These settings will be used when a Java application is launched. The
Java Runtime Environment Settings dialog looks like the following on
Microsoft Windows:
Each row in the Java Runtime Versions panel represents a Java Runtime
Environment that is installed in your computer. You may modify the
value in each cell by double-clicking it:
Platform: The version of the Java Runtime Environment
Product: The full version number of the Java Runtime Environment (which includes the update number)
Location: The URL that Java Update Scheduler uses to launch automatic updates
Path: The full path name of the Java Runtime Environment
Runtime Parameters: Optional custom options used to override the Java Plug-in default startup parameters
Enabled: This option is for selecting which of the (older) JRE versions to consider when running an app using Java Plug-in or Java
Web Start. If this check box is not selected, then Java Plug-in and
Java Web Start will not use this JRE to launch Java apps. However, the
current JRE might be used regardless of this checkbox. This checkbox
does not affect stand alone applications, it is only for Java in the
browser. Note that if all Java apps are disabled from running in the
browser, by de-selecting Enable the Java content in the browser in the
Security panel, enabling the JRE here has no effect.
Use the Enabled checkbox to select which JRE to use when running an app using Java Plug-in or Java Web Start.

Categories