Menu

[r476]: / branches / Release-3-0-8 / php-java-bridge / server / java.c  Maximize  Restore  History

Download this file

21 lines (16 with data), 562 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
/*-*- mode: C; tab-width:4 -*-*/
#include <stdlib.h>
#include <stdio.h>
/* wrapper for the GNU java library */
void usage(char*name){
fprintf(stderr, "Usage: %s <socketname> <logLevel> <logFile>\n", name);
fprintf(stderr, "Example 1: %s /var/run/.php-java-bridge_socket 1 /var/log/php-java-bridge.log\n", name);
fprintf(stderr, "Example 2: %s INET:9267 3 \"\" \n", name);
exit(1);
}
int main(int argc,char**argv){
extern void java_bridge_main_gcj(int argc, char**argv);
if(argc<4) usage(argv[0]);
java_bridge_main_gcj(argc,argv);
return 0;
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.