View Full Version : jchat java problems


thekiwi
06-09-2004, 09:24 AM
I down loaded and set up the jchat
the problem I have is the java fails to initialise the java control pad tells me it has a bad magic number.
I installed jchat on a linux (mandrake 10) system running a httpd Apache2 server
the path for cgi-bin can be /var/www/cgi-bin/ or /cgi-bin/ both will work that is how I set the httpd conf file the cgi and pl files are chmod 755 I have a static IP so I used that in the html file
I may be wrong but is not a bad magic number due to a corrupt jar file ?
the entire setup files I downloaded direct to the server

Regards the kiwi

Jafo
06-09-2004, 11:09 AM
What mode did you upload the jar file in?

thekiwi
06-09-2004, 09:08 PM
Hi Jafo
I didn't upload it I had the email script sent direct to the linux sever. I resaved the files and this time it worked but I still have a problem with it an error that reads invalid applet parameter-URL "url_to_jchat_dir_no_tslash"
I know the URL is correct http://65.172.152.67/cgi-bin/jchat I have a static IP and tend to use it instead of http://thekiwi.org
I have other scripts that use cgi-bin and have no trouble using them ..

regards the kiwi

Starapple
06-10-2004, 02:45 AM
invalid applet parameter-URL "url_to_jchat_dir_no_tslash"


I get a similar message when I try to run the script on my virtual host ISP who uses a Linux box. It works perfectly locally on my Windows XP with Apache2. Any help would be appreciated. Any way to convert this to PHP? My PHP Active Stats works perfectly on the same server.

The chat is here http://www.starapple.com (http://www.kwikpayplus.com/jchat/index.html).

Starapple
06-10-2004, 02:57 PM
OK. I deleted all the CGI folders and files, re-uploaded them and set permissions and voila! Seems to be working. Now I wait for some visitors.

twotone
04-22-2005, 08:35 PM
Here is how I fixed it (on a windows shared virtual server):

change:

######################### DO NOT EDIT PAST THIS LINE ####################

require "func.pl";

to this:

######################### DO NOT EDIT PAST THIS LINE ####################

# change this to the full path to your jchat.cgi script directory
use lib "e:/web/public_html/yourwebspace/cgi-bin/jchat/";

require "func.pl";