Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39783
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2022-06-21 08:38 -0700 |
| Message-ID | <16f09c2d-e244-4ada-8e55-c1014fde20c1n@googlegroups.com> (permalink) |
| Subject | Load jar into classpath and access resources in it at runtime |
| From | mike <mikaelpetterson@hotmail.com> |
Hi, I have created a jar file, test-example.jar, and added under src/test/resources and now I want to make sure that when I run the testcase this jar file is loaded so I can access files in it. I am using java 11. Q1: How to load jar, in testcase, at runtime? Q2: How to access resource in jar. Resource resides in jar with the following path suites/tools/device/nc/testng2.xml br, //mike
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Load jar into classpath and access resources in it at runtime mike <mikaelpetterson@hotmail.com> - 2022-06-21 08:38 -0700
Re: Load jar into classpath and access resources in it at runtime Arne Vajhøj <arne@vajhoej.dk> - 2022-06-21 14:09 -0400
Re: Load jar into classpath and access resources in it at runtime Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2022-06-23 12:31 +0200
Re: Load jar into classpath and access resources in it at runtime "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2022-06-23 05:20 -0700
Re: Load jar into classpath and access resources in it at runtime Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2022-06-23 15:33 +0200
Re: Load jar into classpath and access resources in it at runtime "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2022-06-23 14:01 -0700
csiph-web