# Libraries | SVG Export on IntelliJ IDEA

**URL:** https://discourse.processing.org/t/libraries-svg-export-on-intellij-idea/11410
**Category:** Libraries
**Created:** [May 20, 2019, 8:03am UTC](https://discourse.processing.org/t/libraries-svg-export-on-intellij-idea/11410 "2019-05-20T08:03:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Bizkit\_j](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@Bizkit\_j](https://discourse.processing.org/u/Bizkit_j)
#### Post date: [May 20, 2019, 8:03am UTC](https://discourse.processing.org/t/libraries-svg-export-on-intellij-idea/11410/1 "2019-05-20T08:03:15Z")

</div>

Hello processing community.

before I start, here is my environment:

```auto
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.

```auto
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

> [@Processing Renderer in NetBeans](https://discourse.processing.org/t/processing-renderer-in-netbeans/6477):
>
> HI I’m using processing in NetBeans but I got this error when I try to set P3D renderer in settings; public void settings() { size(300, 300, "P3D"); } java.lang.RuntimeException: The P3D renderer is not in the class path. How can I solve this problems? Do I have to load some specific jar library? Thanks Paolo

and  
[https://forum.processing.org/two/discussion/3687/cant-use-opengl-in-eclips](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.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/e/eeeabbdcc4415f47fb3351112118ebf91c071acf.png)

1. 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.`

2. 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.

---

<div class="post-metadata">

### Author: ![Bizkit\_j](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@Bizkit\_j](https://discourse.processing.org/u/Bizkit_j)
#### Post date: [May 21, 2019, 5:00am UTC](https://discourse.processing.org/t/libraries-svg-export-on-intellij-idea/11410/2 "2019-05-21T05:00:27Z")

</div>

Here is a screen cap of the issue.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/874f5f960d9c75bf9f9ce87f536c40c9ca1a9a7f.png)

---

<div class="post-metadata">

### Author: ![hamoid](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hamoid/32/58_2.png) [@hamoid](https://discourse.processing.org/u/hamoid)
#### Post date: [May 21, 2019, 6:43am UTC](https://discourse.processing.org/t/libraries-svg-export-on-intellij-idea/11410/3 "2019-05-21T06:43:50Z")

</div>

Hi! It looks ilke you didn’t add the svg libraries to the project. They are in the Processing folder. In my case in

```
/usr/share/processing/modes/java/libraries/svg/library

```

I see these files

```
batik-awt-util-1.8.jar batik-dom-1.8.jar batik-ext-1.8.jar batik-svggen-1.8.jar batik-util-1.8.jar batik-xml-1.8.jar LICENSE svg.jar
```

---

<div class="post-metadata">

### Author: ![Bizkit\_j](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@Bizkit\_j](https://discourse.processing.org/u/Bizkit_j)
#### Post date: [May 22, 2019, 12:47am UTC](https://discourse.processing.org/t/libraries-svg-export-on-intellij-idea/11410/4 "2019-05-22T00:47:00Z")

</div>

Hi there.

It works.

Thank you so much for this.

For anyone from the future, you need to load the lib from

> `your processing location\modes\java\libraries\svg\library\`
