I am trying to install Java JDK & Tomcat on my Fedora 13, however I am facing lots of issues.
I have gone through many blogs and many Stack Overflow posts, but still I am unable to configure it properly.
Info:
- I am trying to install JAVA JDK using .rpm package as I am unable to do it using YUM repository. (You can also tell me how can i install yum repository).
I tried to install the JDK & tomcat but after installation, when I tried to start tomcat using startup.sh, it was giving error like:
Using CATLINA_HOME Using CATLINA_BASE etc etc
How to find JDK path & configure JAVA_HOME path.
I know my questions are really confusing, but I need help. Links to posts of related questions would be appreciated as well.
Installing JDK on Fedora:
1 ) Please visit sun java website to download any java jdk version you like. http://java.sun.com/javase/downloads/index.jsp
2 ) Click download, select Linux platform, language and accept license and continue.
3 ) Select “Linux RPM in self-extracting file” and download jdk_filename-rpm.bin file (jdk-6u6-linux-i586-rpm.bin).
4 ) After downloaded, changed to the directory where you saved the file.
5 ) login to root user or su to root or sudo, and issue ‘chmod +x jdk_filename.-rpm.bin’ to make it executable.
6 ) Execute it
7 ) Press space bar , repeat until system prompt to enter yes or no, type y and enter to continue.
8 ) This will output a .rpm file in same directory
9 ) Issue
rpm -i jdk_filename.rpm
, this will install all jdk files on linux system /usr/java/jdk-version/10 ) Create symbol links to make it execute anywhere
11 ) type
java -version
, DONE !!Post-Installation Setup Set JAVA_HOME into environment variable
Copy following statement and append to /etc/profile or .bashrc file, make system set JAVA_HOME into system environment variable.
Install Tomcat 6 on Fedora
On Fedora 13 a CATALINA_HOME environment variable is not explicitly defined following a Tomcat 6 install. It is essentially equal to /usr/share/tomcat6/ though. This threw me off when reading Tomcat 6 guides that routinely refer to a CATALINA_HOME. You could add one to your ~/.bash_profile if it helps.
Run tomcat and hope it works.