The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

problem signing applet in Windows NT

Posted by arknaren on March 30, 2001 at 12:33 PM

Hi everyone,

I have some problem signing the applet with Window NT.

The code that i have written is signed in windows 2000

and it is working fine all the machine(win9X,NT,2000)

If i signed the same code in Windows NT, it is not working

in any machine. Here is a sample of code.

I have used Microsoft IE Java

this is the piece of code

(1)DataOutputStream dos;
(2)URL codeBase=getCodeBase();
(3)URL u;
(4)u = new URL(codeBase,"xxx.exe");
(5)URLConnection uc = u.openConnection();
(6)inStream = uc.getInputStream();
(7)dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream("c:\\xxx.exe")));
(8)BufferedInputStream in = new BufferedInputStream(inStream);

The code is failing in line # 6. It is giving nullpointer
exception.

code is basically getting the xxx.exe from the cab file
and writting to client machine

Please help me.



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us