Norm Radder wrote:The classpath should point to the folder that contains the start of the package name: com.myCompany
com is in the java folder so that is where the classpath should point.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Norm Radder wrote:There needs to be an import statement for the class that is in a package.
got this error:
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Norm Radder wrote:
got this error:
Can you post the command line that you are using? The classpath needs to point to the folder holding the com folder on the path to the BasicTest class.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:The brute force equivalent using the javac in the raw would be like "javac src/main/java/com/myCompany/Runner.java src/text/java/com/myCompany/BasicTest.java -d target".
Norm Radder wrote:
got this error:
Can you post the command line that you are using? The classpath needs to point to the folder holding the com folder on the path to the BasicTest class.
Norm Radder wrote:The classpath needs to point to the folder containing the first folder of the package.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:The "-d" option on my initial example was to indicate what directory to put the compiled classes in regardless of their source.
Tim Holloway wrote: And you always execute the fully-qualified classname (package name incuded).
Norm Radder wrote:In Tim's examples the classpath points to the classes folder. The classes folder contains the first folder of the package: com
javac -cp com\myCompany
Adam Sandler wrote:
This latest twist looks more like it's a JUnit thing. I'm not sure entirely.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:I don't see an import statement for the junit TestCase class in your test class source code.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:You still have to import org.junit.Test if you extend TestCase.
Tim Holloway wrote: And, of course, if you're going to use Junit assertions, import org.junit.Assert.
Tim Holloway wrote:3. You didn't include the directory or jar that contains the class in your classpath.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Thou shalt not try me. Mom 24:7
Adam Sandler wrote:
and Jim... glad this helped!
Thou shalt not try me. Mom 24:7
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Thou shalt not try me. Mom 24:7
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
It's feeding time! Give me the food you were going to give to this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
|