This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 9990
    
    7

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: 9990
    
    7

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: 39535
    
  27
Is this part of an applet? If so, read HowCanAnAppletReadFilesOnTheLocalFileSystem.


Ping & DNS - updated with new look and Ping home screen widget
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: 39535
    
  27
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)
 
Similar Threads
exact API for java stand-alone application talk to web tier-servlet
request from Applet
returning an array from servlet responce
how to communicate Applet to Servet
what is the best way to save an array in file?