Discussion Locked
0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I try to use c++ program/function in my java program but I don't know how to call them in java. Besides, I don't know how to put them in a pacakge under different directory and call them on my working directory.
5 replies
by manoj_u_99
any c++ or c functions can be called in java using the native keyword.
the necessary header files have to be included and the function can be used with the native keyword.
i hope the answer satisfies ur need.
by jason
The question was auto-closed by TechRepublic
by iceblast
you can use the "native" keyword.
since u say u cannot locate the file if put in the different folder, then try this Runtime method:
public void load(String filename)
note that uhv to hv privileged to perform this operation.
hope this help solving your problem.
by jason
The question was auto-closed by TechRepublic
by jason
This question was auto closed due to inactivity
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
0 helpful
5 replies
1 helpful
3 replies
0 helpful
1 reply
0 helpful
1 reply
Question Unanswered
PDF vs HTML
0 helpful
0 replies