-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Wow!
Fantastic!
Finally, a long awaited theme customization is available!
Great, fantastic job!
Hi,
I tried to use ZKThemer on Mac OS X (10.5.7) and Java 6 (1.6.0_13), but I had some problem.
indiglo-2:lib rogerio$ java -jar zkthemer.jar -c 3e48ac -z . -t lila
Exception in thread "main" java.lang.NullPointerException
at zkthemer.ProcessImage.run(ProcessImage.java:37)
at zkthemer.CreateTheme.processJarFile(CreateTheme.java:60)
at zkthemer.CreateTheme.processDir(CreateTheme.java:40)
at zkthemer.CreateTheme.run(CreateTheme.java:134)
at zkthemer.CreateTheme.main(CreateTheme.java:170)
Note: The zkthemer.jar is on my lib folder. There has ZK's JARs.
Thank you!
Hi to all
I create lila.jar and add zk configuration code but when i run it i take this error please help me.!
org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Language not found for extension zul
Have nice time
Re-jarring the file (and letting it generate a manifest), plus adding zkthemer.properties to the classpath of my webapp worked for me on Windows.
I took a look at the source code and I think you can create an empty manifest by changing line 111 of CreateTheme.java to:
JarOutputStream out = new JarOutputStream(stream, new Manifest());
--Scott
The tool is great. Thank you for zkthemer and this provided smalltalk. Here are some tips for getting the tool working on Windows (a summary of the above posts).
1) run the tool, generating your jar file
2) verify the jarfile is around 290kb. If the jar file is too small, most likely, the folder you specified with -z does not contain your zk libs. No error occurs in such a case, but the generated jar file is only 80kb in size. If at this point, you run the tool with the 80kb jar file, you will see your application with no images at all, only text.
3) unjar the jar file (e.g. jar xvf <jarname>)
4) rejar the jar file (this fixes the missing manifest problem) (e.g. jar cvf <jarname> *)
5) copy the newly jarred jar file to your web application's lib folder
6) update zk.xml as specified above
7) start tomcat and run your application
At this point, it should all work.
* You do not need zkthemer.jar in your classpath.
* If you get an Unable to load zkthemer.ThemeProvider error, be sure that you unjarred and rejarred your generated jar file.
* Verify your generated jar file size