1 2 Previous Next 24 Replies Latest reply: Sep 19, 2008 1:10 PM by abillconsl RSS

    typing *jar on command line changes args[] to contain jar files

    807589
      Hi, I am typing in "java filename jar *jar normal" in order to search something by jars and to search thru all jars (using jar) but when i type that in i get a bunch of jar files back. args[0] is supposed to be the search type, args[1] is the search criteria and args[2] is irrelevant... the problem is that when i print out the values of args[0],args[1]..etc, they are all jar files. I know the problem is with the asterik but i need it there and i cant add it in my code b/c it doesnt work. Is there any way to fix it? I tried putting quotes around jar as someone suggested, but it doesn't work.
      Thanks!

      Edited by: setaret2004 on Sep 19, 2008 10:11 AM
        1 2 Previous Next