File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessdenied (java.lang.RuntimePermission accessClassInPackage.sun.swing)

 
Parveen Kumar Jamdagni
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getting this exception in java console when using

public static Object readObject(URL url)
throws IOException, ClassNotFoundException
{
ObjectInputStream objectinputstream = new ObjectInputStream(getConnection(url).getInputStream());
return objectinputstream.readObject();
}

All the suggessions are invited, Reply
ASAP
Thanks
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is cross-posting now a subject in school?

http://forums.sun.com/thread.jspa?threadID=5424238&tstart=0


> All the suggessions are invited, Reply ASAP

it would be censored
 
Maneesh Godbole
Saloon Keeper
Posts: 10976
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
Maneesh Godbole
Saloon Keeper
Posts: 10976
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this thread as it has nothing to do with Swing. It would be better suited on the Beginner forum
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this part of an applet? If so, read HowCanAnAppletReadFilesOnTheLocalFileSystem.
 
Parveen Kumar Jamdagni
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still not getting rid from this.
any more suggestions
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it an applet? What, exactly, have you tried? TellTheDetails
 
Parveen Kumar Jamdagni
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
url is
http://Knowledge:8081/pkj/servlet/epmj.workflow.objectiveServlet?opcode=init&procno=13
I am getting some values when typed this on the url. some values are in unreadable format.

I am making a JApplet
in which I am adding userDefined JButton on the JPanel and this JPanel is previously added to the JComponent content.
Everything is going fine but the problem is arised when I am seeing it again the no Jbutton is visible and I am getting this error.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic