4

I am having difficulty with Titanium cross mobile development platform, i am getting error "failed to load JNI shared library c:\programfiles\java\jdk 1.6.0 _45\bin\server\jvm.dll.

could any one help.Thanks in advance.

Anand
  • 5,323
  • 5
  • 44
  • 58
Akshay
  • 61
  • 1
  • 6

1 Answers1

8

Did you read System Requirements?

From Documentation:

For Windows, the 32-bit version of Java JDK is required regardless of whether Titanium is running on a 32-bit or 64-bit system.

Try to install additional 32bit version of Java (without removing the 64bit) and set the system variable.

You can refer the following links for it

  1. Failed to load the jni shared library jvmdll Titanium

  2. Failed to load the jni shared library jdk - Eclipse

Hope it helped you

Community
  • 1
  • 1
Anand
  • 5,323
  • 5
  • 44
  • 58
  • Hi Anand Thanks for your responce – Akshay Jun 12 '13 at 05:58
  • Hi Anand,i install java 32 bit version in a different location and it works,thanks for your great help. – Akshay Jun 12 '13 at 09:43
  • Hi Anand In my titanium studio,i started with app.js file i am trying to create new window there but i am getting error,Is this a right way to develop in titanium. – Akshay Jun 12 '13 at 12:00
  • var win = Ti.UI.currentWindow; – Akshay Jun 13 '13 at 05:58
  • @Akshay: It will work only if there exists a window. Otherwise you need to create window using createWindow method. Please read the documentation from http://docs.appcelerator.com/titanium/latest/#!/api – Anand Jun 13 '13 at 06:32