• 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

New to Eclipse, can't run simple program

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So I'm new to eclipse, and I'm trying to run a very simple program just to see if I could run stuff or not. Well, apparently I can't. There is nothing wrong with this code, as it is runnable on DrJava.



Here is what debugging mode says everytime I try to run a program:
"<terminated> ArrayListDriver [Java Application]
<terminated, exit value: 0> c:\Program Files\Java\jre7\bin\javaw.exe (Date and time at which program was ran)

I'd appreciate all the help I can get. Sorry if I've put too little information, but I don't know what else to put as I am new to programming.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Error code 0 actually means the program completed successfully.

Do you have the console view open in Eclipse before running the program? If not, try window --> show view --> console and run the program again.
 
Jonathan Wentworth
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the console right? It doesn't show anything.
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That image host doesn't allow embedding links. The actual link to the image is http://imgur.com/rOUd5YD

That's *almost* the console. If you click the "console" icon by the arrow in my image, you have a choice of java stack trace or <terminated> YourProgramName.

eclipse.png
[Thumbnail for eclipse.png]
 
What are your superhero powers? Go ahead and try them on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic