-
1. Re: HOWTO install on linux?
pgmjsd May 24, 2003 1:46 PM (in response to gwichman)I agree that the "getting started guide" could use some work.
Since JBoss is 100% Java, you can simply unpack the distribution files onto your Linux box. The distribution contains '.bat' files for Windows and '.sh' files for UN*X / Linux. I've copied my files from Windows directly onto Solaris and it worked fine.
Hope this helps!
Josh -
2. Re: HOWTO install on linux?
juhalindfors May 24, 2003 4:21 PM (in response to gwichman)unzip and run, its java
-
3. Re: HOWTO install on linux?
prabhakar May 24, 2003 4:42 PM (in response to gwichman)The same bundle works on both linux and doze. Just download the latest release zip file. If on linux, to start JB do this:
jboss_dir/bin/run.sh -c all
-prabhakar -
4. Re: HOWTO install on linux?
gwichman May 24, 2003 5:18 PM (in response to gwichman)I take it i need to download a JRE?
[root@localhost bin]# ./run.sh
run.sh: Missing file: /lib/tools.jar
run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
================================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /root/jboss-3.2.1
JAVA: java
JAVA_OPTS: -Dprogram.name=run.sh
CLASSPATH: /root/jboss-3.2.1/bin/run.jar:/lib/tools.jar
================================================================================
./run.sh: line 185: java: command not found
[root@localhost bin]# java
-bash: java: command not found
[root@localhost bin]# find / -name java
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/gnu/java
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/java
/usr/share/doc/db4-devel-4.0.14/ref/java
/usr/share/java -
5. Re: HOWTO install on linux?
gwichman May 24, 2003 5:19 PM (in response to gwichman)[root@localhost bin]# ./run.sh
run.sh: Missing file: /lib/tools.jar
run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
================================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /root/jboss-3.2.1
JAVA: java
JAVA_OPTS: -Dprogram.name=run.sh
CLASSPATH: /root/jboss-3.2.1/bin/run.jar:/lib/tools.jar
================================================================================
./run.sh: line 185: java: command not found
[root@localhost bin]# java
-bash: java: command not found
[root@localhost bin]# find / -name java
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/gnu/java
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/java
/usr/share/doc/db4-devel-4.0.14/ref/java
/usr/share/java -
6. Re: HOWTO install on linux?
jonlee May 25, 2003 2:39 AM (in response to gwichman)You'll need to install a Java JDK - if you are running JBossweb (either an embedded Tomcat or Jetty web application server), it will need a JDK to compile JSPs.
The tools.jar is normally in the Java JDK's lib directory. So if you installed your Sun JDK in /usr/local/j2sdk1.4.1_02. The tools.jar path would be /usr/local/j2sdk1.4.1_02/lib/tools.jar.
You should define in your environment the JAVA_HOME environment variable, which points to the root directory of your Java distribution. In this example, it would be:
JAVA_HOME=/usr/local/j2sdk1.4.1_02
This will fix the JAVA reference and the CLASSPATH reference. At the moment, JAVA_HOME is not set which results in JAVA=java and CLASSPATH being root/jboss-3.2.1/bin/run.jar:/lib/tools.jar
You should actually have reported by the JBoss run script:
JAVA=/usr/local/j2sdk1.4.1_02/bin/java
CLASSPATH=/root/jboss-3.2.1/bin/run.jar:/usr/local/j2sdk1.4.1_02/lib/tools.jar
Adjust all this to match where you have installed your JDK.
Hope that helps. -
7. Re: HOWTO install on linux?
juhalindfors May 25, 2003 3:24 AM (in response to gwichman)> I take it i need to download a JRE?
you need to install the full JDK to get the tools.jar (compiler classes), they're needed to compile JSP pages. -
8. Re: HOWTO install on linux?
gwichman May 25, 2003 11:29 AM (in response to gwichman)still doesnt seem to work..
[root@localhost bin]# echo $JAVA_HOME
/usr/java/j2sdk1.4.1_02/
[root@localhost bin]# ./run.sh
run.sh: Missing file: /lib/tools.jar
run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
================================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /root/jboss-3.2.1
JAVA: java
JAVA_OPTS: -Dprogram.name=run.sh
CLASSPATH: /root/jboss-3.2.1/bin/run.jar:/lib/tools.jar
================================================================================
./run.sh: line 185: java: command not found
[root@localhost bin]# ls /usr/java/j2sdk1.4.1_02/
bin COPYRIGHT demo include jre lib LICENSE man README README.html src.zip
[root@localhost bin]# ls /usr/java/j2sdk1.4.1_02/bin/
appletviewer idlj javac java-rmi.cgi klist policytool serialver
ControlPanel jar javadoc jdb ktab rmic servertool
extcheck jarsigner javah keytool native2ascii rmid tnameserv
HtmlConverter java javap kinit orbd rmiregistry -
9. Re: HOWTO install on linux?
gwichman May 25, 2003 1:36 PM (in response to gwichman)nevermind got it to run by playing with run.sh for a bit.. turns out my JAVA_HOME was set to nothing when the script was run because i didnt export the variable and thus it wasn't set when run.sh forked presumably under a new shell