hi, i have a stupid problem but i am not able to solve it. my perl/cgi script
is in the directory e:/programme/xampp/cgi-bin. jmol ist in the directory:
e:/programme/xampp/htdocs/jmol_zeug and my file ist in
e:/programme/xampp/htdocs.
this ist the code:
...
# dateinamen erstellen und die datei auf dem server speichern
my $dir = 'e:/programme/xampp/htdocs/';
my $fname = 'file_'.$$.'_'.$ENV{REMOTE_ADDR}.'_'.time.'.pdb';
open DAT,'>',$dir . $fname or die 'Error processing file: ',$!;
# Dateien in den Binaer-Modus schalten
binmode $file;
binmode DAT;
my $data;
while(read $file,$data,1024) {
print DAT $data;
}
close DAT;
print <<"HTML";
<html>
<head>
<title>J MOl Versuch</title>
<script src="e:/programme/xampp/htdocs/jmol_zeug/jmol-11.1.26/Jmol.js"></script>
</head>
<body>
<h1>Die Datei $file wurde erfolgreich hochgeladen.</h1>
<tbody>
<tr>
<script>
var datei = "${fname}";
document.write (datei);
var script= "load" + " " + datei;
document.write (script);
jmolInitialize("e:/programme/xampp/htdocs/jmol_zeug/jmol-11.1.26");
jmolApplet(550, script);
jmolBr();
</script>
...
and if i open the java-console i get this message:
Laden: Klasse JmolApplet nicht gefunden
java.lang.ClassNotFoundException: JmolApplet
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
i think something is wrong with the directories but i tried a lot and nothing
changes.
i would happy about every help.
greatings steffi
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users