简体   繁体   中英

Apache Tomcat Still Looking for Uninstalled Java Version

I have jasperserver running on apache tomcat on a web application. I have Java version 1.4 installed and the correct JAVA_HOME environment variable set. I can get to "myurl:8080" just fine and it shows the apache tomcat page. Originally i installed java 1.8 which seemed to be incompatible for my old version of jasperserver.

I needed to install an older version of Java, so i uninstalled 1.8 and installed 1.4 on my linux instance for my Java App. However, when i try and connect to jasperserver through the app, it seems like it is still looking in the old directory for old java library. How can i configure this to look at my new directory in same location? The error is below.

java.io.FileNotFoundException: /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar

The correct version of java is located below.

/usr/lib/jvm/java1.4.2_18/

Try changing the java_home and jre_home environment variables path,if you update java version.The environment variables need to be edited. Here is how to change or edit the environment variables

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM