Questions tagged [native]

An application designed to run in the computer environment (machine language and OS) being referenced. The term is used to contrast a native application with an interpreted one such as a Java application that is not native to a single platform.

An application designed to run in the computer environment (machine language and OS) it is being run in. The term is used to refer to a locally installed application in contrast to various other software architectures. For example, it may contrast a native application that runs by itself with an interpreted one, such as a Java applet, that requires interpreter software in the machine. A native app may be contrasted with an emulated application written for a different platform and converted in real time to run. In addition, a native app may be contrasted with a Web application that is run within the browser.

Useful Links: native-app-vs-mobile-web-app-comparison

4255 questions
506
votes
10 answers

What is the native keyword in Java for?

While playing this puzzle (It's a Java keyword trivia game), I came across the native keyword. What is the native keyword in Java used for?
whirlwin
  • 14,425
  • 17
  • 65
  • 90
128
votes
5 answers

electron-builder vs electron-packager

What is main difference between electron-builder and electron-packager. Is there some example projects for both? Which is better for standalone .exe application build?
Ondrej Sika
  • 1,545
  • 2
  • 8
  • 12
125
votes
21 answers

`React/RCTBridgeModule.h` file not found

Getting this error while building a react-native iOS app on xcode. Started getting this error after npm install and rpm linking react-native-fs library. But after searching online for a solution, I noticed that many people are getting the same…
Simar
  • 2,077
  • 4
  • 14
  • 18
118
votes
10 answers

Use JNI instead of JNA to call native code?

JNA seems a fair bit easier to use to call native code compared to JNI. In what cases would you use JNI over JNA?
Marcus Leon
  • 50,921
  • 112
  • 279
  • 413
102
votes
7 answers

Android 7 Native Crash: libc.so tgkill

I'm seeing this native crash with the following stack trace. This happens in Android 7.0 & 7.1 only. Nothing new has been added to the app, which has been in production for a few years, but with more devices being updated to Nougat this crash…
AlexVPerl
  • 6,653
  • 5
  • 36
  • 74
90
votes
4 answers

Is there any native DLL export functions viewer?

Is there any free native Windows DLL export functions viewer, which shows the function name, and a list of their parameters?
Alon Gubkin
  • 53,054
  • 52
  • 181
  • 282
86
votes
5 answers

Why is System.arraycopy native in Java?

I was surprised to see in the Java source that System.arraycopy is a native method. Of course the reason is because it's faster. But what native tricks is the code able to employ that make it faster? Why not just loop over the original array and…
James B
  • 3,562
  • 1
  • 23
  • 32
74
votes
5 answers

What are native methods in Java and where should they be used?

A native method has the same syntax as an abstract method, but where is it implemented?
niks
  • 1,013
  • 1
  • 9
  • 15
71
votes
11 answers

Compiling C# to Native?

I think I'm somewhat confused about compiling .NET byte-code to native code, or maybe I'm confused about the end result. So please bear with me as I try to sort through what I think I understand so you can help me figure out what I'm missing. What…
mrduclaw
  • 3,696
  • 4
  • 29
  • 37
64
votes
8 answers

Native IOS app and node.js

Is it possible to create a native ios app with node.js, and is so does anyone have any examples?
Hello World
  • 1,123
  • 2
  • 9
  • 8
62
votes
2 answers

Why do some Java library methods delegate to a native method with a nearly-identical signature?

After delving into the source code for the JRE library, I noticed a strangely common code structure, like this: public int foo(double bar) { return foo0(bar); } private native int foo0(double bar); What is the purpose of this code pattern, and…
RamenChef
  • 5,533
  • 11
  • 28
  • 39
61
votes
4 answers

Difference between native and managed code?

For example, when looking at the GlowCode profiler website it says: "GlowCode 6.2 and x64 profile native, managed, and mixed C++, C#, .NET code" What do they mean?
Joel
  • 14,042
  • 15
  • 35
  • 31
58
votes
2 answers

Where to find source code for java.lang native methods?

I'm vaguely familiar with the JNI, and I'm curious to see my machine-specific implementation for some native methods in the java.lang package. Thread#currentThread(), for example. I've found a bunch of DLLs in [JDK_HOME]/jre/bin, but like I said I'm…
Ben Simmons
  • 1,758
  • 3
  • 19
  • 31
58
votes
3 answers

What do these operators mean (** , ^ , %, //)?

Other than the standard +, -, *and / operators; but what does these mean (** , ^ , %, //) ? >>> 9+float(2) # addition 11.0 >>> 9-float(2) # subtraction 7.0 >>> 9*float(2) # multiplication 18.0 >>> 9/float(2) # division 4.5 >>> >>> 9**float(2) # This…
alvas
  • 94,813
  • 90
  • 365
  • 641
57
votes
6 answers

How to call machine code stored in char array?

I'm trying to call native machine-language code. Here's what I have so far (it gets a bus error): char prog[] = {'\xc3'}; // x86 ret instruction int main() { typedef double (*dfunc)(); dfunc d = (dfunc)(&prog[0]); (*d)(); return…
user5406764
  • 1,203
  • 1
  • 11
  • 19
1
2 3
99 100