Create Java extention for SFS

Source: Internet
Author: User

Java extention of SFS
1. Install ipvs and Java SDK
2. strictly follow the SFS pro documentation file: // D:/program % 20 files/smartfoxserverpro_1.6.6/docs/index.htm
6.9 Java extensions
Create the first JavaProgram.Code:
Public void handlerequest (string cmd, actionscriptobject AO, user U, int fromroom)
// Your code here, handles XML-based requests
If (cmd = "XXX ")
Sendresponse (Ao,-1, U, null );

3. Upload the generated file
D:/eclipseworkspace/xxxextention/bin/packxxx/xxxext. Class
D:/program files/smartfoxserverpro_1.6.6/Server/javaextensions

4. When an error is reported on the startup server, "jsonobject cannot be resolved" cannot be found.
5. Open D:/program files/smartfoxserverpro_1.6.6/Server/start. bat edit
Add the library "lib/JSON. jar; LIB/json-lib-2.1-jdk15.jar; LIB/jysfs. jar "
added is also a whitelist, error as usual
6, find the web page
found that Java project less with a json-lib-2.1-jdk15.jar library
7, then save the compilation, overwrite, server started

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.