Solved

Eclipse - Run as Java application...compiling

Posted on 2008-10-08
5
1,313 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Object Data Source 4 135
How can I debug SSIS using Visual Studio 2008 2 79
Delphi : could not find program, '...exe' 2 193
JavaFX TableView not displaying correctly 3 59
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. …
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

828 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