APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Problems in inserting image post and replies

Return to the Problems in inserting image thread
Login to post to this thread

Problems in insert image.
Otavio Neves
7 Posts

I want to insert an image in my simulation of circuit, but when I start the application, or package it, an error pops up saying could not find the target photo. Ja took all sorts of accents and punctuation, but not funcinou. Also already put into the source folder in ejs Model 5.0 and did not work. What might be happening? Attached is the simulation. The image is in jpeg format. I am not able to insert the attachment to show what the figure.

Replies to Problems in insert image.

Re: Problems in insert image. -
Francisco Esquembre
228 Posts


All files (resources) required by a simulation must be in the same directory or in a subdirectory of the simulation .ejs file. This allows EjsS to refer to them RELATIVELY (with a name that starts with "./"). I cannot find your sample simulation attached to your posts. But I can figure out that this is the problem: you are not placing the image file relative to your simulation file.

If this is not the problem, please make sure you attach the simulation (exported as a zip file from EjsS) to your post.


OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book