Cannot compile when importing Processing library into eclipse

前端 未结 3 1658
野趣味
野趣味 2021-01-24 17:29

I am trying to build a program using the Processing library in eclipse. The process should be relatively straightforward but I cannot compile even an empty processing program. I

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-24 18:02

    I cannot compile even an empty processing program.

    This is not a compiler error. This is a runtime error.

    Anyway, like chrylis mentioned, this is because your classpath is not correct. How you fix this depends on which IDE you're using, but in eclipse you would right-click your project, then click properties, then go to the Java Build Path section on the left. Then go to the Libraries tab and add the Processing jars.

    My guess is that you've added core.jar, which is all you need to compile your code. But since you're running on a Mac, you need the Mac-specific jars as well. You'll have to look in your Processing installation directory. Sorry I can't be more specific, but I don't have a Mac.

提交回复
热议问题