Sorry, I have another question about java & wish to consult you guys.
I read one java program documentation written "Handle full java language, can't handle native code" . I tried google to find about what is example for the native code here means, still no clear picture. please share few words here with me...thanks a lot.
9 1404
Sorry, I have another question about java & wish to consult you guys.
I read one java program documentation written "Handle full java language, can't handle native code" . I tried google to find about what is example for the native code here means, still no clear picture. please share few words here with me...thanks a lot.
Native code in Java is any code that is written in a language that is not java but is used in a java program.
Native code in Java is any code that is written in a language that is not java but is used in a java program.
Thanks a lot. Understood now.
An example of native code in java is input or output through files (RandomAccessFile) or any *.exe program. Am I right?
Thanks a lot. Understood now.
An example of native code in java is input or output through files (RandomAccessFile) or any *.exe program. Am I right?
Not precisely. A good example is calling a c function in a java program.
Not precisely. A good example is calling a c function in a java program.
:) Alright. I am trying to understand this tool (java open source) problem which it doesn't handle native code in program under test. My program under test (java)need to read an image file (FileInputStream).
One last question - what is mean by "mainly used for applications that are models, but require a full procedural programming language".
Thanks again....
:) Alright. I am trying to understand this tool (java open source) problem which it doesn't handle native code in program under test. My program under test (java)need to read an image file (FileInputStream).
One last question - what is mean by "mainly used for applications that are models, but require a full procedural programming language".
Thanks again....
procedural programming language examples:
Java
C, C++
Prolog
...
procedural programming language examples:
Java
C, C++
Prolog
...
Java and C++ are not really considered as procedural languages.
They are object oriented.
Java and C++ are not really considered as procedural languages.
They are object oriented.
Oh yes.
Then I really don't get this sentence, hope you can give comment ...
"applications that are models but require a full procedural language"
Oh yes.
Then I really don't get this sentence, hope you can give comment ...
"applications that are models but require a full procedural language"
Think about what you want to use JNI for.
Why would you want to call something of another language? Because you cannot write it in Java(It requires a fully procedural implementation and Java is not fully procedural). Now how is it going to interact with the rest of your Java program? To a certain extent, it is not possible because the two functions ,say, are written in different programming languages so they cannot share variables e.t.c. The module being called must therefore be complete for it's task. It must be able to completely model it's problem and solve it returning only the solution to the Java program.
Think about what you want to use JNI for.
Why would you want to call something of another language? Because you cannot write it in Java(It requires a fully procedural implementation and Java is not fully procedural). Now how is it going to interact with the rest of your Java program? To a certain extent, it is not possible because the two functions ,say, are written in different programming languages so they cannot share variables e.t.c. The module being called must therefore be complete for it's task. It must be able to completely model it's problem and solve it returning only the solution to the Java program.
I get that now and you know what, by using the program model java interface mechanism user can model to its native code problem.
I really appreciate your effort to answer me and thanks a lot.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Michael N. Christoff |
last post by:
Java, the software developed by Sun Microsystems in the mid-1990s as a
universal operating system for Internet applications, gave NASA a low-cost
and easy-to-use option for running Spirit, the...
|
by: Montrose... |
last post by:
After working in c# for a year, the only conclusion I can come to is
that I wish I knew c.
All I need is Linux, the gnu c compiler and I can do anything.
Web services are just open sockets...
|
by: DrUg13 |
last post by:
In java, this seems so easy. You need a new object
Object test = new Object() gives me exactly what I want.
could someone please help me understand the different ways to do the
same thing in...
|
by: Jeff_Relf |
last post by:
Hi Olaf_Baeyens ( and Linonut ),
Microsoft C++ is really it's latest version of MS_C,
as Microsoft is not supporting the latest C standard, C99.
cout and the STL are pure garbage and should...
|
by: wellstone9912 |
last post by:
Java programmers seem to always be whining about how confusing and
overly complex C++ appears to them. I would like to introduce an
explanation for this. Is it possible that Java programmers...
|
by: Xah Lee |
last post by:
On Java's Interface
Xah Lee, 20050223
In Java the language, there's this a keyword “interface”.
In a functional language, a function can be specified by its name and
parameter specs....
|
by: Shraddha |
last post by:
What is exactly a handle to an object????Is it same as reference....
|
by: r035198x |
last post by:
Setting up.
Getting started
To get started with java, one must download and install a version of Sun's JDK (Java Development Kit).
The newest release at the time of writting this article is...
|
by: s0suk3 |
last post by:
I've been programming Python for a couple of years now. Now I'm
looking to move on to either C++ or Java, but I'm not sure which.
Which one do you think will be a better transition for a Python...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
| |