René van der ven wrote:
Example is about
Customer(name, gender, income age, Address, getAddress, setAddress)
Address(street, city, state, country)
If I extend your example with Supplier
Where do I place the getAddress and setAdress methods.
Supplier(name, gender, income age, Address, getAddress, setAddress)
or
Address(street, city, state, country, getAddress, setAddress)
Bauke Scholtz wrote:Which is not the root cause of the problem by the way.
You said that you added the JAR file to the JAVA_HOME, which makes completely no sense. I just wanted to rectify that.
Bauke Scholtz wrote:The JAVA_HOME environment variable should point to the root folder of the JDK.
The CLASSPATH environment variable is in fact only and only used when you execute java.exe or javac.exe without the -cp, -classpath or -jar arguments.
Jan Cumps wrote:Eclipse does not use your classpath when compiling / running your project.
from https://eclipse-tutorial.dev.java.net/eclipse-tutorial/part1.html
Right-click on the project and select "Properties". Go to the "Libraries" tab in "Java Build Path":
Click on "Add (external) JARs..." ...
Jan Cumps wrote:Add the Connector/J jar to your project classpath in Eclipse.