Gives me an error that starts like this: processing.app.SketchException: unexpected char: 'U'

edited November 2016 in Using Processing

Can someone help me solve this problema. It gives me an error that is like this:processing.app. SketchException: unexpected char: 'U' at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:386) at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:192) at processing.mode.java.JavaBuild.build(JavaBuild.java:151) at processing.mode.java.JavaBuild.build(JavaBuild.java:130) at processing.mode.java.JavaMode.handleRun(JavaMode.java:120) at processing.mode.java.JavaEditor$23.run(JavaEditor.java:697) at java.lang.Thread.run(Unknown Source)

Can someone help me solve it?

Answers

  • not without seeing the code.

    is there a U in your code?

  • This is the line that is highlited: trainingData[i] = loadStrings("C:\Users\Juan Carlos\Desktop\Nada"+i+".txt");

  • edited November 2016 Answer ✓

    the backslash in java is used to escape characters - for instance \n is a newline.

    replace each \ with \\ and it should be ok

  • Thank you it worked.

Sign In or Register to comment.