Cant start IReport 3.0 after uninstalling Java 8 - ireport

I have 3 jdks installed in my machine, 1.6, 1.7, and 1.8. IReport 3.0 was working fine before removing jdk 8. But after removing jdk 8, IReport 3.0 wont start.
Any idea on how to resolve this?
Error:
'javaw' is not recognized as an internal or external command,
operable program or batch file.

When you uninstalled jdk8, it removed [java location]/bin from your Path environment variable. You need to add the bin path of whichever jdk installation you want to use to Path.

Related

SonarQube - Unable to load the Wrapper's native library 'wrapper.dll'

I'm installing SonarQube v5.0.
I'm running Windows Server 2012 64-bit (a virtual OS), Java 1.8 64-bit, and the SonarQube windows-x86-64 wrapper.
SonarQube, whether run via StartSonar.bat using Command Prompt as Administrator or as a Windows Service, keeps throwing the following warning:
WARNING - Unable to load the Wrapper's native library 'wrapper.dll'.
The file is located on the path at the following location but
could not be loaded:
C:\sonarqube-5.0.1\bin\windows-x86-64\.\lib\wrapper.dll
Please verify that the file is readable by the current user
and that the file has not been corrupted in any way.
One common cause of this problem is running a 32-bit version
of the Wrapper with a 64-bit version of Java, or vica versa.
This is a 32-bit JVM.
Reported cause:
C:\sonarqube-5.0.1\bin\windows-x86-64\lib\wrapper.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
System signals will not be handled correctly.
The only info that I've found on the web is some JIRA's from 2010 that don't really help me. I can't create a sonar user on this Windows installation. All my other tools in my CI environment are running on Java 1.8 64-bit, which means that JAVA_HOME is set to JDK 1.8 64-bit. I really don't want to have to run Java 32-bit and the 32-bit Wrapper. That means that the JRE bin/java path at the top of wrapper.conf will have to specify the 32-bit JRE.
What can I do to get rid of this warning?
Not all applications use JAVA_HOME variable, so you can have JAVA_HOME pointing on your 64 bits version while you are using a 32 bits.
Note: the 'Java_Home' key in the registry is not the JAVA_HOME variable.
Well, one way to be sure is to uninstall the current service, with ..\windows-x86-64\UninstallNTService.bat and install the 32 bits version with ..\windows-x86-32\InstallNTService.bat.
If it works, you definitively have a 32 bits JVM.
Installed the service SonarQube in \sonarqube-5.1.2\bin\windows-x86-64.
I just went to the SonarQube in the Windows Services-->go to properties-->Log On tab--->select 'Local Service'(Entered the system password). Thats it!
Issue was resolved.
Hope this helps someone who was not able to resolve from the above posts.
I experienced the same problem with SonarQube 5.6.4 on Windows 7. Editing the sonar.properties file to add a wrapper.java.command=... had no effect. Editing my path statement did the trick, though.
The first two folders in my path statement had been
C:\ProgramData\Oracle\Java\javapath;C:\dev\sdks\jdk1.8.0_112\bin;....
The java.exe in the first (C:\ProgramData\Oracle\Java\javapath) is 32-bit. I just switched the two in my path:
C:\dev\sdks\jdk1.8.0_112\bin;C:\ProgramData\Oracle\Java\javapath;...
Suddenly SonarQube started using the 64-bit java.exe in C:\dev\sdks\jdk1.8.0_112\bin
After making this change, I was able to restart Firefox without any difficulty.
In my case, running on SonarQube 7.3 on window 7 or window 10, I have to update Java version to java 8 to pass this error.
No need for this, In my case I just Installed Java SE JDK 11.0.16 and installed it, and restarted the sonar server and it worked. Below is the URL to download
https://www.techspot.com/downloads/5553-java-jdk.html

Cannot install java_ee_sdk-7-jdk7-windows-x64.exe on fresh Windows 7 Ultimate

When I try to execute the installer, it starts "Extracting Bundled Java SDK ..." and then fails with "Error: Could not find the required version of the Java(TM) 2 Runrime Environment in '(null)'.".
What can I do? The OS is a Windows 7 Ultimate (just installed), virtualized with KVM under an Ubuntu 13.10.
Firefox and LibreOffice could be installed without any problem.
The pre requisite for JavaEE sdk7 installer is to have Jdk 7. So make sure, your environment variable path is pointing to JDK7\bin folder. And check java -version in command prompt, it should show you jdk 7 is current version in your system.
If both of the above are correct and it still doesn't work, then donot double click on the exe file directly, install it from command prompt, by giving location for JRE7 and
helping the installer to find jar files of JRE7, see below:
D:\installables>java_ee_sdk-7-jdk7-windows-x64.exe -j "C:\
Program Files\Java\jre7"
I had same problem, but this worked for me.

Netbeans 7.1.2 Mac 0S X download

I am running Mac OS X 10.5.8 and am trying to run Netbeans 7.1.2. When I run Netbeans I get the following message:
Cannot run on older versions of Java than Java 6 Standard Edition. Please install JAva 6
Standard Edition or newer or use --jdkhome switch to point to its installation director.
Anyway, I am pretty sure I have JDK 1.6 as I have navigated to /Libary/Java and have found a
file that says JDK 1.6.
I tried to download the lastest JDK from Oracle (JDK 1.7) and when I try to open the installer, my mac says:
This Installer is supported only on OS X Lion (10.7.0)
What can I do? I am running out of ideas?
Thanks!
Set the JDK home path in netbeans.conf file, more details here.
See the option netbeans_jdkhome option in Editing the Configuration File section
Hope it helps
Navigate to /Applications/Utilities/JavaPreferences (or something similar) and the current jdk can be set there.

Why is java (32-bit) JDK installer not copying rt.jar file to JRE directory? (Windows 2008 R2 SP1)

The system is using Windows Server 2008 R2 SP1, Tomcat 5.5.28, and Java SE 6 Update 20 for both JDK and JRE.
I updated the system to the latest JDK update, Java SE 6 Update 27, and let it install using defaults; it created a new directory, jdk1.6.0_27, and overwrote the jre directory. It asked to restart and then I noticed Tomcat would not start. I ran the java -version from the jre directory and it outputted
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
I discovered the directory was missing the rt.jar file; I pasted it from the jdk1.6.0_27/jre/bin directory and java -version worked and Tomcat started. My question is why is this error occurring in the first place??? Is it the Java installer?
I ran the Java Automatic update feature (which only updates JRE, not JDK) and it worked without a hiccup. So, why is the Java installer from Oracle.com not updating the JRE directory properly?
Thank you in advance.
I think that's the case all Windows installers have this obligatory phrase:
Please close all running programs before you continue with installation
I think something was holding the old rt.jar and installer has a bug that cannot cope with this condition.

"JRE 1.3 or higher must be installed!" / "JDK 1.3 or higher must be installed!" errors installing JAI 1.1.3 on Windows 7 (x64)

I am getting these errors...
Severe: JRE 1.3 or higher must be installed!
Severe: JDK 1.3 or higher must be installed!
...when installing JAI (Java Advanced Imaging) 1.1.3 on Windows 7 (x64), with JRE 7 (1.7) installed at "C:\Program Files\Java\jre7" and JDK 7 (1.7) installed at "C:\Program Files\Java\jdk1.7.0".
Following http://download.java.net/media/jai/builds/release/1_1_3/INSTALL.html#Windows, specifically this is what I did:
Visited:
http://download.java.net/media/jai/builds/release/
http://download.java.net/media/jai/builds/release/1_1_3/ (latest version)
Downloaded:
http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586-jdk.exe
http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586-jre.exe
http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586.exe
http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586.jar.zip
EDIT (QUESTION): It would be great if someone could break down the difference between these files. The instructions at http://download.java.net/media/jai/builds/release/1_1_3/INSTALL.html#Windows do not go into enough detail and assume you already know what's what.
EDIT: As noted in the comments below, the .exe are exclusive installs, but I wished to install them to all three locations (to "C:\Program Files (x86)\Sun Microsystems\Java Advanced Imaging 1.1.3" as well as to my JDK and JRE locations), as I was not sure which I would need at my work as a Java developer. As far as I know, I just need to install the JDK version, and the .zip is a manual install of the same thing. I am not sure though! Unverified.
Installed:
jai-1_1_3-lib-windows-i586.exe (installed fine)
jai-1_1_3-lib-windows-i586-jre.exe <---- this is what causes one of the errors.
jai-1_1_3-lib-windows-i586-jdk.exe <---- this is what causes one of the errors.
The errors appear to be the same issue of not finding where Java (JRE and JDK) is installed.
I have the following environment variables set:
JAVA_HOME = C:\Program Files\Java\jdk1.7.0
Path = ...;C:\Program Files\Java\jdk1.7.0\bin
EDIT: This makes me think the problem is something deeper than environment variables, as there's no environment variables for JRE like there is for JDK (i.e., JAVA_HOME), right?
Fixes I have tried (to no avail):
Re-installing*.
Re-downloading and re-installing*.
Adding "C:\Program Files\Java\jre7\bin" to "Path" and re-installing*.
Adding "C:\Program Files\Java\jre7" to "Path", without removing the above Path addition, and re-installing*.
Adding "C:\PROGRA~1\Java\jre7" to "Path", and verified it was the proper folder, and re-installing*.
Changing JAVA_HOME from "C:\Program Files\Java\jdk1.7.0" to "C:\PROGRA~1\Java\JDK17~1.0", and verified it properly forwards back to the original folder in Windows, and re-installing*.
Re-installing Java to a non-space folder, "C:\xxx\xxx\jdk1.7.0", where the x's are letters not spaces, and verified it works properly with "java -version" command line, and re-installing**.
*Downloading and installing jai-1_1_3-lib-windows-i586-jre.exe
**Downloading and installing jai-1_1_3-lib-windows-i586-jdk.exe
None of this worked. :(
I have not tried:
Using an older JRE than 7 (1.7)
Any help would be great.
POSSIBLE (HACK) SOLUTION: What about manual installation? It's what we've opted to do at work. Is it possible to figure out what files are installed (without installing it since I cannot)?
EDIT: I have also verified that "JAI (Java Advanced Imaging) Image I/O" has the same problems on my system.
JAI is only available on 32bit (x86) JRE, so you need to install the 32 bit JRE on Windows 7.
JAI uses some native implementations (dlls) in order to accelerate the processing, so only installs on a 32bit JRE.
When installing JAI, it tries to detect the installed JRE and should be a 32bit JRE. You can install 32bit JRE on a Windows 7 x64, the only "difference" is the performance and the maximum memory available to java applications.
Install JAva 7 JRE 32bit from http://www.oracle.com/technetwork/java/javase/downloads/java-se-jre-7-download-432155.html select "Windows x86 Offline".
Another way is manual installation from JAI as zip, use jai-1_1_3-lib-windows-i586.jar.zip and execute from the 32bit JRE.
install a JRE version 1.3 or later? (and make sure that your PATH points to it)
[edit]
Are you sure there's a problem? It seems that 3 files you downloaded are mutually exclusive (that's what I got from reading the installation instructions)
http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586-jdk.exe
http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586-jre.exe
http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586.exe
Installing -jre or -jdk may be redundant
I installed the jre version and it asked me for a jre directory - any of that happen to you?
[/edit]
try to install (reinstall) java (jre) in folder without any spaces. For example C:\Java\jre7.
You must install 32-bit version of jdk
I solved this problem by installing 32-bit version of jdk.
My OS is window 8 64-bit.
when installing jai-1_1_3-lib-windows-i586-jdk.exe and jai_imageio-1_1-lib-windows-i586-jdk.exe with double clicks, i got the same error "Severe: JRE 1.3 or higher must be installed!"
then I downloaded jdk-7u21-windows-i586.exe and installed it in "c:\Program Files (x86)\Java".
and then it's OK.

Resources