Koozali.org: home of the SME Server

Java Errors in SME 6.0

Cruzer

Java Errors in SME 6.0
« on: April 27, 2004, 03:22:56 AM »
Cheers LiNUX Crew..
Been searching High 'n Low for 3 days now.. Forums, Internet.. Here's my little and annoying problem with regards to Java (J2SE). I have found a cool Java Chatroom Servlet with client. The instructions are so simple yet been driving me MAD to compile..

The Test:I created a simple java script and compiled using "javac" command.. PERFECT, J2SE works fine..Test worked to see if J2SE was working..
My Error: (all I have to do is run the install_server.sh script) here's what I get. (Error Message is in red Italics)

[MySERVER]# ./scripts/install_server.sh (the command to install)
./scripts/install_server.sh: java: command not found
which: no java in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
java could not be found in /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin


Possible Solution: (I thought) I created a SYMLINK to my Java directory (/usr/java/j2se.xx.xx/bin/) to the reported directories above, re-ran the install script.. same error (GRrrrr).

What this script does: installs the server to /usr/local/xxxxxchat and creates a script in /usr/bin/xxxxxchat to start the server.

Any Suggestions?? :roll:

mbachmann

Java Errors in SME 6.0
« Reply #1 on: April 27, 2004, 01:54:47 PM »
What if you try to execute the install_server.sh in your /usr/java/j2se.xx.xx/bin directory?

I am not sure but don't you have to export the path to java, instead of just creating a symlink?

Cruzer

GrrRrr
« Reply #2 on: April 27, 2004, 10:03:14 PM »
Well, I'm changing modes.. Can't install IRCD, JABBERD, because of the file structure of SME, so I'm going to build one from ground up specific for SME 5.6 & 6.x..

I'll update my Contrib Team soon...

mbachmann

Java Errors in SME 6.0
« Reply #3 on: April 29, 2004, 10:08:15 AM »
That's too advanced for me. I guess you can read binary.