• 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

Help needed in using Eclipse

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1)How to enable and disable assertions using eclipse?
2)How to run command line arguments using Eclipse Europa
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1: don't know, but see below.
2:
  • R-click the name of the class with the main method (on the left pane)
  • Click "run as"
  • Click whatever doesn't say "java application"; I think it's "show run dialog".
  • Click the "arguments" tab.
  • Put your command-line arguments into the upper box labelled "command-line arguments" or similar.
  • You might try -ea and -da in the next box labelled "VM arguments" for enabling and disabling assertions.
  • Click "run" at the lower right.
  • Voila!

  • [ September 09, 2008: Message edited by: Campbell Ritchie ]
     
    Greenhorn
    Posts: 12
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    1. set your compiler settings
    right click in package explorer--> build path --> configure build path
    --> java compiler

    2.right click on your java file --> runas --> run...
    enter your arguments details in 'arguments' tab

    -YGR
     
    reply
      Bookmark Topic Watch Topic
    • New Topic