Los Angeles1
asked on
Java, how to search if a class exists with a Jar
What is the comand to determine if a class exists within a jar
I tried the following
But obviously it did not work
Could someone please post an example of how to do this for
1> Th ecurrent directory
2> any subdirectory
Thanks
I tried the following
java -jar TEST.jar -i . button
Ignoring unknown flag: -i
Ignoring unknown flag: .
Ignoring unknown flag: button
java.lang.NullPointerException
But obviously it did not work
Could someone please post an example of how to do this for
1> Th ecurrent directory
2> any subdirectory
Thanks
ASKER
I dont have an excutable named jar
Do you mean java
I can not get tf or -tf to work
Can you help on this
Do you mean java
I can not get tf or -tf to work
Can you help on this
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:)
i've already given you. If you want to use the command line (assuming Windows)
Open in new window
Of course, that will only work for one jar at a time