handle full java language

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shana07
    Contributor
    • Jan 2007
    • 280

    #1

    handle full java language

    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.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by shana07
    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.

    Comment

    • shana07
      Contributor
      • Jan 2007
      • 280

      #3
      Originally posted by r035198x
      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 (RandomAccessFi le) or any *.exe program. Am I right?

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by shana07
        Thanks a lot. Understood now.
        An example of native code in java is input or output through files (RandomAccessFi le) or any *.exe program. Am I right?
        Not precisely. A good example is calling a c function in a java program.

        Comment

        • shana07
          Contributor
          • Jan 2007
          • 280

          #5
          Originally posted by r035198x
          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 (FileInputStrea m).

          One last question - what is mean by "mainly used for applications that are models, but require a full procedural programming language".
          Thanks again....

          Comment

          • shana07
            Contributor
            • Jan 2007
            • 280

            #6
            Originally posted by shana07
            :) 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 (FileInputStrea m).

            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
            ...

            Comment

            • r035198x
              MVP
              • Sep 2006
              • 13225

              #7
              Originally posted by shana07
              procedural programming language examples:
              Java
              C, C++
              Prolog
              ...
              Java and C++ are not really considered as procedural languages.
              They are object oriented.

              Comment

              • shana07
                Contributor
                • Jan 2007
                • 280

                #8
                Originally posted by r035198x
                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 ...
                "applicatio ns that are models but require a full procedural language"

                Comment

                • r035198x
                  MVP
                  • Sep 2006
                  • 13225

                  #9
                  Originally posted by shana07
                  Oh yes.
                  Then I really don't get this sentence, hope you can give comment ...
                  "applicatio ns 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.

                  Comment

                  • shana07
                    Contributor
                    • Jan 2007
                    • 280

                    #10
                    Originally posted by r035198x
                    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.

                    Comment

                    Working...