My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 58: Applet with swixml2 requires a change in java.policy
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Nov 2010


 
Reported by ergin22...@gmail.com, Nov 19, 2010
I have created an xml file with the applet tag as root node. But it does not work. It works only when I add the following lines to java.policy:

1. permission java.util.PropertyPermission "org.jdesktop.application.Application.use.common.localizer", "read";

2. permission java.util.PropertyPermission "org.jdesktop.application.Application.ignore.resources.prefix", "read";

Is there a way without changing the policy?

My sourcecode is in the attachment.

AppletRender.java
662 bytes   View   Download
Nov 20, 2010
Project Member #1 bartolom...@gmail.com
Thx for feedback

I'll check if is possible skip policy update
Status: Accepted
Nov 21, 2010
Project Member #2 bartolom...@gmail.com
i've deployed a new SNAPSHOT that should fix the problem

please test it and let me know


Status: Fixed
Nov 21, 2010
#3 ergin22...@gmail.com
I have downloaded swingx-2.5-20101121.201548-2.jar, but it is only 2.5kB. What is a snapshot? How can I add to my project. Thanks for your work. How can I spend some money?
Nov 22, 2010
Project Member #4 bartolom...@gmail.com
hi 

You have just miss the right file ....  swingx is a new project (see  Issue 55 )

the right one is : 
https://code.google.com/p/swixml2/source/browse/mavenrepo/org/swixml/swixml/2.5-SNAPSHOT/swixml-2.5-20101121.200952-31.jar





Nov 22, 2010
#5 ergin22...@gmail.com
But the file is only 25 kb. How can I add to my project.
When I add to my project as referenced lib nothing change.
Nov 22, 2010
Project Member #6 bartolom...@gmail.com
Hi 

i guess that you are not using maven tool

the file   swixml-2.5-20101121.200952-31.jar is 537 KB

however attached you have last SNAPSHOT

try it and let me know

thx in advance

swixml-2.5-SNAPSHOT.jar
537 KB   Download
Nov 24, 2010
#7 ergin22...@gmail.com
Hi,

With this version I receive following error:

Exception in thread "main" java.lang.NoClassDefFoundError: java/util/ServiceLoader
	at org.swixml.SwingTagLibrary.registerTags(SwingTagLibrary.java:207)
	at org.swixml.TagLibrary.<init>(TagLibrary.java:78)
	at org.swixml.SwingTagLibrary.<init>(SwingTagLibrary.java:120)
	at org.swixml.SwingTagLibrary.<clinit>(SwingTagLibrary.java:112)
	at org.swixml.SwingEngine.<init>(SwingEngine.java:197)
	at org.swixml.SwingEngine.<init>(SwingEngine.java:227)
	at de.eo.gui.CreateGUIStandalone.<init>(CreateGUIStandalone.java:23)
	at de.eo.gui.CreateGUIStandalone.main(CreateGUIStandalone.java:30)


Have you got an idea?
Nov 24, 2010
Project Member #8 bartolom...@gmail.com
This class is part of Java6 (SPI)

your applet is running on top of JDK5?


Nov 24, 2010
#9 ergin22...@gmail.com
Youm are right! It works perfect. Thanks a lot.

Powered by Google Project Hosting