Eclipse IDE Question

H

hayes.randy

Hi All,

I am new to Eclipse and it is mystifying me why the Build Project and
Build All items on the Project menu are grayed out! I am able to run
and debug but can't figure out to compile a JAR file!

Anyone?

Thanks!
 
R

Roland de Ruiter

Hi All,

I am new to Eclipse and it is mystifying me why the Build Project and
Build All items on the Project menu are grayed out! I am able to run
and debug but can't figure out to compile a JAR file!

Anyone?

Thanks!

In the Project menu, have you also seen the check mark in front of
"Build Automatically"?

When "Build Automatically" is selected, Eclipse compiles Java files on
the fly (when you save a file from the editor, IIRC), so your project is
always in a "built"-state. You'll never have to compile or build a
project yourself.

What do you exactly mean by compiling a JAR file? If you want to create
a JAR file of the compiled code, you'll need to use the export wizard:
right-click on the project in the package explorer and select Export
from the menu. Then in the Export window, expand the "Java" item and
select "JAR file". Click on the Next button and follow the wizard's next
steps.
 
H

hayes.randy

In the Project menu, have you also seen the check mark in front of
"Build Automatically"?

When "Build Automatically" is selected, Eclipse compiles Java files on
the fly (when you save a file from the editor, IIRC), so your project is
always in a "built"-state. You'll never have to compile or build a
project yourself.

What do you exactly mean by compiling a JAR file? If you want to create
a JAR file of the compiled code, you'll need to use the export wizard:
right-click on the project in the package explorer and select Export
from the menu. Then in the Export window, expand the "Java" item and
select "JAR file". Click on the Next button and follow the wizard's next
steps.

Thanks Roland - I didn't know about the "Export" step. I was used to
JBuilder 2005 that did that automatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Question 0
Question 1
(maybe)OT:Java Eclipse cloud 1
Java/Ant/Eclipse Question 3
Some Eclipse Issue 4
Eclipse local tomcat server classes not getting synchronized 6
eclipse ide question 3
BEGINNER: Question 0

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top