Re: Reading HDD serialNo



On 31 Mar 2006 04:16:21 -0800, ezelsari85@xxxxxxxxx wrote:
Could you help me please to find out how to read the harddisk serial
number in java ?

Three simple steps:

1: learn how to do it in C
2: learn about JNI
3: write a native method that invokes the code from step 1

/gordon

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
.



Relevant Pages

  • JNI: reuse an object
    ... I am using JNI to use some functionality of a c++ program. ... From java I call a native method, ... Is it possible to reuse these objects, if I call the native method a second time? ...
    (comp.lang.java.programmer)
  • Re: Clear the Screen
    ... cannot be implemented in any standard way across platforms. ... Even the 'standard' C and C++ languages which, like Java, aim for platform ... do not implement such functionality. ... of a development commitment needs be made by using JNI. ...
    (comp.lang.java)
  • Re: Opinions on complexity
    ... Java because it is the language I know the best. ... The only thing I was asking for, was some advice on the TCP/IP stack implementation. ... and combined with the RFCs for the protocol will speed your development. ... But, if Java is your choice, you really only need to JNI the low level socket functions that give you access to the interface device, writing you protocol stack in pure java. ...
    (comp.lang.java.programmer)
  • Re: [Q] Making functional called in one thread run in the context of another?
    ... I spent some time looking into methods to create java wrappers, and this way seemed to be about the only method in use. ... I need the java wrapper to be able to create and modify C++ objects that are handled by the C++/MFC code (of course the java code doesn't interact with MFC objects directly). ... The problem comes when a callback needs to make a JNI call itself. ...
    (comp.lang.java.programmer)
  • Re: Java .net Integration
    ... As I know CORBA and J-Integra have huge overhead as ... The best way is to use pure JNI. ... developing tools to automate JNI code writing. ... (without java coding). ...
    (comp.lang.java)