Results 1 to 5 of 5
I cannot seem to get everything working correctly. When I try to start Tomcat using service tomcat5 start I get
Code:
Starting tomcat5: /usr/bin/rebuild-jar-repository: error: JVM_LIBDIR /usr/lib/jvm-exports/java does not exist ...
- 08-19-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 6
problems with Tomcat
I cannot seem to get everything working correctly. When I try to start Tomcat using service tomcat5 start I get
java -version gives meCode:Starting tomcat5: /usr/bin/rebuild-jar-repository: error: JVM_LIBDIR /usr/lib/jvm-exports/java does not exist or is not a directory /usr/bin/rebuild-jar-repository: error: JVM_LIBDIR /usr/lib/jvm-exports/java does not exist or is not a directory /usr/bin/rebuild-jar-repository: error: JVM_LIBDIR /usr/lib/jvm-exports/java does not exist or is not a directory /usr/bin/rebuild-jar-repository: error: JVM_LIBDIR /usr/lib/jvm-exports/java does not exist or is not a directory [ OK ]
and I am running MYSQL 5.1Code:java version "1.6.0_16" Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
My main goal is to get Mondrian working, and I cannot get past this problem.
I would love to get this sorted out, and would really appreciate anyone helping me out. I am going crazy over it.
- 08-19-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
It seems your Java environment isn't configured or installed correctly. There should definitely be a /usr/lib/jvm-exports/java directory/link. Look there and follow the links. It may be that the final target link doesn't exist or is not writeable.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 08-19-2009 #3
find the easiest way to make tomcat working :
have a look if you find some thing interesting
Tomcat 5 on Linux Step-By-StepSorry, it was unintentional.
You should have told me at least once and i could have fix it.
thanks for reminding me.
- 08-19-2009 #4Just Joined!
- Join Date
- Aug 2009
- Posts
- 6
I think you are right. Here is an excerpt of a guide I followed to install java since I cannot post URLs:
Code:. Download and install jdk. Now you need to find the actual location of your JDK installation and indicate to Fedora to accept your choice. Type the following: updatedb;locate javac |grep bin You will see an entry like this: /usr/java/jdk1.6.0_02/bin/javac Here /usr/java/jdk1.6.0_02 is the actual JAVA_HOME for your machine. Note this as you will need it to run the future commands. Now you need to run the alternatives command to instruct Fedora to recognize Sun's JVM. alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_02/bin/java 100 alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_02/bin/jar 100 alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_02/bin/javac 100 You can do this for other Java executables too, should you need them, following the same pattern. Note: If alternatives is not in your path then use locate alternatives to locate it. Finally you should configure alternative to use Sun's JVM as the default JVM. To do this type: /usr/sbin/alternatives --config java This will present you with at least 2 options. Choose the one for Sun's JVM. Similarly repeat the process for other commands. Now you are done configuring Fedora for the most part. Type java -version and you should see something like this: java version "1.6.0_02-ea" Java(TM) SE Runtime Environment (build 1.6.0_02-ea-b02) Java HotSpot(TM) Client VM (build 1.6.0_02-ea-b02, mixed mode, sharing) Note: This works for most part, except Tomcat. The default installation of Tomcat has been hardwired to use GCJ. I changed the configuration file and it didn't help. My solution for Tomcat is to ditch Fedora's version and install directly from site. It works like a charm. Set JAVA_HOME to the value we found above and you are done.
I followed that stuff and installed java on my own. Perhaps I should have used yum for that as well. I think somehow I should start over, however I do not know how to reverse the changes I made by following the above directions.
- 08-19-2009 #5Just Joined!
- Join Date
- Aug 2009
- Posts
- 6
fixed. thanks for the help guys.


Reply With Quote
