Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Nigel Wade Newsgroups: comp.lang.java.programmer Subject: Re: WORKGROUP Date: Tue, 13 Dec 2011 15:01:03 +0000 Lines: 19 Message-ID: <9kp7lfFplfU1@mid.individual.net> References: <8f03213b-5a9e-40c5-b106-7f58a4398dae@t38g2000yqe.googlegroups.com> <9koul8Fhg9U1@mid.individual.net> <83baf3d8-c3b4-4b0f-8edc-5680002076e7@w3g2000vbw.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 8sQ8pa+/K4ZJ6lyZZbYxnwsuvC10ZbW1be+WWRQCEeZVBxYrcH Cancel-Lock: sha1:Zll7xpUSEve5nqcuej/6WpMV9bA= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11 In-Reply-To: <83baf3d8-c3b4-4b0f-8edc-5680002076e7@w3g2000vbw.googlegroups.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10701 On 13/12/11 12:33, Ilya Lakhmitski wrote: > If the computer is not in a WORKGROUP, the value can be NULL. it is > ok. > > The question is not what happens if something will occur, but how to > get the name of WORKGROUP using java for different operation systems. There is no concept of "WORKGROUP" in different operating systems. It is entirely a Microsoft Windows concept only. Not even all Windows machines belong to a WORKGROUP. If you are developing cross-platform software it can't be required. If it is required then the software will only work on Windows, and you need to ask yourself whether a language which has direct access to Windows-only features might be more appropriate. That is what my clue was alluding to. -- Nigel Wade