Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: calling unix script from a java program
|
Posted: Jun 22, 2002 11:50 AM
|
|
Hey Charles,
I don't think JNI stuff is necessarily a bad thing; it is simply realistic that people will want to do things on their platform that they know are possible. For instance, the tray icons in Windows are pretty popular, so people will want to use them. I think it is nice to have a program which conditionally does things to take advantage of its environment -- the problems only arise when the program stupidly tries to use operating system-specific features without regard to the OS upon which it is currently running.
I found two projects called Jacob on SourceForge, but neither one seems to be the to which you refer. Where is the Jacob you are talking about? Is it a framework for facilitating platform-specific feature usage?
I think another nice thing to do is have a top-ten FAQ (maybe with a few categories, like Applets, JNI, etc.) where we post simple but complete and documented example programs, like the one you've posted in this thread and the others you've posted as well as some I and a few others have posted. Then, instead of always having to post all the code each time, we can say "See item 3 in the JNI FAQ at http://www.IncrediblyNiftyJavaCodingExamples.com." I've nagged Bill several times about having a link to such a thing right on the main page of this Java Forum, but we both are pretty busy (or he doesn't like the idea and doesn't want to hurt my tender feelings by saying so!), so it hasn't yet happened.
I know there are FAQs all over the web, but obviously people are not finding them if they are always posting the questions in the forum. So a forum with an accompanying FAQ could be a nice solution. I agree with you that people should not always be castigated for posting a question that has already been answered or that they could easily find in the Java docs, Java Tutorials, or Google ...well, maybe there are a few egregious cases where some excoriation is appropriate! ;-)
I also agree that it can be fun to solve some of the problems posted, in particular when it gives you a chance to delve into something you may not otherwise have occasion to do. Of course, my enthusiasm for such things is invariably inversely proportional to the amount of my real work load!
|
|