I found an unwanted '=' at the start of the project file path, removing that gets rid of the original error and works with Minimal skin. Then, foolishly, I tried one of my actual projects using my Notables skin and got a much more interesting response!
In Terminal, having navigated to the Java directory within the jAlbum application package (Roberts-MBP:Java robert$), I enter
java -Xmx400M -Djava.awt.headless=true -DincludeFolder="top folder" -jar JAlbum.jar -projectFile /Users/robert/Pictures/jAlbum/home/photos/photos.jap
And get the following message
code
java -Xmx400M -Djava.awt.headless=true -DincludeFolder="top folder" -jar JAlbum.jar -projectFile /Users/robert/Pictures/jAlbum/home/photos/photos.jap
jAlbum v12.3 started in console mode
Preparing album engine with settings from /Users/robert/Library/JAlbum/skins/Notables/headless-settings.jap
javax.script.ScriptException: bsh.TargetError: Sourced file: inline evaluation of: ``/** * This script is run everytime an album is generated. * It adds camera d . . . '' : Typed variable declaration : Method Invocation nao.getVars : at Line: 620 : in file: inline evaluation of: ``/** * This script is run everytime an album is generated. * It adds camera d . . . '' : nao .getVars ( )
Target exception: java.lang.RuntimeException: Cannot register variables for index.htt
in inline evaluation of: ``/** * This script is run everytime an album is generated. * It adds camera d . . . '' at line number 620
at bsh.BshScriptEngine.evalSource(BshScriptEngine.java:97)
at bsh.BshScriptEngine.eval(BshScriptEngine.java:61)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
at se.datadosen.jalbum.AlbumBean.doProcessExpression(AlbumBean.java:2091)
at se.datadosen.jalbum.AlbumBean.processExpression(AlbumBean.java:2075)
at se.datadosen.jalbum.AlbumBean.processScript(AlbumBean.java:2030)
at se.datadosen.jalbum.AlbumBean.prepareMakeAlbum(AlbumBean.java:2469)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:2255)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:2237)
at se.datadosen.jalbum.JAlbumConsole.<init>(JAlbumConsole.java:104)
at se.datadosen.jalbum.JAlbum.main(JAlbum.java:323)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at se.datadosen.jalbum.Main.main(Main.java:36)
Caused by: java.lang.RuntimeException: Cannot register variables for index.htt
at se.datadosen.jalbum.AlbumObjectImpl.getVars(AlbumObjectImpl.java:2167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at bsh.Reflect.invokeMethod(Reflect.java:146)
at bsh.Reflect.invokeObjectMethod(Reflect.java:79)
at bsh.Name.invokeMethod(Name.java:859)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHVariableDeclarator.eval(BSHVariableDeclarator.java:86)
at bsh.BSHTypedVariableDeclaration.eval(BSHTypedVariableDeclaration.java:84)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.BSHEnhancedForStatement.eval(BSHEnhancedForStatement.java:80)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:362)
at bsh.BshMethod.invoke(BshMethod.java:258)
at bsh.BshMethod.invoke(BshMethod.java:186)
at bsh.Name.invokeLocalMethod(Name.java:918)
at bsh.Name.invokeMethod(Name.java:804)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.BSHIfStatement.eval(BSHIfStatement.java:48)
at bsh.Interpreter.eval(Interpreter.java:672)
at bsh.Interpreter.eval(Interpreter.java:766)
at bsh.Interpreter.eval(Interpreter.java:755)
at bsh.BshScriptEngine.evalSource(BshScriptEngine.java:89)
... 15 more
Caused by: java.lang.RuntimeException: Error processing /Users/robert/Pictures/jAlbum/home/photos/index.htt
at se.datadosen.jalbum.AlbumBean.registerVariables(AlbumBean.java:1942)
at se.datadosen.jalbum.AlbumObjectImpl.getVars(AlbumObjectImpl.java:2165)
... 49 more
Caused by: java.lang.RuntimeException: Custum UI scripting error
at se.datadosen.jalbum.AlbumBean.registerVariables(AlbumBean.java:1879)
... 50 more
Caused by: bsh.InterpreterError: Error in class initialization: bsh.TargetError: Typed variable declaration : Object constructor : at Line: 26 : in file: inline evaluation of: `` // Check the skin's properties file for fullSiteSupport File skinDescFile = n . . . '' : new JSmartTextArea ( "#pageContent{ \n\n}" , 15 , 30 )
Target exception: java.lang.ExceptionInInitializerError
at bsh.ClassGeneratorUtil.initInstance(ClassGeneratorUtil.java:968)
at contactPrintSheetUI.<init>(BeanShell Generated via ASM (www.objectweb.org))
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at java.lang.Class.newInstance(Class.java:433)
at se.datadosen.jalbum.AlbumBean.registerVariables(AlbumBean.java:1862)
... 50 more
Caused by: bsh.TargetError: Typed variable declaration : Object constructor : at Line: 26 : in file: inline evaluation of: `` // Check the skin's properties file for fullSiteSupport File skinDescFile = n . . . '' : new JSmartTextArea ( "#pageContent{ \n\n}" , 15 , 30 )
Target exception: java.lang.ExceptionInInitializerError
at bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:132)
at bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:114)
at bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHVariableDeclarator.eval(BSHVariableDeclarator.java:86)
at bsh.BSHTypedVariableDeclaration.eval(BSHTypedVariableDeclaration.java:84)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.ClassGeneratorUtil.initInstance(ClassGeneratorUtil.java:966)
... 57 more
Caused by: java.lang.ExceptionInInitializerError
at se.datadosen.component.JSmartTextArea.makeSmart(JSmartTextArea.java:49)
at se.datadosen.component.JSmartTextArea.<init>(JSmartTextArea.java:32)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at bsh.Reflect.constructObject(Reflect.java:574)
at bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:125)
... 65 more
Caused by: java.awt.HeadlessException
at sun.awt.HeadlessToolkit.getMenuShortcutKeyMask(HeadlessToolkit.java:234)
at se.datadosen.component.JSmartTextComponentSupport.<clinit>(JSmartTextComponentSupport.java:49)
... 73 more
codeUsing jAlbum 12.3 Java 1.8, 64 bit (java.runtime.version 1.8.0_25-b17, os.version 10.10.1). A good job I don't use the command line. Anyway, I can now play around with the command line with other skins if need be.