Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7969969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:19:23+00:00 2026-06-04T07:19:23+00:00

From IBM Link : The JDK 1.0 release included an earlier native-method interface that

  • 0

From IBM Link :

The JDK 1.0 release included an earlier native-method interface that lacked clean
separation between native and Java code. In this interface, natives would reach
directly into JVM structures and so could not be portable across JVM implementations,
platforms, or even versions of the JDK. Upgrading an application with a substantial
number of natives using the JDK 1.0 model was expensive, as was developing natives
that could run with multiple JVM implementations.

What is meant by natives would reach
directly into JVM structures and so could not be portable across JVM implementations
? I don’t understand this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:19:23+00:00Added an answer on June 4, 2026 at 7:19 am

    The documentation for the current JNI contains this interesting bit about the old interface:

    JDK 1.0 was shipped with a native method interface. Unfortunately, there were two major reasons that this interface was unsuitable for adoption by other Java VMs.

    First, the native code accessed fields in Java objects as members of C structures. However, the Java Language Specification does not define how objects are laid out in memory. If a Java VM lays out objects differently in memory, then the programmer would have to recompile the native method libraries.

    …

    This means that the native code could directly access the values of objects in memory, instead of going through some API. That’s the equivalent of direct access to a field in Java, as opposed to using getters/setters. This means that the underlying layout of the fields could never be changed without breaking compatibility with any code that uses that old native interface.

    I’ve found a copy of the native method tutorial from the JDK 1.0.2 here. It includes a section on handling Java objects from native code.

    The modern JNI gives access to Java object fields only via method calls. This way the layout of objects and many other things can change without breaking compatibility.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From what I've found in C#, the Control.Invoke method requires that you use a
We have to store data from some flat files that is created using IBM's
We have IBM websphere mq set up that accepts message from outside world and
Can someone please let me know the location to get the Java7 from IBM
I am following IBM's example from their website: (listing #5) http://www.ibm.com/developerworks/library/l-bash-parameters/index.html #!/bin/bash echo OPTIND
From the question you can probably tell that I don't know much about code!
I’m writing a client that receives messages from an external Websphere MQ Queue and
We're looking into developing an application that can read from and write to Lotus
I've got an ArrayList of objects that I read from a txt file, RegistrationFormBean();
I am looking at a portable heapdump file from IBM WebSpehere 6.1 and understand

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.