Hello every time I open Titanium studio, this error pops up and I don't know the problem.
error: Failed to load the JNI shared library "C:\Program Files\Java\jdk1.7.0_40\bin..\jre\bin\server\jvm.dll"
You probably indicated at installation time that this was the JDK to use for Titanium, and later updated to a newer version and deleted the old one.
Now Titanium tries to invoke the JVM in the JDK as told, and fails. A probable fallback is to use the system java command if you have installed a JRE separately (so "java" works directly in a CMD.EXE session).