New answers tagged


The guide that you presented tells you how to set these variables globally - for all users. Since you only want to set these for yourself, you should put them in ~/.bashrc EDIT: As Gilles pointed out in the comment below, .bashrc is intended for interactive settings, and few things can go wrong under some circumstances. Instead, you should put them in ....


Eclipse now requires Java 8 and you're using Java 1.7, this won't work. Install jdk8-openjdk instead and/or wait for the bug in Arch Linux' bug tracker to be fixed.


Requires: java Should do almost what you need. At least on RHEL/CentOS all Java packages habe a Provides: java and that will be pulled in with the above Requires. However you will get the latest Java if none is installed, not the default one. If one is already installed the dependency is already fulfilled and nothing happens.


if you have downloaded the package to your local system then run the below yum localinstall default-jre.rpm reference link


You have to worry about more than just $JAVA_HOME; you also need to set $PATH if you are going to call the commands without an absolute path. ie java and not /opt/java/1.7/bin/java. Now depending on how your script works or how you call java, you have a few options. Bash Script Doing it this way means you do not need to add an extra user #!/bin/bash ...


Apache is a web server. It doesn't have a servlet/JSP engine built into it. You can install Tomcat, which is a servlet/JSP engine, and configure Apache to forward requests for servlets and JSPs to it. You should also know that Tomcat is not a full Java EE app server. It's a servlet/JSP engine, just a subset of Java EE. It doesn't have capabilities for EJBs ...

Top 50 recent answers are included