• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

How to discover an Eclipse installation remotely

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys!

Is there a Java-only solution to this. I want to find out whether a remote machine has Eclipse installed on it or not, on an intranet of course.

Thanks.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You'll need access to the remote machine's file system, which is a OS thing, nothing to do with Java. Then all you can do is trawl the entire drive to see if you find eclipse.exe. Of course that file may exist and eclipse may not exist in a working form (other files could be missing, there might be no JDK on the machine etc.). Or the user might has renamed it. Sounds like a difficult requirement to fulfill.
 
Robin Sharma
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Paul Sturrock:
You'll need access to the remote machine's file system, which is a OS thing, nothing to do with Java. Then all you can do is trawl the entire drive to see if you find eclipse.exe. Of course that file may exist and eclipse may not exist in a working form (other files could be missing, there might be no JDK on the machine etc.). Or the user might has renamed it. Sounds like a difficult requirement to fulfill.



Hi Paul!

I know it is a tough cookie. Even querying the registry(Windows) won't help, as Eclipse doesn't make any such entries. But it is a requirement. Can't help it :-(

Also, is there a way to know that Eclipse is *running* on a remote m/c. Does it, like, listen on some standard port etc.
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, but it does use the lock file approach to prevent multiple eclipse instances running on the one machine. There will be a file in the workspace called lock which eclipse holds onto while it is running. If you can find that an can't update it you can assume eclipse is running. However, that file could be anywhere on the user's machine. You have no way to distiunguish eclipse's lock file from any other application that also uses a lock file.

That aside, this is going to iritate users. I would not be happy if a remote process periodically scanned my entire drive. Personally, if I were presented with this requirement, I'd explain to whoever asked for it why it is not possible. Even professional discovery tools (e.g. Centennial) are going to struggle to do this.
[ August 25, 2006: Message edited by: Paul Sturrock ]
 
author and iconoclast
Posts: 24204
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If it's an intranet, maybe the "is Eclipse installed?" part could be handled by having a standard install location, and the "is Eclipse active?" part could be handled by a trivial plugin which did listen on a well-known port, and a requirement that intranet users install this plugin.
 
Yeast devil! Back to the oven that baked you! And take this tiny ad too:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic