This question is not answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 5 - Pages: 1 - Last Post: 3 Jun 24, 15:19 Last Post By: RobM Threads: [ Previous | Next ]
ismarker

Posts: 7
Registered: 1-Jun-2024
java.lang.ClassNotFoundException: henriks.Zip
Posted: 1 Jun 24, 15:34
 
  Click to reply to this thread Reply
Hello,

I'm a complete newbie to jAlbum, so please bear with me. I wanted to start with a simple theme, so I chose Plain and the Portfolio variant. I've tried a few different settings, but can't seem to get dates to appear where I want (or at all).

In order to modify the templates, I created my own, based on Plain (see picture 1).

When I first try to generate the album, I get this error (see picture 2).

Don't understand what I've missed.

Complete message:
java.lang.RuntimeException: java.lang.ClassNotFoundException: henriks.Zip
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:524)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:442)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine$1.eval(NashornScriptEngine.java:503)
at java.scripting/javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.AlbumBean.processExpression(AlbumBean.java:3371)
at se.datadosen.jalbum.AlbumBean.processScript(AlbumBean.java:3293)
at se.datadosen.jalbum.AlbumBean.prepareMakeAlbum(AlbumBean.java:3920)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3597)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3520)
at se.datadosen.jalbum.MakeAlbumTask.doInBackground(MakeAlbumTask.java:176)
at se.datadosen.jalbum.TaskManager$BackgroundTask.call(TaskManager.java:113)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: henriks.Zip
at java.base/java.net.URLClassLoader.findClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Unknown Source)
at java.base/java.lang.Class.forName(Unknown Source)
at org.openjdk.nashorn.internal.runtime.Context.findClass(Context.java:1176)
at org.openjdk.nashorn.internal.objects.NativeJava.simpleType(NativeJava.java:544)
at org.openjdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:326)
at org.openjdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:318)
at org.openjdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:314)
at org.openjdk.nashorn.internal.scripts.Script$1293$init.:program(/Users/henrik/Library/JAlbum/skins/Henriks skin/init.js:8)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:520)
... 14 more
JeffTucker

Posts: 8,218
Registered: 31-Jan-2006
Re: java.lang.ClassNotFoundException: henriks.Zip
Posted: 1 Jun 24, 15:59   in response to: ismarker in response to: ismarker
Helpful
  Click to reply to this thread Reply
Welcome to jAlbum!

Creating your own skin was possible in the earlier days, when the templates were all just simple BeanShell, and the pages produced were just HTML table layouts, plus some CSS. These days, particularly with a Javascript-driven skin like Plain, it would be very difficult to start your own skin, based on the existing one. There are simply too many compiled routines, and the source code is not open.

Instead, please start a new thread, and tell us exactly what dates you want to see in Plain, and where you want to see them. As the name implies, however, Plain is intended to be a fairly simple skin, without a huge number of settings options. To get the result you want, you might have to use another skin. Once we know what you're trying to do, someone can give you some advice in that regard.
ismarker

Posts: 7
Registered: 1-Jun-2024
Re: java.lang.ClassNotFoundException: henriks.Zip
Posted: 2 Jun 24, 00:12   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
I understand, but isn't it a little confusing that the "Create new skin" dialog (Tools menu / Skin developer) asks which skin I want to base my new skin on?
Laza

Posts: 1,832
Registered: 6-Sep-2005
Re: java.lang.ClassNotFoundException: henriks.Zip
Posted: 3 Jun 24, 07:00   in response to: ismarker in response to: ismarker
 
  Click to reply to this thread Reply
Attachment init.js (8.6 KB)
Replace init.js in the skin directory (Ctrl-Shift-S: ../skins/Henriks) with the attached file. Hopefully, this will fix this error. I'm not sure there will be any more.

Edited by: Laza on 3 Jun 2024, 07:01
JeffTucker

Posts: 8,218
Registered: 31-Jan-2006
Re: java.lang.ClassNotFoundException: henriks.Zip
Posted: 3 Jun 24, 14:21   in response to: ismarker in response to: ismarker
 
  Click to reply to this thread Reply
ismarker wrote:
I understand, but isn't it a little confusing that the "Create new skin" dialog (Tools menu / Skin developer) asks which skin I want to base my new skin on?

David never removes anything, no matter how obsolete it has become. There are a number of things in jAlbum that should have been consigned to the dustbin of history years ago, but are still kicking around. All the rest of us can do is steer users away from them! ;)
RobM

Posts: 3,833
Registered: 4-Aug-2006
Re: java.lang.ClassNotFoundException: henriks.Zip
Posted: 3 Jun 24, 15:19   in response to: ismarker in response to: ismarker
 
  Click to reply to this thread Reply
ismarker wrote:
I understand, but isn't it a little confusing that the "Create new skin" dialog (Tools menu / Skin developer) asks which skin I want to base my new skin on?
Some background information:
Over six years ago most skins didn’t have compiled interfaces, most now do. You really need to understand at least the basics of the below languages and how to use NetBeans if you want to make your own skin. Some skins have the source code included, others you can ask the developer if they would share it. Some skins are built from scratch, others are based on free templates, some require acknowledgement of the original source others don’t.

Most users find a skin that meets most of their requirements and accept the compromise from their ideal design. How would you describe your coding skills with Java, Groovy, HTML, CSS and JavaScript? Have you read the tutorials and manual pages at https://jalbum.net/help/en/Developer_center
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums