[E-Lang] yet more on security manager

Marc Stiegler marcs@skyhunter.com
Wed, 28 Feb 2001 19:36:18 -0700


So, having given up on the IBM 1.3 jvm on Linux because of the security
manager problem with the newest E, I installed the newest Sun 1.3 jvm on my
Win machine. At least it ran Elmer okay.

But then I moved on to try to do the work I was hoping to do, namely ,
figure out how to make drag/drop work in E. Ta da, right back staring at the
security manager:


D:\programs\jdk1.3\eNoComm>d:\programs\jdk1.3\jre\bin\java -jar e.jar
D:\EPROJE~1\DRAGDR~1\DRAGDROP.E
# problem: <SecurityException: java.awt.datatransfer.DataFlavor not approved
as
safe>
#
#   <import:*> get("java.awt.datatransfer.DataFlavor")
#   <interp> evalPrint(e`define var eObjectFlavor :final :=
import__uriGetter ge
t("java.awt.datatransfer.DataFlavor") new("application/x-e-object")`)


The newest security manager seems to think it must shut out the DataFlavor
class, which seems truly amazing, because I cannot figure out how DataFlavor
could be used to break security.

Anyway, I found a java.policy text file in a security folder, fiddled it to
make everything get all permissions, but that didn't help either.

Steve, markm tells me you are working on drag/drop too. Have you gotten this
far? any idea how to fix it?


--marcs