Results 1 to 4 of 4

Thread: Detect if you are running in the IDE...

  1. #1

    Thread Starter
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383

    Detect if you are running in the IDE...

    Is there anyway to detect if you are running in the IDE?
    Similar to this in VB
    http://www.vbforums.com/showthread.php?t=231468

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Re: Detect if you are running in the IDE...

    I'm guessing it would depend on the IDE.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383

    Re: Detect if you are running in the IDE...

    Thats why VB is better than Java
    I'm using Intellij IDEA.
    It's not needed in my app anymore, but I am interested if it is possible.

    Would it even be possible?
    What with Java compiling the source first?

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Detect if you are running in the IDE...

    Not really. You could use some platform-specific code, perhaps, to find the parent process of the current virtual machine and query what that is.


    However, doing so would be a grave mistake, and I would consider the near impossibility of it a feature of Java, not a shortcoming. A program that behaves differently when launched from the IDE than when launched directly ... I don't want to even begin to imagine the horrors that would mean for testing, debugging and general correctness.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width