# Running old Processing app with old G4P on latest Mac

**URL:** https://discourse.processing.org/t/running-old-processing-app-with-old-g4p-on-latest-mac/23792
**Category:** Libraries
**Created:** [September 11, 2020, 9:39am UTC](https://discourse.processing.org/t/running-old-processing-app-with-old-g4p-on-latest-mac/23792 "2020-09-11T09:39:37Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![diyoyo](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@diyoyo](https://discourse.processing.org/u/diyoyo)
#### Post date: [September 11, 2020, 9:39am UTC](https://discourse.processing.org/t/running-old-processing-app-with-old-g4p-on-latest-mac/23792/1 "2020-09-11T09:39:37Z")

</div>

Hi,  
I am having trouble running a 5-year old code that used G4P.  
I tried installing the old G4P and G4P Builder inside a dedicated folder accessed by a separate install of Processing 3.4, since I also have the latest Processing.  
But yet, I still have plenty of G4P errors, or even PGraphics errors.  
Basically, the code had some chunks like this:

```auto
size(width, height, P3D)

```

If I keep the P3D, the app won’t work. If I remove it (and removing it in all the PGraphics creation), the UI starts but the graphics don’t seem to be working, and I get plenty of awt etc. errors.

The code worked in the past.

So before investigating an old working code, I am wondering whether structural changes somewhere else (like my macOS) could have an impact or not?  
Is running the code on Processing 3.4 with G4P 4.1.5 and G4P Tools 4.2.1 the only thing I can try before digging into the code?

Thanks.

---

<div class="post-metadata">

### Author: ![Hyperion65](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hyperion65/32/10569_2.png) [@Hyperion65](https://discourse.processing.org/u/Hyperion65)
#### Post date: [September 12, 2020, 11:15pm UTC](https://discourse.processing.org/t/running-old-processing-app-with-old-g4p-on-latest-mac/23792/2 "2020-09-12T23:15:10Z")

</div>

if I want to use old stuff, even though it already smells a little rancid, I rather keep an old version of processing and the old libraries and start it from there…

unless you “need” to use the newest processing version. but then I think it would make sense to update your code too…

you wouldn’t let your grandma ride on your brand new bike either… ride it yourself while you’re still young !

---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [September 13, 2020, 10:45am UTC](https://discourse.processing.org/t/running-old-processing-app-with-old-g4p-on-latest-mac/23792/3 "2020-09-13T10:45:42Z")

</div>

> [@diyoyo](#):
>
> am having trouble running a 5-year old code that used G4P.

5-6 years ago Processing was making a big leap from Processing 2 to Processing 3 and the changes required G4P to be rewritten from the ground up. The first release of G4P for PS3 was V4.0

It is possible that the code you are trying to run is for Processing 2 in which case you would need to get and install

- Processing V2.2.1
- G4P V3.5.4, and
- GUI Builder 2.6 (may not be possible to use, see note)

**Note:** You actually need the same version of GUI Builder that was used in the original code. Look inside the sketch folder for a folder called **`GUI_BUILDER_DATA`** and if present look inside for a file called **`gui.ser.?.?`** where **`?.?`** is the version of GUI Builder used. Without this file GUI Builder cannot be used with the sketch.

> [@diyoyo](#):
>
> separate install of Processing 3.4,

This is unlikely to be useful since 3.4 was released 26th July 2018.

---

<div class="post-metadata">

### Author: ![diyoyo](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@diyoyo](https://discourse.processing.org/u/diyoyo)
#### Post date: [September 13, 2020, 1:57pm UTC](https://discourse.processing.org/t/running-old-processing-app-with-old-g4p-on-latest-mac/23792/4 "2020-09-13T13:57:05Z")

</div>

> [@quark](#):
>
> - Processing V2.2.1
> - G4P V3.5.4, and
> - GUI Builder 2.6 (may not be possible to use, see note)

Thanks, I am on the way of testing this, but now I need to see if I can easily launch Processing 2 with Java8 instead of my Java14 system config, since other dependencies (Bezier SQL lib) are also obsolete now.

As for the builder, I don’t really need to build a new GUI, just to be able to display the old one.

---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [September 13, 2020, 2:00pm UTC](https://discourse.processing.org/t/running-old-processing-app-with-old-g4p-on-latest-mac/23792/5 "2020-09-13T14:00:04Z")

</div>

> [@diyoyo](#):
>
> I don’t really need to build a new GUI, just to be able to display the old one.

Then ignore GUI Builder 👍🏻

---

<div class="post-metadata">

### Author: ![diyoyo](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@diyoyo](https://discourse.processing.org/u/diyoyo)
#### Post date: [September 13, 2020, 2:03pm UTC](https://discourse.processing.org/t/running-old-processing-app-with-old-g4p-on-latest-mac/23792/6 "2020-09-13T14:03:04Z")

</div>

Ok, It was not a Java8 system problem since P5 2 is shipped with Java1.7.  
I just had to download Bezier directly from [http://bezier.de/processing/libs/sql/](http://bezier.de/processing/libs/sql/) and not from the p5 app store.

---

<div class="post-metadata">

### Author: ![diyoyo](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@diyoyo](https://discourse.processing.org/u/diyoyo)
#### Post date: [September 13, 2020, 2:39pm UTC](https://discourse.processing.org/t/running-old-processing-app-with-old-g4p-on-latest-mac/23792/7 "2020-09-13T14:39:02Z")

</div>

> [@quark](#):
>
> G4P V3.5.4, and

A bit out of topic for this question, but here another concern: at the time, I was not using git, nor any good programming practice. I have 3 copies of my P5 programs, and file comparison look very similar. I have noticed two versions that only differ by their G4P commands:

```auto
field.setPromptText("0")

```

instead of

```auto
field.setDefaultText("0")

```

From your documentation, I understand that setPromptText() is more recent, right?  
At which G4P version did the change occur?

Thanks.

---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [September 13, 2020, 2:56pm UTC](https://discourse.processing.org/t/running-old-processing-app-with-old-g4p-on-latest-mac/23792/8 "2020-09-13T14:56:49Z")

</div>

The `setPromptText` was introduced in 3.5 to replace `setDefaultText` which was then deprecated.

In 4.0 `setDefaultText` was finally removed to avoid any confusion.

A detaled list of changes can be found [here](http://www.lagers.org.uk/g4p/changes.txt). The changes can also be found in the library download in a simple text file.
