Solved

Eclipse - Run as Java application...compiling

Posted on 2008-10-08
5
1,310 Views
Last Modified: 2013-12-15
This is kind of a foolish question, but I rather not be a fool, so I will ask.
I am compiling a class.  The code does not have any errors, but when I compile it, the console shows this: <terminated>NameOfClass[Java Application]C:\path to Java jre1.6.0_07\bin\javaw.exe(today's date).

Now does this mean that it compiled correctly?  I can't recall see this in other code that I have compiled.
thanks
0
Comment
Question by:chima
  • 3
  • 2
5 Comments
 
LVL 22

Expert Comment

by:Ivo Stoykov
ID: 22676203
Hello chima
How do you compile your application?
0
 

Author Comment

by:chima
ID: 22677969
Ivostoykov, hello
From the public void main(args) file, I do a "Run As" sometimes a Debug.  Sometimes at the Class file I do a "Run As - Run Configuration"
While we are on the subject, I have not been able to "step into" the code.  I've used an older version of Eclipse and remember being able to do so.  I am now using GANYMEDE and I have not come across the icons to troubleshoot the code line by line.
Any suggestion where I might look?
0
 
LVL 22

Accepted Solution

by:
Ivo Stoykov earned 500 total points
ID: 22678633
Try 1st  File/Save ALL - this should compile the entire project
The just hit run or Ctrl+Shift+X & J
if asked choose appropriate run - application or on server.

If you have no errors and any output you should see it.

Check also your libraries - whether you have all necessary to run.
0
 

Author Comment

by:chima
ID: 22682757
ivostoykov, you must be Russian?
I have been compiling with the <terminated> message, so I think it is okay.
Allow me to ask an obvious question.  I have my main(String[] args) in a "Class" file.  I was expecting to see a main executable but I am not getting it.  It might be that I have to have my main in a "java" file.
I hope you understand my question.  I hoping to generate an .exe file.
0
 

Author Closing Comment

by:chima
ID: 31504485
It was an Eclipse menu Window, show view, setting issue.
Now my console does show the output.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now