Hack Forums
[Java] Junit - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Java] Junit (/showthread.php?tid=5801811)



Junit - Hepic - Feb 19, 2018

Hello guys ! I am trying to install junit in ubuntu and I can't. I tried this method: https://www.tutorialspoint.com/junit/junit_environment_setup.htm
Also I searched about more information in stackoverflow but found nothing.
I really don't have idea what I am doing wrong. I would appreciate if anyone could help me through teamviewer.
If anyone is interested please write a message below and I will communicate with you.
Thank you so much in advance !


RE: Junit - CAFEEFAC - Feb 19, 2018

Ideally, you would use some dependency management software to resolve and handle the dependencies for you. Do you use an IDE? Eclipse, for example?

If you use Eclipse, you can configure your project's build path and add an external library. This is where you include the junit jar file into your project. You can also create a lib folder in your project directory, place the dependencies in there, and add a library instead (not external).

Take a look at this.


RE: Junit - Hepic - Feb 19, 2018

Thank you for you response, but I do not use Eclipse. I use ubuntu, as editor I use vim and I just complie and run from terminal.
Also I am new in java and I do not know if there is any easier way that you download packages.


Ok I figured it out. I just followed this https://github.com/junit-team/junit4/wiki/Getting-started