# Using Qscript in java

**URL:** <https://discourse.processing.org/t/using-qscript-in-java/1833>\
**Category:** Libraries\
**Created:** [July 16, 2018, 10:52pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833 "2018-07-16T22:52:59Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctrembla](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Post date:** [July 16, 2018, 10:52pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/1 "2018-07-16T22:52:59Z")

</div>

I am trying to use Qscript in my page, but cant find a tutorial saying how to use it? I’m thinking it does the math stuff I’m looking for in my Neural Network, but when I look for tutorials for java QScript I only getting javascript.

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [July 16, 2018, 10:58pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/2 "2018-07-16T22:58:53Z")

</div>

Can you post a link to this library?

---

<div class="post-metadata">

**Author:** ![ctrembla](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Post date:** [July 16, 2018, 11:01pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/3 "2018-07-16T23:01:45Z")

</div>

here the site that talks about it  
[http://www.lagers.org.uk/qscript/](http://www.lagers.org.uk/qscript/)  
Can Qscript even do matrix math? I dont understand it.  
this is what popped up when I imported it.

```auto
import org.qscript.*;
import org.qscript.editor.*;
import org.qscript.errors.*;
import org.qscript.events.*;
import org.qscript.eventsonfire.*;
import org.qscript.operator.*;

```

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [July 16, 2018, 11:05pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/4 "2018-07-16T23:05:52Z")

</div>

There is a list of tutorials in the upper-right corner of the link you posted. The first link takes you here:

[http://www.lagers.org.uk/qscript/lg01-introduction.html](http://www.lagers.org.uk/qscript/lg01-introduction.html)

That contains Processing code samples that use the library.

---

<div class="post-metadata">

**Author:** ![ctrembla](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Post date:** [July 16, 2018, 11:07pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/5 "2018-07-16T23:07:56Z")

</div>

Thanks. I didnt see those. I still cant figure out if QScript can do matrix math. I see it talking about regular math.

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [July 16, 2018, 11:09pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/6 "2018-07-16T23:09:41Z")

</div>

You’ll discover that a lot of programming is reading instead of typing. 🐈

---

<div class="post-metadata">

**Author:** ![ctrembla](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Post date:** [July 16, 2018, 11:13pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/7 "2018-07-16T23:13:21Z")

</div>

I read the tutorial and didn’t see anything about matrix math. So can it do it or not?

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [July 16, 2018, 11:19pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/8 "2018-07-16T23:19:39Z")

</div>

Woah, you read all of the tutorials in 4 minutes? You must read faster than me!

I honestly don’t know, but I also encourage you to do some more research. Googling “java matrix multiplication library” returns a ton of results. If I were you I’d try a few of those. Put together a simple hello world program and see which one you like best.

Good luck!

---

<div class="post-metadata">

**Author:** ![ctrembla](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Post date:** [July 16, 2018, 11:21pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/9 "2018-07-16T23:21:09Z")

</div>

I googled that and downloaded the matrix library and couldnt find it in import libraby even after I dropped the file into it.  
I got a ejml-v0.34-libs zip folder that i unzipped.

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [July 16, 2018, 11:25pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/10 "2018-07-16T23:25:39Z")

</div>

Cool, sounds like you’re making progress. Let us know what you figure out.

---

<div class="post-metadata">

**Author:** ![ctrembla](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Post date:** [July 16, 2018, 11:32pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/11 "2018-07-16T23:32:06Z")

</div>

I’m not making progress that why I made this to get help. I found the matrix library a while ago but never figured out how to work it. I dropped it into libaries in the processing folder.

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [July 16, 2018, 11:33pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/12 "2018-07-16T23:33:24Z")

</div>

That’s a good first step. If I were you I would then try to put together a simple hello world program that tested the basic functionality of the library. Most popular libraries will have documentation and code samples. That’s where I’d start.

---

<div class="post-metadata">

**Author:** ![ctrembla](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Post date:** [July 16, 2018, 11:43pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/13 "2018-07-16T23:43:21Z")

</div>

I cant try the matrix library out if I cant import it. It not showing up in the import menu.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [July 16, 2018, 11:51pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/14 "2018-07-16T23:51:48Z")

</div>

- [https://GitHub.com/processing/processing/wiki/How-to-Install-a-Contributed-Library](https://GitHub.com/processing/processing/wiki/How-to-Install-a-Contributed-Library)

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [July 16, 2018, 11:55pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/15 "2018-07-16T23:55:34Z")

</div>

Right, like I mentioned in our private chat, you’re going to have to follow this guide to add the library: [https://github.com/processing/processing/wiki/How-to-Install-a-Contributed-Library](https://github.com/processing/processing/wiki/How-to-Install-a-Contributed-Library)

Alternatively, you can drag the `.jar` file onto the Processing editor to have it automatically added to your sketch.

---

<div class="post-metadata">

**Author:** ![ctrembla](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Post date:** [July 16, 2018, 11:59pm UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/16 "2018-07-16T23:59:44Z")

</div>

Like I asked in there do I take them out of the lib folder they in or not? I seen those links that tell how to do this and they not working. The matrix library is EJML the import aint working when I place the file name next to import.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [July 17, 2018, 12:15am UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/17 "2018-07-17T00:15:37Z")

</div>

> [@Including shared pde files across projects](https://discourse.processing.org/t/including-shared-pde-files-across-projects/1701/20):
>
> Not according to the article for installing libraries in Processing: no_entry[https://GitHub.com/processing/processing/wiki/How-to-Install-a-Contributed-Library](https://GitHub.com/processing/processing/wiki/How-to-Install-a-Contributed-Library) The top folder of a library must have the same name as the .jar file located inside a library’s library folder (minus the .jar extension): Therefore, we’re free to choose whatever name to the “.jar” file, as long as we use that same name for its top folder. face_with_monocle My “.jar” file was named as: “Palette.jar”. So in o…

---

<div class="post-metadata">

**Author:** ![ctrembla](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Post date:** [July 17, 2018, 12:21am UTC](https://discourse.processing.org/t/using-qscript-in-java/1833/18 "2018-07-17T00:21:19Z")

</div>

I’ll just switch to a python matrix library and get it to work.
