Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: IO without APIs

  1. #1
    Member
    Join Date
    Sep 2013
    Posts
    102
    Thanks
    38
    Thanked 0 Times in 0 Posts

    Default IO without APIs

    I was wondering if anyone knew of a tutorial for accessing windows/mac OS files with java (without java's IO API).
    Last edited by KAJLogic; February 27th, 2014 at 05:46 PM.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,195
    Thanks
    49
    Thanked 2,172 Times in 2,145 Posts

    Default Re: IO without APIs

    without java's IO API
    The java packages are how you write java code to read/write files.
    Can you explain what you are trying to do?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Member
    Join Date
    Sep 2013
    Posts
    102
    Thanks
    38
    Thanked 0 Times in 0 Posts

    Default Re: IO without APIs

    I would like to implement my own communication with the JNI to get Windows information.

  4. #4
    Member andbin's Avatar
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    443
    Thanks
    4
    Thanked 122 Times in 114 Posts

    Default Re: IO without APIs

    Quote Originally Posted by KAJLogic View Post
    I would like to implement my own communication with the JNI to get Windows information.
    The use of JNI is a rather "advanced" and not easy concept. You need to know the concepts on JNI, you need to know C/C++ language, you need a C/C++ compiler (to develop a shared dinamic library appropriate for JNI) and you must be quite well versed on the native O.S. APIs (on Windows, the Win32 API, on MacOSX I don't know).
    Alternatively there is the JNA (Java Native Access, search on the web) library that is "bridge" between Java and any native library. You don't need C/C++ but you still need to know the O.S. APIs.

    Do you have these knowledges?
    Andrea, www.andbin.net SCJP 5 (91%) SCWCD 5 (94%)

    Useful links for Java beginners My new project Java Examples on Google Code

  5. #5
    Member
    Join Date
    Sep 2013
    Posts
    102
    Thanks
    38
    Thanked 0 Times in 0 Posts

    Default Re: IO without APIs

    Quote Originally Posted by andbin View Post
    The use of JNI is a rather "advanced" and not easy concept. You need to know the concepts on JNI, you need to know C/C++ language, you need a C/C++ compiler (to develop a shared dinamic library appropriate for JNI) and you must be quite well versed on the native O.S. APIs (on Windows, the Win32 API, on MacOSX I don't know).
    Alternatively there is the JNA (Java Native Access, search on the web) library that is "bridge" between Java and any native library. You don't need C/C++ but you still need to know the O.S. APIs.

    Do you have these knowledges?
    I will indulge you in the hopes this is leading somewhere productive. I am familiar with C/C++ (I have a compiler), and I have no knowledge of O.S APIs, but like any other API I assume knowledge of the language is the only necessity in understanding it.

Similar Threads

  1. Rest APIs
    By ankurt in forum Java Theory & Questions
    Replies: 3
    Last Post: February 14th, 2014, 03:43 PM
  2. Map APIs
    By aussiemcgr in forum Java Theory & Questions
    Replies: 3
    Last Post: November 15th, 2013, 12:18 PM
  3. will java 1.3 support these APIs
    By HungryCoder in forum Java SE APIs
    Replies: 3
    Last Post: May 24th, 2011, 02:23 PM
  4. Replies: 4
    Last Post: November 14th, 2010, 10:44 AM
  5. Java Source/APIs to create a Fourm
    By softwarebuzz in forum Java Theory & Questions
    Replies: 2
    Last Post: January 9th, 2010, 12:46 AM