|
|||
|
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 |
|
|||
|
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 |
|
|||
|
Quote:
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 |
|
|||
|
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 ? |
|
|||
|
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. |
|
|||
|
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 ? |
|
|||
|
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! |
|
|||
|
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 |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|