Java and Perl

liunx

Guest
Say I have a perl script <!-- w --><a class="postlink" href="http://www.****/cgi-bin/test.pl">www.****/cgi-bin/test.pl</a><!-- w --><br /><br />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.<br /><br />I tried to upload some jpgs to /cgi-bin but i just found that this wont work.<br />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.<br /><br />In other words, I can only put the applet and the jpg in /cgi-bin. Any way I can make the applet work?<!--content-->
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?<!--content-->
ya, tried all these.<br />but cant help.<br />one more thing is that i dont have the source code of the applet. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /><!--content-->
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.<!--content-->
 
Back
Top