Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1321
  • Last Modified:

Eclipse - Run as Java application...compiling

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
chima
Asked:
chima
  • 3
  • 2
1 Solution
 
Ivo StoykovCommented:
Hello chima
How do you compile your application?
0
 
chimaAuthor Commented:
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
 
Ivo StoykovCommented:
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
 
chimaAuthor Commented:
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
 
chimaAuthor Commented:
It was an Eclipse menu Window, show view, setting issue.
Now my console does show the output.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now