aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Internal arcitecture of JNI_CreateJavaVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Internal arcitecture of JNI_CreateJavaVM " Watch "Internal arcitecture of JNI_CreateJavaVM " New topic
Author

Internal arcitecture of JNI_CreateJavaVM

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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:



[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19719
    
  20

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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

Joined: Oct 27, 2005
Posts: 19719
    
  20

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!!
 
wood burning stoves
 
subject: Internal arcitecture of JNI_CreateJavaVM