0

java.io.FilePermission
this exception always thrown when I am trying to run my code using tahiti server that i am developing java mobile agent

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by omar isaid
Featured Replies
  • 1

    There must be reason why that error is thrown. Please post relevant code and do not forget include stack trace of error Read More

1

There must be reason why that error is thrown.

Please post relevant code and do not forget include stack trace of error

0

Thank you very much I found the error

AgletProxy p;  //line 1
p=getAgletContext().createAglet(getCodeBase(),"child",null); //line 2

line2 is the error and correction is

AgletProxy p;  //line 1
p=getAgletContext().createAglet(getCodeBase(),
"examples.folder1.child",null);          //line 2

where in windows OS
C:\aglets-2.0.2\public\examples\folder1

and "folder1" contains java files I am developing

Edited by peter_budo: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)

0

There must be reason why that error is thrown.

Please post relevant code and do not forget include stack trace of error

Thank you very much I found the error

AgletProxy p;  //line 1
p=getAgletContext().createAglet(getCodeBase(),"child",null); //line 2

line2 is the error and correction is

AgletProxy p;  //line 1
p=getAgletContext().createAglet(getCodeBase(),
"examples.folder1.child",null);          //line 2

where in windows OS
C:\aglets-2.0.2\public\examples\folder1

and "folder1" contains java files I am developing

Thank you very Much Peter you are so gentle
I have a problem in the package that the correct syntax is

Package examples.folder1;

examples is a folder appears after installation of Tahiti server
folder1 : the Folder I created to create java files inside it

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.