Do I need to use JNI for things like these?

Hello,

I have found these libraries and no source code for them :) I need to implement most of the functionality provided there and I was wondering if I need to use JNI for this. I'm pretty sure I do, but I want to be sure, because I never worked before JNI before. Thank you. Here is what I need to implement:

http://mast.ihmc.us/docs/platAPI/us/ihmc/mast/platapi/NetUtils.html

http://mast.ihmc.us/docs/platAPI/us/ihmc/mast/platapi/NIC.html

http://mast.ihmc.us/docs/platAPI/us/ihmc/mast/platapi/Process.html

http://mast.ihmc.us/docs/platAPI/us/ihmc/mast/platapi/ProcUtils.html

http://mast.ihmc.us/docs/platAPI/us/ihmc/mast/platapi/SysUtils.html

http://mast.ihmc.us/docs/platAPI/us/ihmc/mast/platapi/UserUtils.html

[764 byte] By [z23a] at [2007-11-26 21:26:43]
# 1
Or if you know any library to do this, it would be nice. Note that I need the source code, if you know any. Thank you.
z23a at 2007-7-10 3:07:34 > top of Java-index,Java Essentials,Java Programming...
# 2
eh? they're already implemented. why do you think you need JNI, they're just java libraries. stick 'em on your classpath and be done with it :-)
georgemca at 2007-7-10 3:07:34 > top of Java-index,Java Essentials,Java Programming...
# 3
Then maybe I miss something... Where do you download them from?
z23a at 2007-7-10 3:07:34 > top of Java-index,Java Essentials,Java Programming...
# 4
um, from the site you just posted links to, perhaps?
georgemca at 2007-7-10 3:07:35 > top of Java-index,Java Essentials,Java Programming...
# 5
Seriously now... I looked for some "download" link before asking this and I didn't find anything but the specifications... And I know it sounds stupid, but... can you please give me a link where I can download them from? Thank you.
z23a at 2007-7-10 3:07:35 > top of Java-index,Java Essentials,Java Programming...
# 6

> Seriously now... I looked for some "download" link

> before asking this and I didn't find anything but the

> specifications... And I know it sounds stupid, but...

> can you please give me a link where I can download

> them from? Thank you.

I was already being serious. why do you think I'll know where to get these libraries I've never heard of before? you found the API docs, somehow. adapt that search term to find the downloads. if you can't find 'em, maybe they're not available. not all libraries are free for download. it doe sound a bit stupid, expecting that all java developers are issued with an exhaustive knowledge of where to download every single java library known to man, ever!

georgemca at 2007-7-10 3:07:35 > top of Java-index,Java Essentials,Java Programming...
# 7
http://mast.ihmc.us/download.phptook about 3 seconds to find. would you also like your backside wiped for you?
georgemca at 2007-7-10 3:07:35 > top of Java-index,Java Essentials,Java Programming...
# 8

Oh, thank you very much. I appreciate it. When someone says something like "eh? they're already implemented. why do you think you need JNI, they're just java libraries. stick 'em on your classpath and be done with it :-)", I assume he knows where to download them from, not just talking about something he doesn't have any idea about... But maybe that's just me...

So, getting back to my first question... Do I need JNI to implement this? Thank you.

z23a at 2007-7-10 3:07:35 > top of Java-index,Java Essentials,Java Programming...
# 9
As I said, i need the source code, if you remember well...
z23a at 2007-7-10 3:07:35 > top of Java-index,Java Essentials,Java Programming...
# 10

> Oh, thank you very much. I appreciate it. When

> someone says something like "eh? they're already

> implemented. why do you think you need JNI, they're

> just java libraries. stick 'em on your classpath and

> be done with it :-)", I assume he knows where to

> download them from, not just talking about something

> he doesn't have any idea about... But maybe that's

> just me...

yep, it is just you. why assume I know exactly where to download everything from, just because I know how to use a third-party library? all java libraries get onto your classpath by the same means. this is called "adapting what you have learnt". there's a difference between "knowing where this specific library comes from" and "knowing how to get a third-party library on your classpath". you don't need separate instructions on how to play every single CD in your collection, do you? no, you just know that you take a CD and put it in the CD player. doesn't matter what's on the CD, it'll just work

I'd assumed that since you'd found the documentation for the libraries, you'd also found the libraries - a much fairer assumption

> So, getting back to my first question... Do I need

> JNI to implement this? Thank you.

I already answered that

georgemca at 2007-7-10 3:07:35 > top of Java-index,Java Essentials,Java Programming...
# 11
> As I said, i need the source code, if you remember> well...I don't give a **** if you need the source code or not. that's your own concern, and nobody elses. I need a garage-full of ferarris, but that doesn't mean I'll get 'em
georgemca at 2007-7-10 3:07:35 > top of Java-index,Java Essentials,Java Programming...
# 12
> As I said, i need the source code, if you remember> well...Why do you need the source?
kajbja at 2007-7-10 3:07:35 > top of Java-index,Java Essentials,Java Programming...
# 13

> I don't give a **** if you need the source code or

> not. that's your own concern, and nobody elses. I

> need a garage-full of ferarris, but that

> doesn't mean I'll get 'em

If you don't know how to answer a question, you could just not answer...

z23a at 2007-7-10 3:07:35 > top of Java-index,Java Essentials,Java Programming...
# 14

> > I don't give a **** if you need the source code or

> > not. that's your own concern, and nobody elses. I

> > need a garage-full of ferarris, but that

> > doesn't mean I'll get 'em

>

> If you don't know how to answer a question, you

> could just not answer...

I have already answered it as best it can be answered. I even held your friggin' hand beyond what's normal for these forums, so adjust your attitude or piss off

georgemca at 2007-7-10 3:07:35 > top of Java-index,Java Essentials,Java Programming...
# 15
> If you don't know how to answer a question, you> could just not answer...You still haven't answered why you need the source code.
kajbja at 2007-7-21 18:17:40 > top of Java-index,Java Essentials,Java Programming...
# 16

I don't know how you call it in English, but I'm a student and before you graduate you have to write a project. My project is to write an application to monitor a remote server. I need to install my application on that server and get information about it remote, using the internet.

I need information like the number of processes, how loaded is the processor, information about the hdd, the motherboard, the network, how much traffic the user does on the LAN, etc.

And I was thinking I might use that library, but I didn't find the source code. In order to write code to do stuff like this provided in those classes, do I need to use JNI? If you don't know, you don't have to be rude... just don't answer... Thank you.

z23a at 2007-7-21 18:17:41 > top of Java-index,Java Essentials,Java Programming...
# 17
Why do you keep asking for the source code on this forum, which has no link to those libraries. Are you taking the 0.00001% chance that the guy who made them reads your post?
keeskista at 2007-7-21 18:17:41 > top of Java-index,Java Essentials,Java Programming...
# 18

> Why do you keep asking for the source code on this

> forum, which has no link to those libraries. Are you

> taking the 0.00001% chance that the guy who made them

> reads your post?

People, the question was if I need JNI to implement this... Is it so difficult?

z23a at 2007-7-21 18:17:41 > top of Java-index,Java Essentials,Java Programming...
# 19
> And I was thinking I might use that library, but I> didn't find the source code.I still don't understand why you need the source code. You can use the library without using their source code, and that's how you should build your solution. Kaj
kajbja at 2007-7-21 18:17:41 > top of Java-index,Java Essentials,Java Programming...
# 20

> I don't know how you call it in English, but I'm a

> student and before you graduate you have to write a

> project. My project is to write an application to

> monitor a remote server. I need to install my

> application on that server and get information about

> it remote, using the internet.

>

> I need information like the number of processes, how

> loaded is the processor, information about the hdd,

> the motherboard, the network, how much traffic the

> user does on the LAN, etc.

>

> And I was thinking I might use that library, but I

> didn't find the source code. In order to write code

> to do stuff like this provided in those classes, do I

> need to use JNI? If you don't know, you don't have to

> be rude... just don't answer... Thank you.

all this has already been answered. you're being a classic irritating pratt by continually asking the same questions again and again until you get an answer that isn't correct, but pleases you, and being rude to anyone who doesn't give you that answer. you're far from the first, and I'll bet, far from the last, to act like this, and none of them ever get the help they expect. sign up with a new name and start again

georgemca at 2007-7-21 18:17:41 > top of Java-index,Java Essentials,Java Programming...
# 21
> People, the question was if I need JNI to implement> this... Is it so difficult?Yes you need JNI if you aren't using that library or another library that uses JNI to get the information.Kaj
kajbja at 2007-7-21 18:17:41 > top of Java-index,Java Essentials,Java Programming...
# 22

> > Why do you keep asking for the source code on this

> > forum, which has no link to those libraries. Are

> you

> > taking the 0.00001% chance that the guy who made

> them

> > reads your post?

>

> People, the question was if I need JNI to implement

> this... Is it so difficult?

and that has been answered already. go away

georgemca at 2007-7-21 18:17:41 > top of Java-index,Java Essentials,Java Programming...
# 23
> and that has been answered already. go awayDo they give you some money if you post? Is this why you post so much? Have a nice day and thank you again for your help.
z23a at 2007-7-21 18:17:41 > top of Java-index,Java Essentials,Java Programming...
# 24
> Yes you need JNI if you aren't using that library or> another library that uses JNI to get the> information.> > KajThank you.
z23a at 2007-7-21 18:17:41 > top of Java-index,Java Essentials,Java Programming...