File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes accessdenied (java.lang.RuntimePermission accessClassInPackage.sun.swing) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "accessdenied (java.lang.RuntimePermission accessClassInPackage.sun.swing) " Watch "accessdenied (java.lang.RuntimePermission accessClassInPackage.sun.swing) " New topic
Author

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

Parveen Kumar Jamdagni
Greenhorn

Joined: Jan 17, 2010
Posts: 3
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

Joined: Jun 09, 2003
Posts: 4632
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

Joined: Jul 26, 2007
Posts: 10535
    
    9

Thanks Michael.

Praveen,
Please read http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites and http://faq.javaranch.com/java/EaseUp


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

Moving this thread as it has nothing to do with Swing. It would be better suited on the Beginner forum
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42926
    
  68
Is this part of an applet? If so, read HowCanAnAppletReadFilesOnTheLocalFileSystem.
Parveen Kumar Jamdagni
Greenhorn

Joined: Jan 17, 2010
Posts: 3
Still not getting rid from this.
any more suggestions
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42926
    
  68
Is it an applet? What, exactly, have you tried? TellTheDetails
Parveen Kumar Jamdagni
Greenhorn

Joined: Jan 17, 2010
Posts: 3
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
 
subject: accessdenied (java.lang.RuntimePermission accessClassInPackage.sun.swing)