Gynnad Paullussen wrote:
Alexei Kaigorodov wrote:
Gynnad Paullussen wrote: I get the error JAR IS NULL..
This is not an error, this message merely indicates that there is no more jar entries.
Add printing of jarEntry.getName () to see if there are jar entries at all.
Then I see everything what is in the jar.. But why does the code not work then?
I changed the jarEntry in the if to jarEntry.getName() and now it is working to get the .class files.
Now I have the path in the jar to the classes that contains the tests. For example this is a class with tests: test.login.deploy.AllTest.class But that is a String and not the class. And I need in my program the class to start the JUnit tests. This is the code that I'm using for it:
I know now the path to the .Jar file and from the Jar file the way to the classes I need. But how can I run them now? Because when I'm running them he searches in my own jar file...