Path: news.cambrium.nl!textnews.cambrium.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!216.196.98.140.MISMATCH!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!nntp.posted.cspinternet!news.posted.cspinternet.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 07 Jul 2009 10:51:46 -0500
From: yf110@vtn1.victoria.tc.ca (Malcolm Dew-Jones)
Subject: Re: JAVA file permissions
Newsgroups: comp.databases.oracle.misc
References: <facc3fd1-3df9-4c55-a520-150294252641@d36g2000prb.googlegroups.com>
Organization: Victoria Telecommunity Network
Distribution: 
X-Newsreader: TIN [version 1.2 PL2]
X-Original-NNTP-Posting-Host: vtn1.victoria.tc.ca
Message-ID: <4a536f0e$1@news.victoria.tc.ca>
Date: 7 Jul 2009 08:51:42 -0700
X-Original-Trace: 7 Jul 2009 08:51:42 -0700, vtn1.victoria.tc.ca
Lines: 25
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 199.60.222.1
X-Trace: sv3-12nM5HUWiP+N7PbcLNkFvphG/R4SroVqPQaFu8wAJzLkzK0xN/pJWq66K9SMh7ogHB5wWOpgiLq8lVE!OLxgjErX7YB9mnEg2Te3RF795iASueSuWfCGuc240qILKhuYsOVgCd4onawaTPio9Ias
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.39
X-Original-Bytes: 1959
Xref:  news.cambrium.nl

CenturionX (darwinbaldrich@gmail.com) wrote:
: Hello,

: I'm working with ORACLE 10.2.0.4.0 on windows server 2003 R2.

: I need to execute a DOS batch file.  I used some code i found in the
: web (see the code below).

: When i try to give permission to execut ethe file:
:    EXEC DBMS_JAVA.grant_permission('CMS',
: 'SYS.java.io.FilePermission', 'K:\Mesr\DBP_EXEC_FROM_ORA\',
: 'read ,write, execute');

: I get this error:

: ORA-29532: Java call terminated by uncaught Java exception:
: java.lang.ClassNotFoundException: sys/java/io/filepermission
: ORA-06512: at "SYS.DBMS_JAVA", line 313
: ORA-06512: at line 1

The error says that the class sys/java/io/filepermission does not exist.

I think the class name is probably what is wrong, perhaps that should be 
java.io.filepermission

