Next question!
the .cgi file...how? Here is what I have kinda half arsed put together but I dont know what it does
Code: Select all
#!/bin/sh
cd /tmp
/usr/local/java/j2sdk1.4.2_02/bin/java -cp /home/shiznatix/cgi/
proov $QUERY_STRINGModerator: General Moderators
Code: Select all
#!/bin/sh
cd /tmp
/usr/local/java/j2sdk1.4.2_02/bin/java -cp /home/shiznatix/cgi/
proov $QUERY_STRINGIf you want to run a java program, you have to compile it first to .class files.shiznatix wrote:ok i have a uncompiled java program that I need to run as a website thingy. Do I need to compile it first or can I keep it uncompiled and compile it on the fly, basically which one is easier, speed does not matter.
Well, you need a script that invokes a java runtime with the wanted class file.shiznatix wrote: the .cgi file...how? Here is what I have kinda half arsed put together but I dont know what it does
Code: Select all
#!/bin/sh cd /tmp /usr/local/java/j2sdk1.4.2_02/bin/java -cp /home/shiznatix/cgi/ proov $QUERY_STRING
Well, CGI is simply a definition how your webserver and application communicate. Your server will pass data via environment variables.. Eg: QUERY_STRING.shiznatix wrote: $QUERY_STRING??