David Oxley wrote:
> I am about to install our software onto a RedHat 7.0 box. I have tried
> before to install Sun's JRE onto RedHat and failed. I have a couple of
> questions:
>
> 1. What is the best JVM to use? (Stability more important than performance)
I recommend the IBM version; you can download an rpm for linux from their
site.
Then I would go get H.Gomez's tomcat rpms ; for example from
ftp://rpmfind.net/linux/falsehope/home/gomez/tomcat
which will install tomcat for you as well as an init script to start tomcat as
a service at boot. He also has rpm for the necessary apache modules(mod_jk),
and various versions of tomcat, in case you need to change. I strongly
recommend
these: all the hard work has been done for you.
>
> 2. Are there detailed instructions on doing the install anywhere?
If you get GOmez's rpms, get the manual rpms as well.
ANd even if you decide to use SUn's jvm, get the rpm too.
>
> 3. What is the difference between green and native threads?
> 4. For Suns JRE 1.3, what does the classpath and path have to point at?
In general, if you want to type "java" at the command prompt to execute it,
it will have to be in your shell's path. Suppose you installed the IBM rpm,
then you will need to set JAVA_HOME=/opt/IBMJava2-13, for Sun' s rpm
You will do JAVA_HOME=/usr/java/jdk1.3 (or /usr/java/jdk1.3.1, if you get the
latest beta version). Then you can add lines like the following to your
.bashrc
export JAVA_HOME=/opt/IBMJava2-13
export PATH=$PATH:$JAVA_HOME/bin
For CLASSPATH, this really depends on what you wnt to do. If you are
just using tomcat, the script that gets put in /usr/bin/tomcat will do it all
for you.
>
> 5. As I'm new to Linux, where do I set the classpath and path so they are
> set for every boot?
for $PATH, you should read up on some basic linux books. This is set to
a basic path from init, and then when shells are invoked it usually gets
modified. Look at .bashrc and .bash_profile in your home directory.
If you want to set a $CLASSPATH , you can make a script say
"classpath.sh" and put it in /etc/profile.d/ . Check out some of the scripts
there
for ideas. However, be warned that the CLASSPATH variable is quite sensitive
across a large range of Javaz applications, and it is often better to tailor
it
to each application.
>
> 6. Difference between -server and -client and do they both run hotspot as
> default?
>
These are Sun specific, and dont work with the IBM java binary.
>
> Thanks.
> Dave.
> [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]