Java Library to .JS / load data

Hello,

I made this random bandname and coverdesigner and would like to run it online with a browser. Now the problem is that it does not load the sketch in chrome. ErrorMsg: "Uncaught ReferenceError: sketchPath is not defined

"setup @ VM297:67 Processing.Processing.executeSketch @ processing.js:21508 Processing.Processing @ processing.js:21535 callback @ processing.js:950 Processing.loadSketchFromSources.xhr.onreadystatechange @ processing.js:929"

I'm loading some Java libraries (maybe not all are necessary or can be replaced) import java.io.File; import java.io.FilenameFilter; import java.util.ArrayList; import java.util.Arrays; import java.nio.file.Paths;

Also it is loading an image from google every time the mouse is clicked. Does it even make sense to work on it as pjs needs the image to be loaded before the sketch?

Here is the website: http://matthias.pitscher.pw/coverdesigner.html and github: https://github.com/astreinerBaum/astreinerbaum.github.io/tree/master/PDE/CoverDesigner

Thanks for the help! Pitscher

Answers

Sign In or Register to comment.