Joe Attardi wrote:
> harry gaillac wrote:
>> [EMAIL PROTECTED] ~]# ls -al /usr/lib/jvm/java-1.4.2-gcj/bin/
>> lrwxrwxrwx 1 root root   16 Nov  8  2008 jar -> /usr/bin/fastjar
>> lrwxrwxrwx 1 root root   19 Nov  8  2008 jarsigner -> /usr/bin/gjarsigner
>> lrwxrwxrwx 1 root root   12 Nov  8  2008 java -> /usr/bin/gij
> 
>> which: no java in (/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin:/usr/bin)
>> Version /usr/bin/sipx-config: line 62: -version: command not found not 
>> compatible
>> Cannot locate the Java VM on you machine or wrong version of Java installed. 
>> Please either install Java
>>  or set the SIPX_JAVA_HOME environment variable to where you've installed it.
> 
> Harry:
> 
> The problem is that the GCJ java executable is linked to /usr/bin/gij, 
> where sipXconfig is looking for the java binary (not gij). Incidentally, 
> sipX requires Java 1.5 or greater, so you are going to need to update to 
> a newer Java VM - I recommend you get Sun's distribution at 
> http://java.sun.com.
> 
> // Joe
> 

Do *not* get java distribution directly from Sun (it will work but Sun does
not not provide properly packaged RPMs, and if you install it you'll have
to install some compat packages or mess with your environment).

Install java-sun package (with everything else) from sipx repository
(stable for 3.10 or unstable for 3.11). Installing sipXecs with you will
pull and install appropriate java packages.

The links that you write about will get updated automatically for you, once
you install java-sun.

It's possible that you already have proper java installed on your system.
You can have more that one jvm installed and you can switch between them using:

#/sbin/alternatives --config java

Or if you want to switch java using a graphical tool:

  #yum install system-switch-java
  #system-switch-java

But you do have to have sun or ibm java >= 1.5 to run sip.
D,


_______________________________________________
sipx-users mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-users
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users

Reply via email to