Solved

Eclipse - Run as Java application...compiling

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IntelliJ IDE error, java: package javax.servlet does not exist 3 1,277
Display current date,month,and year to JTextField 3 53
Online file editor, manager 6 75
Angular JS Route 3 70
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ā€¦
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

770 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