[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Pat Farrell wrote:Thanks.
I have one git repository that has three targets:
1) a jar file of business objects and related stuff that gets used by the next two
2) a jar file that creates stand alone utility programs that manipulate the business objects
3) a full blown Web app, with HTML, JSP, beans, servlets, etc that manipulate the business objects onto the client's web browser
In NetBeans lingo, these are three "projects" that generate there own JAR (or WAR) files. Of course, the third WAR files contains the JAR file
from the first, plus lots more like Log4J, JDBC, Guava, etc.
What is the proper Eclipse lingo and setup for this?
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote: When you are ready to export the web project, it will grab the java projects (making them jars) too.
(Presuming you aren't using Maven. If you are, that changes everything.)
Pat Farrell wrote:What does "export" mean in this context? Does that mean "build the jar/war?"
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:Yes. See you are catching on to Eclipse speak
.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:Right click project
Properties
Java Build Path
Add jar
navigate to jars
Pat Farrell wrote:
Jeanne Boyarsky wrote:Right click project
Properties
Java Build Path
Add jar
navigate to jars
This lets me add each jar.
Is there something that will add the subdirectory to the classpath so that any jar will work?
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:You can add all the jars currently in a directory at once. You can't add any jar that might appear in the directory in the future/
Pat Farrell wrote:What is the best practices for JUnit test code within an Eclipse project? ...Hmmm, is there a handy link to using JUnit with Eclipse?
Pat Farrell wrote:1) I can't find the jar file for Junit itself. In Netbeans, they automatically link in the junit.jar for testing, and not include it for production use. I can't even find the jar, let alone figure out how to selectively link it in when appropriate.
Pat Farrell wrote:2) I don't see any option to run all the Junit tests for the whole project. I tend to write a lot of JUnit tests, and run them all a lot. Many hundreds of test source files. I really don't want have to kick each one off manually
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
The problems of the world fade way as you eat a piece of pie. This tiny ad has never known problems:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|