Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

*.jar

 
Balaji Bang
Ranch Hand
Posts: 182
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose we have a jar file in a directory called jars. can we set the path like /jars/*.jar;

What it means (*.jar)...
 
James Tharakan
Ranch Hand
Posts: 580
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose we have a jar file in a directory called jars. can we set the path like /jars/*.jar;


it means include all the files which has a extension of .jar
 
Ankit Garg
Sheriff
Posts: 9510
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that you can do this. You'll have to include the name of the individual jar files in the class path. You can't say *.jar to include all the .jar files in the classpath...
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit Garg wrote:I don't think that you can do this. You'll have to include the name of the individual jar files in the class path. You can't say *.jar to include all the .jar files in the classpath...


It is possible with JDK 6 classpath wildcards
 
Ankit Garg
Sheriff
Posts: 9510
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm I didn't knew that. Actually I tried it as a command line argument to the -cp option of java and javac command and it didn't work. Looks like it only works for classpath environment variable...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic