The problem here is that in this shell, Python doesn't exist (the 'permission denied' error is perhaps a bit misleading). Here's what's happening:
- I assume the window in your screenshot is from running MinGWenv.cmd which comes with omnet++. This is a MinGW shell (see
http://www.mingw.org/Welcome_to_MinGW_org) which is an amazing tool, which magically provides a minimal GNU build environment (which means you can run build tools like Make) and a Bourne-like shell interpreter (which allows you to reference paths using linux-style /c/MyThesis/whatever instead of windows-style C:\MyThesis\, use bash syntax etc.) all within Windows.
- This is great for building omnet and Castalia on Windows into an .exe, but *it doesn't provide a full linux environment*. Just build tools.
- When you call Castalia, this is asking the shell to run the file called Castalia in the bin folder. The first line of the file is:
#!/usr/bin/python
This tells the shell that to run this file (which is a Pyhton script), you need to use the program called python which is at location /usr/bin. However, this location does not exist on a Windows machine, hence the error.
What you need to do is download Python 2.7 for Windows (
https://www.python.org/downloads/release/python-2714/). Easiest is to use the MSI installer. *Make sure you include the 'add python to PATH' feature*. Then open a normal Windows command prompt (i.e. hit 'start key' and enter 'cmd'), cd to the Castalia bin folder, and run:
python Castalia