Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > 123 Flash Chat Server Software > 123 Flash Chat Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-15-2003, 09:59 PM
Junior Member
 
Join Date: Nov 2003
Posts: 12
Default Mac OS X install

If anyone knows what mods are required to get the server to run under Mac OS X, I would appreciate seeing the revisions required to this file (fcserver.sh).

I'm running Mac OS X 10.2.8 with built-in Java 1.4.1

Several of the files are located in the
System/Library/Frameworks/JavaVM.Framework/Versions/1.4.1/Classes folder:
charsets.jar
jsse.jar
jce.jar
sunrsasign.jar

I did not locate these ones:
javaplugin.jar
rt.jar

thanks
Reply With Quote
  #2 (permalink)  
Old 11-17-2003, 01:29 AM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:Mac OS X install

please remove the "javaplugin.jar,rt.jar" from the command line, and have a try ?

or in one line:
Code:
java -cp lib/fcserver.jar;lib/log4j.jar;lib/jdom.jar;lib/xerces.jar;lib/mysql.jar;. com.topcmm.jchat.MainServer
Reply With Quote
  #3 (permalink)  
Old 11-17-2003, 01:36 AM
Junior Member
 
Join Date: Nov 2003
Posts: 12
Default Re:Mac OS X install

Quote:
Originally Posted by Daniel Jiang
please remove the "javaplugin.jar,rt.jar" from the command line, and have a try ?
I moved them into the Classes folder but it is failing before it gets to it.

I get:
FCSERVER_HOME=/Library/Apache2/htdocs/123flashchat: Command not found.
export: Command not found.
FCSERVER_HOME: Undefined variable.

here's the code I have:

#
# This script can be used as a Linux boot script in init.d.
# You'll need to configure FCSERVER_HOME directly.
#
FCSERVER_HOME=/Library/Apache2/htdocs/123flashchat
export FCSERVER_HOME


if [ -z $FCSERVER_HOME ]
then
FCSERVER_HOME=.
fi


#
# Java Configuration
# If Using the system jre, please check and set your JRE_HOME
#
#JRE_HOME=/usr/local/jre
#JRE_HOME=System/Library/Frameworks/JavaVM.Framework/Versions/1.4.1/Classes
# export JRE_HOME
#
# if you using the bound jdk version
# set the JRE_HOME to $FCSERVER_HOME/jre
# JRE_HOME=$FCSERVER_HOME/jre
# export JRE_HOME

#
# lib path
#
jre_lib=System/Library/Frameworks/JavaVM.Framework/Versions/1.4.1/Classes/charsets.jar:
System/Library/Frameworks/JavaVM.Framework/Versions/1.4.1/Classes/javaplugin.jar:
System/Library/Frameworks/JavaVM.Framework/Versions/1.4.1/Classes/jce.jar:
System/Library/Frameworks/JavaVM.Framework/Versions/1.4.1/Classes/jsse.jar:
System/Library/Frameworks/JavaVM.Framework/Versions/1.4.1/Classes/rt.jar:
System/Library/Frameworks/JavaVM.Framework/Versions/1.4.1/Classes/sunrsasign.jar

fcserver_lib=$FCSERVER_HOME/lib/fcserver.jar:$FCSERVER_HOME/lib/log4j.jar:$FCSERVER_HOME/lib/jdom.jar:$FCSERVER_HOME/lib/xerces.jar:$FCSERVER_HOME/lib/mysql.jar

#
# pid file, default $FCSERVER_HOME/logs/fcserver.pid
#
pid_file=$FCSERVER_HOME/logs/fcserver.pid


start()
{
echo $"Starting server ......"
if [ -s $pid_file ]
then
pid=`/bin/cat $pid_file`

if [ $pid ]
then
fpid=`ps -ef |grep java |tr -s ' '|cut -d ' ' -f 2 |grep $pid`
if [ "$pid" = "$fpid" ]
then
echo "The process $pid is still alive, make sure you had started the server before."
echo "Server start failed , to restart the server, please use: $0 restart "
exit 1
fi
fi
fi

$JRE_HOME/bin/java -classpath $jre_lib:$fcserver_lib com.topcmm.jchat.MainServer &
echo $! > $pid_file

}

stop()
{
echo $"Stopping server ......"
pid=`cat $pid_file`

if [ $pid ]
then
fpid=`ps -ef |grep java |tr -s ' '|cut -d ' ' -f 2 |grep $pid`
if [ "$pid" = "$fpid" ]
then
kill -9 $pid
echo "Server stoped"
else
echo "The server had not started"
fi
else
echo "The server had not started"
fi

if [ -f $pid_file ]
then
if [ -w $pid_file ]
then
rm $pid_file
fi
fi
}

restart()
{
stop
sleep 2
start
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac


Reply With Quote
  #4 (permalink)  
Old 11-17-2003, 01:58 AM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:Mac OS X install

I haven't a mac computer to test the script, could you try to run this command, it's a standard command of java, please enter the installed dir first , then run the command in one line:

java -cp lib/fcserver.jar;lib/log4j.jar;lib/jdom.jar;lib/xerces.jar;lib/mysql.jar;. com.topcmm.jchat.MainServer

is that work ?
Reply With Quote
  #5 (permalink)  
Old 11-17-2003, 02:08 AM
Junior Member
 
Join Date: Nov 2003
Posts: 12
Default Re:Mac OS X install

This is what happens ... thanks for your help

[cvhs2:Apache2/htdocs/123flashchat] lelchuck# java -cp lib/fcserver.jar;lib/log4j.jar;lib/jdom.jar;lib/xerces.jar;lib/mysql.jar;. com.topcmm.jchat.MainServer
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)

where options include:
-client to select the "client" VM
-server to select the "server" VM
-jvm is a synonym for the "client" VM [deprecated]
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.

-cp -classpath <directories and zip/jar files separated by :>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
lib/log4j.jar: Permission denied.
lib/jdom.jar: Permission denied.
lib/xerces.jar: Permission denied.
lib/mysql.jar: Permission denied.
.: Command not found.
Reply With Quote
  #6 (permalink)  
Old 11-17-2003, 02:20 AM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:Mac OS X install

sorry , I forget the MAC OS using ":" but not the ";"

please change the command to:

java -cp lib/fcserver.jar:lib/log4j.jar:lib/jdom.jar:lib/xerces.jar:lib/mysql.jar:. com.topcmm.jchat.MainServer

is that work ?
Reply With Quote
  #7 (permalink)  
Old 11-17-2003, 02:26 AM
Junior Member
 
Join Date: Nov 2003
Posts: 12
Default Re:Mac OS X install



Super I'll test it tomorrow

thanks
larry

-----
[cvhs2:Apache2/htdocs/123flashchat] lelchuck# java -cp lib/fcserver.jar:lib/log4j.jar:lib/jdom.jar:lib/xerces.jar:lib/mysql.jar:.* com.topcmm.jchat.MainServer

----== ->->->-> www.123flashchat.com <-<-<-< ==-----
Welcome to try 123 Flash Chat Server software!
This is a demo version of 123 Flash Chat Server 1.2
Demo version will disconnect the user after logging in for 10 minutes!
Get the full version: http://www.123flashchat.com/buy.html
----== ->->->-> www.123flashchat.com <-<-<-< ==-----


Starting the server ...
123 Flash Chat Server has been Started!

Reply With Quote
  #8 (permalink)  
Old 11-17-2003, 11:26 AM
Junior Member
 
Join Date: Nov 2003
Posts: 12
Default Re:Mac OS X install

Take a look at http://cvhs.ednet.ns.ca/123flashchat/flash/

It does not seem to be able to connect to the server.

In terminal mode, it shows that iti is running ... as above.

thanks
Reply With Quote
  #9 (permalink)  
Old 11-17-2003, 02:44 PM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:Mac OS X install

just change the client.xml

find:

<host value="127.0.0.1" />

replace to:
<host value="cvhs.ednet.ns.ca" />

It seems your server is not running now, please start your server , and try again!
Reply With Quote
  #10 (permalink)  
Old 11-17-2003, 04:28 PM
Junior Member
 
Join Date: Nov 2003
Posts: 12
Default Re:Mac OS X install

I restarted the computer and the server file, and made the change to the client.xml file

Still no luck.

Take a look. Thanks.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:46 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.