# G4P examples not readable

**URL:** <https://discourse.processing.org/t/g4p-examples-not-readable/1009>\
**Category:** Libraries\
**Created:** [June 16, 2018, 9:58am UTC](https://discourse.processing.org/t/g4p-examples-not-readable/1009 "2018-06-16T09:58:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![F6EEQ](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@F6EEQ](https://discourse.processing.org/u/F6EEQ)\
**Post date:** [June 16, 2018, 9:58am UTC](https://discourse.processing.org/t/g4p-examples-not-readable/1009/1 "2018-06-16T09:58:48Z")

</div>

Hi folks,

This post is related to G4P example, but also to lots of similar problems due to java script.

Almost all web browsers deny the use of java script. I ,normally use Firefox, but I also tried IE, Edge, Chrome…  
So it is impossible to load the examples.  
Is there a solution??  
I know this could not be the right plce, but…

Thank in advance.

Gerard

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [June 16, 2018, 2:10pm UTC](https://discourse.processing.org/t/g4p-examples-not-readable/1009/2 "2018-06-16T14:10:56Z")

</div>

Can you post a small sample code showing what you are trying to do? As far as I know, G4P is meant to be used in Processing Java but you are taking about javascript. They are two different things.

Kf

---

<div class="post-metadata">

**Author:** ![F6EEQ](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@F6EEQ](https://discourse.processing.org/u/F6EEQ)\
**Post date:** [June 16, 2018, 4:42pm UTC](https://discourse.processing.org/t/g4p-examples-not-readable/1009/3 "2018-06-16T16:42:53Z")

</div>

Hi kfrajer,

I’m speaking of the G4P samples, provided in G4P web pages.  
I cannot read the example program, because there is a warning in my browser(s) saying that javascript is not accepted for security reasons… which is confirmed on Java web page.

So I was wondering how to find a way to read these example.

Hope to be clear enough!

Sorry not Java script but Java plug-in is not accepted.

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [June 16, 2018, 4:45pm UTC](https://discourse.processing.org/t/g4p-examples-not-readable/1009/4 "2018-06-16T16:45:19Z")

</div>

Great, thx for clarifying. Share the link so other people could confirm having the same issue. What OS and browser plz?

Kf

---

<div class="post-metadata">

**Author:** ![F6EEQ](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@F6EEQ](https://discourse.processing.org/u/F6EEQ)\
**Post date:** [June 16, 2018, 4:54pm UTC](https://discourse.processing.org/t/g4p-examples-not-readable/1009/5 "2018-06-16T16:54:52Z")

</div>

Here W7 and Firefox, IE or Avast Secure Browser.

But at home I have W10 and FFox, and this is exacly the same problem.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [June 20, 2018, 3:17pm UTC](https://discourse.processing.org/t/g4p-examples-not-readable/1009/6 "2018-06-20T15:17:18Z")

</div>

> [@F6EEQ](#):
>
> I’m speaking of the G4P samples, provided in G4P web pages.  
> I cannot read the example program, because there is a warning in my browser(s) saying that javascript is not accepted for security reasons… which is confirmed on Java web page.

I believe that the G4P showcase:

[http://www.lagers.org.uk/g4p/ex-showcase/index.html](http://www.lagers.org.uk/g4p/ex-showcase/index.html)

is Java (not JavaScript – different language) and was created during an earlier era when Java plugins for the browser were common. Now Java plugins are rare – instead, contemporary browsers use JavaScript. So you will get an error like this:

> Java Plug-in is not supported by this browser.

That is expected.

Instead, explore the G4P example sketches from the PDE Examples menu. Just understand that they won’t run online! G4P is for Processing (Java). If you want to write Processing for the web, use p5.js or Processing.js instead, however I believe that G4P does not work with these.

---

<div class="post-metadata">

**Author:** ![F6EEQ](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@F6EEQ](https://discourse.processing.org/u/F6EEQ)\
**Post date:** [June 20, 2018, 4:25pm UTC](https://discourse.processing.org/t/g4p-examples-not-readable/1009/7 "2018-06-20T16:25:20Z")

</div>

OK thanks .

This works, and now I have to understand all these!!

Gerard
