bsorrentino / swixml2

Project that extends the original swixml project providing integration with Swing Application Framework (JSR 296) and Beans Binding (JSR 295) to further simplifying the GUI creation & management
0 stars 0 forks source link

Applet with swixml2 requires a change in java.policy #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by ergin22...@gmail.com on 19 Nov 2010 at 7:27

Attachments:

GoogleCodeExporter commented 9 years ago
Thx for feedback

I'll check if is possible skip policy update

Original comment by bartolom...@gmail.com on 20 Nov 2010 at 9:15

GoogleCodeExporter commented 9 years ago
i've deployed a new SNAPSHOT that should fix the problem

please test it and let me know

Original comment by bartolom...@gmail.com on 21 Nov 2010 at 7:59

GoogleCodeExporter commented 9 years ago
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?

Original comment by ergin22...@gmail.com on 21 Nov 2010 at 10:43

GoogleCodeExporter commented 9 years ago
hi 

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

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

Original comment by bartolom...@gmail.com on 22 Nov 2010 at 10:58

GoogleCodeExporter commented 9 years ago
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.

Original comment by ergin22...@gmail.com on 22 Nov 2010 at 5:32

GoogleCodeExporter commented 9 years ago
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

Original comment by bartolom...@gmail.com on 22 Nov 2010 at 6:59

Attachments:

GoogleCodeExporter commented 9 years ago
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?

Original comment by ergin22...@gmail.com on 24 Nov 2010 at 8:52

GoogleCodeExporter commented 9 years ago
This class is part of Java6 (SPI)

your applet is running on top of JDK5?

Original comment by bartolom...@gmail.com on 24 Nov 2010 at 11:08

GoogleCodeExporter commented 9 years ago
Youm are right! It works perfect. Thanks a lot.

Original comment by ergin22...@gmail.com on 24 Nov 2010 at 11:53