# Example B1: run Beam On error

**URL:** <https://geant4-forum.web.cern.ch/t/example-b1-run-beam-on-error/3848>\
**Category:** Getting Started\
**Created:** [November 11, 2020, 3:06pm UTC](https://geant4-forum.web.cern.ch/t/example-b1-run-beam-on-error/3848 "2020-11-11T15:06:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![A01703007](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/a01703007/32/1993_2.png) [@A01703007](https://geant4-forum.web.cern.ch/u/A01703007)\
**Post date:** [November 11, 2020, 3:06pm UTC](https://geant4-forum.web.cern.ch/t/example-b1-run-beam-on-error/3848/1 "2020-11-11T15:06:04Z")

</div>

Hello!

I was finally able to run example 1 and build the geometry. However, I am having trouble with an error after running the command /run/beamOn 10

After running the executable, I get this output:

 ![Capture](https://geant4-forum.web.cern.ch/uploads/default/original/2X/6/6441d5d6aa1196d7e10991236b62f73f46680c58.png)

The output I am getting after running the command /run/beamOn 10 is this:

Idle\> /control/verbose 2  
/control/verbose 2  
Idle\> /tracking/verbose 1  
/tracking/verbose 1  
Idle\> /run/beamOn 10  
/run/beamOn 10

-------- EEEE ------- G4Exception-START -------- EEEE -------  
\*\*\* G4Exception : em0003  
issued by : G4SeltzerBergerModel::ReadData()  
Bremsstrahlung data file \<C:\Geant4\geant4\_10\_06-install\share\Geant4-10.6.2\data\G4EMLOW7.9.1;/brem\_SB/br6\> is not opened!G4LEDATA version should be G4EMLOW6.23 or later.

\*\*\* Fatal Exception \*\*\* core dump \*\*\*  
\*\*\*\* Track information is not available at this moment  
\*\*\*\* Step information is not available at this moment

-------- EEEE -------- G4Exception-END --------- EEEE -------

\*\*\* G4Exception: Aborting execution \*\*\*

Thank you!!!

---

<div class="post-metadata">

**Author:** ![A01703007](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/a01703007/32/1993_2.png) [@A01703007](https://geant4-forum.web.cern.ch/u/A01703007)\
**Post date:** [November 11, 2020, 3:22pm UTC](https://geant4-forum.web.cern.ch/t/example-b1-run-beam-on-error/3848/2 "2020-11-11T15:22:50Z")

</div>

Just as an update, I was able to solve this issue by redifining all environment variables as stipulated in the post-install setup guide. Hope this helps someone!

---

<div class="post-metadata">

**Author:** ![guatelli](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/guatelli/32/1912_2.png) [@guatelli](https://geant4-forum.web.cern.ch/u/guatelli)\
**Post date:** [November 11, 2020, 8:07pm UTC](https://geant4-forum.web.cern.ch/t/example-b1-run-beam-on-error/3848/3 "2020-11-11T20:07:04Z")

</div>

It seems to me that you can’t read the EM libraries. I think you should check the reading permission of the files of the EM libraries.
