• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse -D Debug vs Run

 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm working on a massive project that has a little glitch in the development environment.

A VM Argument is set at execution -DRunAsApp=true

In Eclipse when the application is run it spawns to javaw processes. When you terminate the application one of the processes finishes but the other doesn't. So the application will not run the next time you try as the still running process is holding open a port.

However when you run the program in debug mode it terminates perfectly.

I have found a line in the code
System.setProperty( DEBUG, true );
depending on the above line "-DRunAsApp=true"

IS this what is stopping it running in normal mode?
I'm not really sure what I need to ask or what I need to tell you?

Has anyone run into anything like this? Any ideas what to look at?

Thanks a heap

Kris
 
Ranch Hand
Posts: 1170
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which version of eclipse?

What type of eclipse program are you executing? A plugin, an application, a RCp application?
 
Kris Reid
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am running Eclipse Version 3.1.0
And it is a Java Application

Thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic