• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Internal arcitecture of JNI_CreateJavaVM

 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,


Is it possible to know which steps are involved when we call "JNI_CreateJavaVM" through C program ? Is it possible to get its method body?

Actually, the scenario is : I'm modifying the custom JVM launcher EXE file which till date supports JDK 1.3 "jvm.dll" (hotspot and classic), Now the requirement is come to replace this JVM with JDK1.5, I configured everything correctly but, code gets stuck at "CreateJavaVM " call and doesn't return anything, nor error code nor success, looks like an exception had occurred every time when we call "CreateJavaVM " method and and its not possible to handle this exception.

Code:

 
Rob Spoor
Sheriff
Pie
Posts: 20661
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For starters, I would fix your strings: Just like in Java, \ is an escape character in C and C++ strings. Try changing these strings as follows:

Let's move this to the Other JSE/JEE APIs forum, because that's where JNI belongs
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:Let's move this to the Other JSE/JEE APIs forum, because that's where JNI belongs

Thanks for the initial suggestion, and as a remainder you haven't move my post yet .
 
Rob Spoor
Sheriff
Pie
Posts: 20661
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sagar Rohankar wrote:
Rob Prime wrote:Let's move this to the Other JSE/JEE APIs forum, because that's where JNI belongs

Thanks for the initial suggestion, and as a remainder you haven't move my post yet .

D'OH!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic