jboss - executing jarsigner command generates error: "Jarsigner is not recognized internal or external command" -


i trying verify signature of apk uploaded on site. trying execute

string command= "cmd /c jarsigner -verify -verbose -certs " +filelocation; process proc = runtime.getruntime().exec(command); bufferedreader reader=new bufferedreader(new inputstreamreader(proc.getinputstream())); bufferedreader reader1=new bufferedreader(new inputstreamreader(proc.geterrorstream())); string line=reader.readline();   string line1=reader1.readline(); 

line output null , line1 output is"jarsigner not recognized internal external command".

i have checked java_home,java.home,java.class.path. java_home holding jdk path java.home holding jre path java.class.path holds jboss server>deploy folder.

i running part of code on jboss server.

make sure java jdk set on path. in case put "d:\java\jdk1.6.0_34\bin" system variable path.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -