java - Runnable Jar file - src file path issue -


I have to read all the Java file names available in the script package to execute a particular method. The code below works fine with Eclipse I want to run a test using Runnable Jar - as strTestScriptsPath = "src / com / xyz / test / scripts" is a src, it is < (Otherwise I have to provide the src folder for the jar file to run it successfully)

How to use this reference this.getClass () GetResourceAsStream ()

In the note :. I am trying to give the path of the directory not the file. I only have to give the name of the file name from the above code: (

Enter image details here

Hanuman, if you want to make a runner jar, you will have to configure the manifest file by providing a fully qualified class name, as well as this class should have:

  Public Static Zero Main (string [] Args) {  

Information about data leadership is available here:

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -