I downloaded ActivePerl, and I can execute cgi and perl scripts, but I can't execute (at least I think that it isn't executing) my java program. Based on my understanding... when you System.out.println from a java program through cgi, it dumps it out to the browser.
My classpath has the cgi-bin directory where my java program is, and the appropriate NT and IIS security settings are in place. Default user has read/execute on that dir, and cgi-bin is set to execute including script. I can navigate through DOS, and execute the program at the command line.
What could I possibly be missing?
This is the output
'E:\Inetpub\ script produced no output
My java program (I am just trying to verify that you can do this):
public class HelloWorld {
public static void main(String args[]) {
if (args.length <= 0) {
System.out.println("Hello World"
} else { // there are command line arguments
for (int i = 0; i < args.length; i++) {
System.out.println(args);
}
}
}
}
My cgi without the long classpath:
#!/bin/sh
CLASSPATH=.:long_classpath_here:./
export CLASSPATH
java HelloWorld
My classpath has the cgi-bin directory where my java program is, and the appropriate NT and IIS security settings are in place. Default user has read/execute on that dir, and cgi-bin is set to execute including script. I can navigate through DOS, and execute the program at the command line.
What could I possibly be missing?
This is the output
'E:\Inetpub\ script produced no output
My java program (I am just trying to verify that you can do this):
public class HelloWorld {
public static void main(String args[]) {
if (args.length <= 0) {
System.out.println("Hello World"
} else { // there are command line arguments
for (int i = 0; i < args.length; i++) {
System.out.println(args);
}
}
}
}
My cgi without the long classpath:
#!/bin/sh
CLASSPATH=.:long_classpath_here:./
export CLASSPATH
java HelloWorld