@Richard MacCutchan, thanks for the reply!
I'm really confused by a couple of things though...
Quote:
Because (I think) BasicTest is (implied to be) in package com.myCompany
It's not implied to be. It is! Both source files start with:
package com.myCompany;
Quote:
Try the following, with the reduced classpath tree:
Hide Copy Code
javac -cp c:\workspace\BasicTest\src\test\java c:\workspace\BasicTest\src\main\java\com\myCompany\*.java
That by itself throws a mess of errors... it's not taking into account the junit jar.
When I modify your suggestion like so:
javac -cp c:\junit\latest\junit-4.10.jar;c:\workspace\BasicTest\src\test\java c:\workspace\BasicTest\src\main\java\com\myCompany\*.java
It works!!! Thank-you.
But this still isn't solved yet. It compiles -- but I cannot run:
C:\workspace\BasicTest\src\main\java>java com.myCompany.Runner<br />
Exception in thread "main" java.lang.NoClassDefFoundError: com/myCompany/BasicTest<br />
at com.myCompany.Runner.main(Runner.java:7)<br />
Caused by: java.lang.ClassNotFoundException: com.myCompany.BasicTest<br />
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)<br />
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)<br />
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)<br />
... 1 more