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


Permlink Replies: 2 - Pages: 1 - Last Post: 22-Sep-2014 01:43 Last Post By: jGromit
monkeyboy

Posts: 1,213
Registered: 21-Jun-2008
Error on loading FotoSlides v1.0.7 skin using Java 8
Posted: 16-Apr-2014 15:23
 
  Click to reply to this thread Reply
Hi.
I get the following error on loading the FotoSlides v1.0.7 skin under jAlbum 12.0.6 using Java 8. The problem does not occur when when I use jAlbum bundled with its own version of Java (Java 7 Update 51) but I thought I'd let you know.
se.datadosen.tags.ElementException: Evaluation error on line 38:
 
Details:
Sourced file: inline evaluation of: ``import edu.stanford.ejalbert.BrowserLauncher;  import java.io.*;  import se.data . . . '' unknown error: 1 : at Line: 38 : in file: inline evaluation of: ``import edu.stanford.ejalbert.BrowserLauncher;  import java.io.*;  import se.data . . . '' : public class OrderedProperties extends Properties { 
 
	at se.datadosen.jalbum.AlbumBean.doProcessExpression(AlbumBean.java:1981)
	at se.datadosen.jalbum.AlbumBean.processExpression(AlbumBean.java:1958)
	at se.datadosen.jalbum.AlbumBean.processBeanShellFile(AlbumBean.java:1945)
	at se.datadosen.jalbum.AlbumBean.processBeanShellFile(AlbumBean.java:1939)
	at se.datadosen.jalbum.JAlbumFrame.executeScript(JAlbumFrame.java:1114)
	at se.datadosen.jalbum.JMainSettingsPanel$5$1.run(JMainSettingsPanel.java:243)
monkeyboy

Posts: 1,213
Registered: 21-Jun-2008
Re: Error on loading FotoSlides v1.0.7 skin using Java 8
Posted: 06-Sep-2014 19:19   in response to: monkeyboy in response to: monkeyboy
 
  Click to reply to this thread Reply
It looks like a method name clash with Java 8. (The problem is still present with Java 8 Update 20.)
In FotoSlide's 'onload.bsh' file, change line 49 from:
public Object remove(Object key) {

... to:
public Object removeKey(Object key) {

... and change line 1873 from:
userThemesprops.remove(enteredThemeName);

... to:
userThemesprops.removeKey(enteredThemeName);
jGromit

Posts: 33,157
Registered: 31-Jan-2006
Re: Error on loading FotoSlides v1.0.7 skin using Java 8
Posted: 22-Sep-2014 01:43   in response to: monkeyboy in response to: monkeyboy
 
  Click to reply to this thread Reply
Attachment onload.bsh (104,2 KB)
Corrected onload.bsh for FotoSlides skin attached. Open the skin directory and copy this file to it.
Legend
Forum admins
Helpful Answer
Correct Answer

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