ykwong Posted January 31, 2003 Posted January 31, 2003 Say I have a perl script www.****/cgi-bin/test.pl In the script, I want to call the applet. And the applet will process a jpg and then display it. But the problem is that the applet can only read jpgs that is in the same directory as where the applet is at. I tried to upload some jpgs to /cgi-bin but i just found that this wont work. I also tried to upload the applet and jpg to /public_html and call it in the perl script by using "/applet.jar" and "/applet.class", however this doesnt work too. In other words, I can only put the applet and the jpg in /cgi-bin. Any way I can make the applet work? Quote
Devynn Posted January 31, 2003 Posted January 31, 2003 Have you tried calling the applet in the /public_html from the script by using ../applet.jar or ../applet.class? Or even /home/username/public_html/applet.jar? Quote
ykwong Posted January 31, 2003 Author Posted January 31, 2003 ya, tried all these. but cant help. one more thing is that i dont have the source code of the applet. Quote
Devynn Posted January 31, 2003 Posted January 31, 2003 You could create a new directory outside of the cgi-bin and chmod it the same as the cgi-bin so it can run scripts. Put your script and applet in there and give it a try. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.