Hello processing community.
before I start, here is my environment:
IntelliJ IDEA 2019.1 (Community Edition)
Build #IC-191.6183.87, built on March 27, 2019
JRE: 1.8.0_202-release-1483-b39 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Processing 3.5.3
Windows 10 10.0
What I intend to do is, save my sketch as svg or dxf.
What I did.
Step 1. In Processing I created this simple sketch, runs it, it works.
import processing.svg.*;
void setup() {
size(400, 400, SVG, "E:\\xxx\\filename.svg");
}
void draw() {
// Draw something good here
line(0, 0, width/2, height);
// Exit the program
println("Finished.");
exit();
}
Step 2. In IntelliJ IDEA, saw this
and
https://forum.processing.org/two/discussion/3687/cant-use-opengl-in-eclips
so, I have followed them by loading all of libs.
Here is the screen capture of it.
-
When I try to run the code created in step 1 from IntelliJ IDEA. IntelliJ says,
java.lang.RuntimeException: The processing.svg.PGraphicsSVG renderer is not in the class path.
-
I can not put
import processing.svg.*;
in my sketch in IntelliJ, as it complains
Can not resolve symbol ‘svg’
How can I solve this problem?
Thank you for your help.