Getting error while running jaiImageIO.exe files - java

I need to undate an .tiff image using Java.
There are 4 jars on oracle site to download the jaiImageIO jars.
jai_imageio-1_0_01-lib-windows-i586-jdk.exe
jai_imageio-1_0_01-lib-windows-i586-jre.exe
jai_imageio-1_0_01-lib-windows-i586.exe
jai_imageio-1_0_01-windows-i586-jar
I downloaded all the four jars, but when I try to run first one i.e jdk.exe getting error "Jdk 1.4 or higher is required" but I already have jdk1.7 installed in my system. Can anyone please suggest me how should I proceed. While running jre.exe its working fine.

Try jai_imageio-1_0_01-lib-windows-i586.exe. it will install libs on your machine. .exe with jre/jdk suffixes will always check for certain JRE/JDK.

Related

IntelliJ Cannot start under Java 1.8.0: Java 11 or later is required

I had some problems with JRE versions, so I tried to change it using the plugin Choose Runtime. I changed it to Java 1.8.0_112-release-287-b2. Now, when trying to start IntelliJ, i get an unsupported Java version error: Cannot start under Java 1.8.0_112-release-287-b2: Java 11 or later is required. I have tried to modify the runtime path in the ide64.exe.jdk file, but it seems like the old jdk IntelliJ ran on has been deleted. I also tried reinstalling intellij, no luck either. Anyone know how to get back the JDK? do I just download it from oracle and install it in the IdeaIC2020.3\jdks\ folder?
Thanks,
Jakob
I went to the jdks folder and deleted all contents. This fixed the issue. IntelliJ started without a problem.

Unable to run executable jar file using double click

I was having jdk_1.6 in my machine and I removed it and installed jdk_1.7. So after installing jdk_1.7 I am not able to run my jar file with double click. I could run the same file using command prompt.
After installing jdk_1.7 I run the program from eclipse using java 7 and I exported jar using the same.
I am using following command for running jar:
>>java -jar csv_generator_1.jar
And this works fine and jar get executed.
But when I right click and open with javaw.exe in jad/bin folder or jdk/jre/bin/ folder it's not working.
I found same question here link1 and link2, but I am not understating what to do.
Can someone help me to resolve this?
Go there and download newest verson of java RE and install it and it should work. But if it does not work you should get some kind of error message and try to google it. It is possible that your java(s) are broken.
If you install JDK, you may think it contains JRE but it's private. At least that was stated during installation process. Therefore, you had to install Public JRE.
JDK installer provides an option to do so but if you didn't check it, you might experience the problem you described.

Files\Java\jjre1.8.0_51\bin\server\jvm.dll file is missing

happens when I try to run Mods on Crazy Craft for Minecraft. Tried their support and no response or solution.
comes up with
Error: missing 'server' JVM at 'C;\Program
Files\Java\jjre1.8.0_51\bin\server\jvm.dll' PLease install or use the
JRE or JDK that contains these missing components.
I've attempted to download several versions of Java and install them but to no success. Anyway can I code it in or download it from another Java?

java.lang.classnot found exception

I created a jar file from netbeans of my java application which is displaying mysql records. I am trying to run it on another computer which doesnt have netbeans but rather java SE. I fixed a major minor version issue by installing a latest java SE version. It is now running the jar file by now the next issue is it is giving me the java.lang.classnotfoundexception: con.mysql.jdbc.Driver
I tried to copy the mysql-connector-java-5.0.8-bin into second computer as well, but no luck.
Actually I need a solution where I just copy the jar file and able to run it as a server. I want to install it on multiple computers on the site, which might not allow me to install netbeans from internet.

Error Could Not Find or Load Main Class

Using NetBeans IDE 7.3.1, I modified a desktop application under Windows 7, using JDK 1.7. Performed clean and build, and tested this application under Windows 7, Windows XP, and on a MAC. All test scenarios run under each operating system performed as expected.
This app is ported to outside vendors, and all vendors, except for one, have loaded and executed the app without any issues.
The one vendor encountering problems, and running under Windows XP, returns an error message - "Could Not find or load main class". After doing a little research, this error usually indicates the JDK is different. They downloaded and installed JDK 1.7, but the same error message appears. I had them go to http://javatester.org/othertesters.html, making sure that java was working on the workstation and verifying the java version (1.7). They reinstalled JDK 1.7 and still receive the same error.
I have duplicated the error by removing JDK 1.7, loading JDK 1.6 and running the app. Receive error ("Could Not find main class"). A little different than what they receive, but basically the same problem. Removed JDK 1.6, loaded JDK 1.7 and problem disappears.
I'm at my wits end! I am going to make an appt. to access their workstation. But before I do, I would like to put a plan in place to try different scenarios to fix the problem. I don't know how to proceed, since I've run out of options. I'm hoping for any suggestions.
OK,
Problem solved. Sent application via outlook, modifying executable file from .jar to .txt b4 sending application. I didn't think about looking in compressed LIB directory. Four files were .jar files.
These files were quarantined. Renaming these files to .txt b4 compressing app would have eliminated the problem. Resent the zip, vendor extracted and renamed all .txt files to .jar. All is well.
Appreciate everyone's input.
I believe they still have a JDK 1.6 on their machine and use this, for some reason, to try to execute the application. I've seen this various times at customer workstations.
Very often, people are not aware of what they have installed. Tell them to remove all JDKs and JREs from their workstation, by way of uninstallers and looking into the program folder and deleting stuff manually. Tell them how to do it. Do this with them during a phone call.
Then have them reinstall JDK 1.7. I'm almost sure it will work afterwards.
Alternatively, you can compile the application for older JDKs. You can also do this using JDK 1.7 by setting the target version for the classfiles.
Make sure that their JAVA_HOME path is pointed towards the JDK 1.7 install. I have had similar issues where I had multiple JDKs installed, needed to use the latest, but the computer was pointing to an older version.
To find what version the java_home is type java -version in the cmd.
How to find java_home: How do I find where JDK is installed on my windows machine?

Categories

Resources