Click here to Skip to main content
15,896,915 members
Home / Discussions / Java
   

Java

 
GeneralRe: Java C header dll Pin
Valentinor9-Jun-18 10:38
Valentinor9-Jun-18 10:38 
jschell wrote:
Most people will not go to a site to look at your code.

Yeah, I know, but this time, there was a lot of code to show, so I decided to post it in case someone is interested in.
jschell wrote:
2. The definition must match EXACTLY with the expected classes in the native library. Changes to packages, methods, parameters, access, etc, all require regenerating the api, recompiling and building a new native library.

I thought this is the problem, after all, C source code was the same in both cases, only the header file was different, which was generated based on the class from java.
jschell wrote:
You can achieve the same functionality using an external executable and accessing via any number of methods such as stdin/out, files, sockets or even running it as a true service (http, rest, etc)

This can be a good alternative, tho I would have to make sure that the external executable finished what was supposed to do, before Java continues with the rest of the code.
jschell wrote:
It is possible to validate that a native library loads (1 above) and this should ALWAYS be verified. Methods should be wrapped in a proxy class so that that mismatches (2) can be captured an properly reported as being mismatches.

Yeah, that would be a mistake not to do, and I'm sure quite a few times it is made, being from laziness or a different reason.

Thanks for your response.
QuestionConsole javac -h errors [SOLVED] Pin
Valentinor6-Jun-18 7:23
Valentinor6-Jun-18 7:23 
AnswerRe: Console javac -h errors Pin
Richard MacCutchan6-Jun-18 11:18
mveRichard MacCutchan6-Jun-18 11:18 
GeneralRe: Console javac -h errors Pin
Valentinor6-Jun-18 20:35
Valentinor6-Jun-18 20:35 
GeneralRe: Console javac -h errors Pin
Valentinor6-Jun-18 21:08
Valentinor6-Jun-18 21:08 
GeneralRe: Console javac -h errors Pin
Richard MacCutchan6-Jun-18 21:50
mveRichard MacCutchan6-Jun-18 21:50 
GeneralRe: Console javac -h errors Pin
Valentinor6-Jun-18 22:01
Valentinor6-Jun-18 22:01 
GeneralRe: Console javac -h errors Pin
Richard MacCutchan6-Jun-18 22:18
mveRichard MacCutchan6-Jun-18 22:18 
GeneralRe: Console javac -h errors Pin
Valentinor6-Jun-18 23:02
Valentinor6-Jun-18 23:02 
AnswerRe: Console javac -h errors SOLUTION Pin
Valentinor6-Jun-18 23:27
Valentinor6-Jun-18 23:27 
Questioncounting hand fingers in an image Pin
User 138227701-Jun-18 16:26
User 138227701-Jun-18 16:26 
AnswerRe: counting hand fingers in an image Pin
Richard MacCutchan2-Jun-18 0:22
mveRichard MacCutchan2-Jun-18 0:22 
Questionhow to start learning java Pin
Member 1383037827-May-18 23:23
Member 1383037827-May-18 23:23 
AnswerRe: how to start learning java Pin
Richard MacCutchan28-May-18 22:16
mveRichard MacCutchan28-May-18 22:16 
QuestionNeed help choosing test API Pin
Member 1384132023-May-18 8:37
Member 1384132023-May-18 8:37 
QuestionMessage Closed Pin
10-May-18 0:44
Andrew Steves10-May-18 0:44 
AnswerRe: Error in Integer mode Pin
Richard MacCutchan10-May-18 1:16
mveRichard MacCutchan10-May-18 1:16 
GeneralRe: Error in Integer mode Pin
Richard Deeming10-May-18 1:26
mveRichard Deeming10-May-18 1:26 
GeneralRe: Error in Integer mode Pin
Richard MacCutchan10-May-18 1:27
mveRichard MacCutchan10-May-18 1:27 
QuestionHalp please? Dice roll game. Pin
Gril13376-May-18 7:01
Gril13376-May-18 7:01 
AnswerRe: Halp please? Dice roll game. Pin
Richard MacCutchan6-May-18 21:52
mveRichard MacCutchan6-May-18 21:52 
QuestionSolving symmetric tree problem by recursive solution Pin
ElenaRez6-May-18 6:52
ElenaRez6-May-18 6:52 
AnswerRe: Solving symmetric tree problem by recursive solution Pin
Richard MacCutchan6-May-18 21:44
mveRichard MacCutchan6-May-18 21:44 
QuestionAsk a Question All Questions All Unanswered Mine FAQ I need to compare one file each line with other file all lines which separated by two colon separate .if matches with names I need print matched one in java Pin
Member 138094092-May-18 23:07
Member 138094092-May-18 23:07 
AnswerRe: Ask a Question All Questions All Unanswered Mine FAQ I need to compare one file each line with other file all lines which separated by two colon separate .if matches with names I need print matched one in java Pin
Richard MacCutchan3-May-18 0:44
mveRichard MacCutchan3-May-18 0:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.