Click here to Skip to main content
15,905,229 members
Home / Discussions / Java
   

Java

 
AnswerRe: I'm trying to right justify my integers but it isn't working Pin
Member 1361589620-Jul-18 22:11
Member 1361589620-Jul-18 22:11 
QuestionProblems with creating an uber jar Pin
Member 1390999412-Jul-18 21:13
Member 1390999412-Jul-18 21:13 
AnswerRe: Problems with creating an uber jar Pin
Richard MacCutchan13-Jul-18 5:55
mveRichard MacCutchan13-Jul-18 5:55 
AnswerRe: Problems with creating an uber jar Pin
jschell16-Jul-18 16:08
jschell16-Jul-18 16:08 
QuestionI need help with my java programing project. Pin
Member 139046799-Jul-18 11:16
Member 139046799-Jul-18 11:16 
AnswerRe: I need help with my java programing project. Pin
Richard MacCutchan9-Jul-18 19:54
mveRichard MacCutchan9-Jul-18 19:54 
QuestionRuntime polymorphism or dynamic methode dispatch Pin
DimaMatr2-Jul-18 7:01
DimaMatr2-Jul-18 7:01 
AnswerRe: Runtime polymorphism or dynamic methode dispatch Pin
Maciej Los2-Jul-18 21:21
mveMaciej Los2-Jul-18 21:21 
QuestionAndroid Studio Pin
Member 138939501-Jul-18 1:22
Member 138939501-Jul-18 1:22 
AnswerRe: Android Studio Pin
Richard MacCutchan1-Jul-18 21:39
mveRichard MacCutchan1-Jul-18 21:39 
QuestionBest way to interpolate? Pin
Anthony Pierson26-Jun-18 18:08
Anthony Pierson26-Jun-18 18:08 
QuestionMessage Closed Pin
18-Jun-18 14:02
Member 1387734218-Jun-18 14:02 
QuestionQuestion On Android Studio On NetBook Computer Pin
C-P-User-312-Jun-18 21:51
C-P-User-312-Jun-18 21:51 
AnswerRe: Question On Android Studio On NetBook Computer Pin
Richard MacCutchan12-Jun-18 22:02
mveRichard MacCutchan12-Jun-18 22:02 
GeneralRe: Question On Android Studio On NetBook Computer Pin
C-P-User-313-Jun-18 16:39
C-P-User-313-Jun-18 16:39 
QuestionGuide me in right direction to learn Java Card Pin
Member 1386083711-Jun-18 19:44
Member 1386083711-Jun-18 19:44 
AnswerRe: Guide me in right direction to learn Java Card Pin
Richard MacCutchan11-Jun-18 21:36
mveRichard MacCutchan11-Jun-18 21:36 
AnswerRe: Guide me in right direction to learn Java Card Pin
Anushkasharma105-Jul-18 21:17
Anushkasharma105-Jul-18 21:17 
AnswerRe: Guide me in right direction to learn Java Card Pin
Hackr.io27-Jul-18 2:20
professionalHackr.io27-Jul-18 2:20 
QuestionJava C header dll [SOLVED] Pin
Valentinor6-Jun-18 22:06
Valentinor6-Jun-18 22:06 
AnswerRe: Java C header dll Pin
Richard MacCutchan6-Jun-18 22:19
mveRichard MacCutchan6-Jun-18 22:19 
GeneralRe: Java C header dll Pin
Valentinor6-Jun-18 22:24
Valentinor6-Jun-18 22:24 
GeneralRe: Java C header dll Pin
Richard MacCutchan6-Jun-18 22:28
mveRichard MacCutchan6-Jun-18 22:28 
GeneralRe: Java C header dll Pin
Valentinor6-Jun-18 22:46
Valentinor6-Jun-18 22:46 
GeneralRe: Java C header dll Pin
jschell9-Jun-18 7:00
jschell9-Jun-18 7:00 
Most people will not go to a site to look at your code.

First, using a native library in Java is dangerous. It is not something I will ever do again because if the native library fails it causes the VM to exit and that is not viable in server developer. 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)

Second the requirement for a accessing a native library in java
1. The native library must be loaded into the VM
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.

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.

Valentinor wrote:
only 1 character differs.


Nothing can be different.

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.