Solved

Eclipse - Run as Java application...compiling

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

863 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

26 Experts available now in Live!

Get 1:1 Help Now