Runtime error :java.lang.NoClassDefFoundError: com/sun/security/auth/module
This is the error at runtime..
"java.lang.NoClassDefFoundError: com/sun/security/auth/module/NTSystem
at GLOBAL.getProperty(GLOBAL.java:20)
at oracle.forms.handler.UICommon.onGet(Unknown Source)
at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source) "
the source code is this....
import oracle.forms.ui.VBean;
import oracle.forms.properties.ID;
import java.security.*;
import java.net.*;
import java.lang.Object;
//import com.sun.security.auth.module.NTSystem;
public class GLOBAL extends VBean
{
static final ID WinUserName = ID.registerProperty("CLIENT_USER");
String UserName;
public Object getProperty(ID pid)
{
if(pid == WinUserName)
{
try{
//UserName = System.getProperty("user.name");
//NTSystem ntsystem = new NTSystem();
//return(ntsystem.getDomain() + "\\" + UserName);
com.sun.security.auth.module.NTSystem ntsystem = new com.sun.security.auth.module.NTSystem();
UserName = ntsystem.getName();
return(UserName);
}
catch(Exception e){
return(e);
}
}
else
return(super.getProperty(pid));
}
}
During runtime when an applet calls for the class file which is inside a signed jar file this error occurs.
Can any one please help me....
Thanks in advance..

