Home arrow static arrow Java Programming [Archive] - Customer can't start software, need advice
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Customer can't start software, need advice
This topic has 2 replies on 1 page.

Posts:210
Registered: 6/13/03
Customer can't start software, need advice  
Jul 9, 2004 7:17 AM



 
I have customer running Win2K that can't seem to launch our app.

batch file loads Main.class
Main.class checks for dongle and exp date once both are confirmed valid the following code launches our app

 try{                  rt = Runtime.getRuntime();              p = rt.exec("javaw -XX:-CodeForP6 -cp C:/App/jar/Application.jar MainScreen ");                               InputStream stdin = p.getInputStream();              InputStreamReader isr = new InputStreamReader(stdin);              BufferedReader br = new BufferedReader(isr);                              String line = null;              System.out.println("<OUTPUT>");                              while ( (line = br.readLine()) != null){                System.out.println(line);              }              System.out.println("</OUTPUT>");               int exitVal = p.waitFor();                              System.out.println("Process exitValue: " + exitVal);             }            catch( Throwable t ){              System.out.println(t.getMessage());            }


In the batch file I inserted a bunch of pauses to try and catch the error, the user reported seeing the line

"<OUTPUT>

So I know we are getting to the software and it's trying launch the MainScreen.class but something is kicking it out.

Any ideas on how to catch the exact error?

Thanks
 

Posts:13,769
Registered: 00-11-29
Re: Customer can't start software, need advice  
Jul 9, 2004 7:20 AM (reply 1 of 2)



 
try running MainScren in java so you can see the output of that app.
 

Posts:210
Registered: 6/13/03
Re: Customer can't start software, need advice  
Jul 9, 2004 7:34 AM (reply 2 of 2)



 
Thanks for the reply,

I just sent the user a batch file that bypassed the dongle check to see if we could get it to launch

I used

java -XX:-CodeForP6 -cp c:\App\jar\Application.jar; MainScreen

So I'll let you know what the results are.
 
This topic has 2 replies on 1 page.