当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - jmol java applet : java.io.FilePermission error.

问题描述:

I am trying to embed a Jmol java applet on a test website. Currently everything is local (ie on my hard drive).

<html>

<head>

<script type="text/javascript" src="../Jmol.js"></script>

</head>

<body>

<script type="text/javascript">

jmolInitialize("../");

jmolApplet(2000, "load POSCAR.xyz");

</script>

when I open the .html web page, I get an error

"Exception: access denied ("java.io.FilePermission" "/home/marco/Desktop/fridb/static/jmol/test/POSCAR.xyz " "read")

how do I change the code to allow my POSCAR.xyz to be read?

分享给朋友:
您可能感兴趣的文章:
随机阅读: