# Can't use P3D, can't follow an example, on Linux

**URL:** https://discourse.processing.org/t/cant-use-p3d-cant-follow-an-example-on-linux/24874
**Category:** Processing
**Created:** [October 24, 2020, 8:12pm UTC](https://discourse.processing.org/t/cant-use-p3d-cant-follow-an-example-on-linux/24874 "2020-10-24T20:12:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![raboytniksings](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@raboytniksings](https://discourse.processing.org/u/raboytniksings)
#### Post date: [October 24, 2020, 8:12pm UTC](https://discourse.processing.org/t/cant-use-p3d-cant-follow-an-example-on-linux/24874/1 "2020-10-24T20:12:30Z")

</div>

I am new to Processing, I have a goal in mind and I have found some tutorials on youtube that I think I can use to reach my goal.  
Here’s the code I’d like to tweak:

```auto
int amount = 300;
int[] x = new int[amount];
int[] y = new int[amount];
int[] z = new int[amount];

void setup() {
  size(500,400,P3D);
  background(0);
  noFill();
  stroke(255);
  strokeWeight(2);
  for(int i = 0; i<amount; i++) {
    x[i] = int(random(-150, 150));
    y[i] = int(random(-150, 150));
    z[i] = int(random(-150, 150));
  }
}
void draw() {
  background(0);
  
  translate(width/2, height/2);
  
  rotateY(frameCount / 100.0);
  
  box(300);
  for(int i=0; i<amount; i++) {
    point(x[i], y[i], z[i]);
  }
}

```

However this yields

```auto
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=gasp
java.lang.RuntimeException: Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x7fc9e801af90, owner true, ResourceToolkitLock[obj 0x63cbe4f1, isOwner true, <67f47c50, 22f6eeca>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>]]], but: [GLProfile[GLES1/GLES1.hw], GLProfile[GLES2/GLES3.hw], GLProfile[GL2ES1/GLES1.hw], GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GLES3/GLES3.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]
	at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:410)
	at java.lang.Thread.run(Thread.java:748)
RuntimeException: Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x7fc9e801af90, owner true, ResourceToolkitLock[obj 0x63cbe4f1, isOwner true, <67f47c50, 22f6eeca>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>]]], but: [GLProfile[GLES1/GLES1.hw], GLProfile[GLES2/GLES3.hw], GLProfile[GL2ES1/GLES1.hw], GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GLES3/GLES3.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]

```

I am using Processing 3 under Arch Linux.

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [October 24, 2020, 8:48pm UTC](https://discourse.processing.org/t/cant-use-p3d-cant-follow-an-example-on-linux/24874/2 "2020-10-24T20:48:31Z")

</div>

Hi,

Welcome to the community! 🙂

This issue has already been solved here : [[SOLVED] P2D/P3D sketches won't start on fresh Ubuntu 18.04 installation](https://discourse.processing.org/t/solved-p2d-p3d-sketches-wont-start-on-fresh-ubuntu-18-04-installation/3568/33)

---

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [October 25, 2020, 2:24pm UTC](https://discourse.processing.org/t/cant-use-p3d-cant-follow-an-example-on-linux/24874/3 "2020-10-25T14:24:38Z")

</div>

May work for some, but have had experience since with another machine with more recent hardware and OS that didn’t.
