Com.sun.security.auth.module.NTSystem compilation issues in Unix

Hi ,
I m using com.sun.security.auth.module.NTSystem in one my java application to get the current domain. The application and app server are running on windows OS.
Now i want to switch my OS to Unix, where i m getting compilation issues with com.sun.security.auth.module.NTSystem ,
1)Do i need to change the module from NTSystem to UnixSystem?
2) I m developing the java application in Eclipse 3.2 with java 1.4 , when i m trying to import the below statment com.sun.security.auth.module.UnixSystem i couldn't? Could you please let me how i can import the UnixSystem or NTSystem will work?
Appreciate your help!!!!
Regards,
Ravi.

Unix, where i m getting compilation issues with com.sun.security.auth.module.NTSystemOf course.
Do i need to change the module from NTSystem to UnixSystem?Of course.

Similar Messages

  • Com.sun.security.auth.login.ConfigFile.init(Unknown Source)

    Hello,
    Currently am working with Java SDK BI 4.1 to create stand alone application.
    I have Authentication problem though secWnAD for the below code.
    ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
    enterpriseSession = sessionMgr.logon("xxxxx","xxxxx", "xxxxxxx", "secWinAD");
    Error:
    Caused by: java.io.IOException: Unable to locate a login configuration
    at com.sun.security.auth.login.ConfigFile.init(Unknown Source)
    when I tried to implement the same through VBA I am not getting any error for authentication.
    Kindly help me.
    Regards
    Arun

    Now I have created the two files and
    added the below content
    krb5.ini
    [libdefaults]
        default_realm = xx.COM
        dns_lookup_kdc = true
        dns_lookup_realm = true
    [realms]
    XX.com = {
        default_domain = xxxx.xx.COM
        kdc = xx.COM
    bscLogin.conf
    com.businessobjects.security.jgss.initiate {
      com.sun.security.auth.module.Krb5LoginModule required;
    Now am getting
    KrbException: Cannot get kdc for realm XX.COM
    at sun.security.krb5.KrbKdcReq.send(Unknown Source)
    at sun.security.krb5.Credentials.sendASRequest(Unknown Source)
    at sun.security.krb5.Credentials.acquireTGT(Unknown Source)
    Regards
    Arun

  • Com.sun.tools.javac.Main: method compile errors

    I had a working web project the other day, and something happened that caused every page to start throwing this error:
    # javax.servlet.ServletException: com.sun.tools.javac.Main: method compile([Ljava/lang/String;Ljava/io/PrintWriter;)I not found
    # at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:779)
    # at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    # at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    # at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    # at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    # at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    # at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:978)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    # at com.mayco.mvc.MVCServlet.processRequest(MVCServlet.java:426)
    # at com.mayco.ldap.MayServlet.service(MayServlet.java:415)
    # at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    # at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    # at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    # at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    # at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    # at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
    # at com.mayco.cy.filter.AuthenticateFilter.doFilter(AuthenticateFilter.java:167)
    # at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
    # at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    # at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    # at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    # at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    # at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    # at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    # at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    # at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    # at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    # at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    I tried setting up a clean environment (server, EAR, web project), but haven't been able to re-solve the problem I had with the original project yet.  If I could get a starting point to look for how to solve this type of error it would be greatly appreciated!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I checked my JDK compliance (1.4) and the installed JREs (Standard VM; WebSphere v5.1 EE JRE; C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51_stub\java\jre)
    I did notice that it was using the JRE System LIbrary [WebSphere v5.1 JRE] and I changed it to the WebSphere v5.1 EE JRE like I think it should have been...
    and the web server startup begins with:
    *** Starting the server ***
    ************ Start Display Current Environment ************
    WebSphere Platform 5.1 [BASE 5.1.0.3 cf30412.02] [JDK 1.4.1 b0344.02] running with process name localhost\localhost\server1 and process id 2692
    Host Operating System is Windows XP, version 5.1
    Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
    was.install.root = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51
    user.install.root = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51
    Java Home = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51\java\jre
    ws.ext.dirs = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/ext;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/web/help;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/Program Files/IBM/SQLLIB/java/db2java.zip;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.2/runtime/worf.jar
    Classpath = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/bootstrap.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/j2ee.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/lmproxy.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/urlprotocols.jar;C:\WebSphere\properties;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\bcprov-jdk14-139.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\config.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\spi4jStub_2.5.4.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES100J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES110J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES120J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES200J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XTCP211.jar;C:\spi4j2.5.4_J2ee1.4\Demo\log4j-1.2.8.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\spi4jCore_2.5.4.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\axis-1.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xmlParserAPIs-2_2_1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jaxrpc.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\wsdl4j.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\fsgWsif1.1.jar;C:\spi4j2.5.4_J2ee1.4\Demo\commons-logging.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\tools.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-pool-1.2.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\saaj.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-beanutils-core.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-collections-3.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-discovery.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-lang-2.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\connector.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\FEDRWSCHECKSTATUSAxisInfo.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\fscontext.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\IFSClassLoader1.2.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\j2ee1.4.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jca.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jta.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\mail.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\providerutil.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\qname.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\soaprmi-1_1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xalan.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xercesImpl-2_2_1.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wteServers.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wasToolsCommon.jar
    Java Library path = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/jre/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\eclipse\jre\bin;.;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\eclipse\jre\bin;C:\oracle\product\10.2.0\client_2\bin;C:\oracle\product\10.2.0\client_1\bin;Y:\oracle\ora92\BIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\PROGRA~1\CA\ETRUST~1;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Rational\common;C:\Program Files\Rational\ClearCase\bin;C:\Program Files\IBM\SDP70\jdk\bin
    ************* End Display Current Environment *************

  • Using javax.security.auth.LoginContext to generate a renewable ticket

    Hi,
    I tired to use javax.security.auth.LoginContext (with kerberos) to generate a forwardable and renewable ticket. With this ticket I authenticate the user at an other server.
    My problem is, that the code generates a forwardable ticket, but not a renewable one. If I use the kinit (console tool) I am able to generate a renewable one.
    Here is the JAVA-code:
    System.setProperty("sun.security.krb5.debug","true");
    System.setProperty("java.security.krb5.conf", "krb5.conf");     
    System.setProperty("java.security.auth.login.config", "login.conf");
    lc = new LoginContext("SampleCXF",new LoginGuiCallbackHandler());
    try {
         lc.login();
    }catch(Exception e) {
         e.printStackTrace();
         System.exit(1);
         Subject subject = lc.getSubject();
         KerberosTicket kt = (KerberosTicket) subject.getPrivateCredentials().iterator().next();
         System.out.println(kt);
         Subject.doAsPrivileged(subject, new PrivilegedAction<byte[]>() {
              @Override
              public byte[] run() {
                   try {
                        JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
                        factory.setServiceClass(TestService.class);
                        factory.setAddress("https://server.at/TestProjektServer/services/TestService");
                        TestService client = (TestService) factory.create();
                        String message = client.service1("param service 1");
                        //String message = client.service1("param service 1");
                   }catch(Exception e) {
                        e.printStackTrace();
                   return null;
         }, null);
    the login.conf contains:
    SampleCXF {
    com.sun.security.auth.module.Krb5LoginModule required useTicketCache=true debug=true renewTGT=true doNotPront=true;
    the krb5.conf contains:
    [libdefaults]
    default_realm = TESTREALM
         kinit = {
         forwardable = true
         proxiable = true
         renew_lifetime = 5d 0h 0m 0s
    [realms]
    TESTREALM = {
    kdc = aba.hostingcenter.uclv.net
    admin_server = aba.hostingcenter.uclv.net
    [domain_realm]
    *.test.net = TESTREALM
    .test.net = TESTREALM
    [logging]
         default = FILE:/var/log/kdc.log
         kdc = FILE:/var/log/kdc.log
    [appdefaults]
         pam = {
              renewable = true
         forwardable = true
         renew_lifetime = 5d 0h 0m 0s
    If I use my client principal and password a ticket will be generated. This ticket is not renewable!!
    If I use the ticket cache (kinit -r, and kinit -R), a renewable ticket was loaded. On the server side the forwarded ticket is not renewable. It seams that the client generates a new ticket with the forwarded flag, but the renewable flag is not set.
    does anyone have an idea?
    Thanks a lot
    Ludi
    Edited by: user6714014 on Dec 13, 2011 7:34 AM

    nobody knows?

  • Javax.security.auth.login.LoginException : unable to locate JNDI user provi

    i'm facing a problem regarding the jndiloginmodule.
    even before connecting to the ldap server it says unable to locate jndi user provider. i have given the user.provider.url and also group.provider.url in the config file, but the (map)options is not recogonizing it.
    sample {
    com.sun.security.auth.module.JndiLoginModule required
    user.provider.url = "ldap://localhost:389/cn=Manager,o=stooges"
    group.provider.url = "ldap://localhost/cn=Manager,o=stooges" debug=true;
    this is the config file
    userProvider = (String)options.get(USER_PROVIDER);
         groupProvider = (String)options.get(GROUP_PROVIDER);
    these are the lines that should retrieve the userProvider, and the groupProvider but they are not. they are receiving null.
    can any please help me.
    thanx in advance
    shan

    i found what the problem was,
    in JndiLoginModule.java
    there is no need to declare a variable USER_PROVIDER and provide it as an argument to (map) options for getting the user.provider.url.
    just replace USER_PROVIDER with "user.provider.url" and same with group provider also.
    thats it.
    thanx

  • Redirect to the orgs auth module through gateway????

    Hello All,
    Another question about redirecting to an orgs authentication module.
    The proper link to redirect is:
    <protocol>://serverort/amserver/UI/Login?org=B (Thanks Raju!)
    But when trying to redirect to this link from the gateway, I get an error. Any ideas on how this could be done throught he gateway?
    Thanks,
    Jason

    Here is the error in the amAuth log file:
    ERROR: error creating LoginContext.
    and amAuthConfig gives:
    11/25/2003 03:14:14:598 PM AST: Thread[Thread-3695,5,main]
    ERROR: Invalid index type in config name other
    11/25/2003 03:14:14:598 PM AST: Thread[Thread-3695,5,main]
    ERROR: newConfiguration.switch
    java.lang.SecurityException: Unable to locate a login configuration
    at com.sun.security.auth.login.ConfigFile.getAppConfigurationEntry(ConfigFile.java:221)
    at com.sun.identity.authentication.config.AMConfiguration.newConfiguration(AMConfiguration.java:191)
    at com.sun.identity.authentication.config.AMConfiguration.getAppConfigurationEntry(AMConfiguration.java:839)
    at javax.security.auth.login.LoginContext.init(LoginContext.java:174)
    at javax.security.auth.login.LoginContext.<init>(LoginContext.java:319)
    at com.sun.identity.authentication.service.AMLoginContext.executeLogin(AMLoginContext.java:215)
    at com.sun.identity.authentication.server.AuthContextLocal.login(AuthContextLocal.java:309)
    at com.sun.identity.authentication.server.AuthContextLocal.login(AuthContextLocal.java:245)
    at com.sun.identity.authentication.server.AuthContextLocal.login(AuthContextLocal.java:166)
    at com.sun.identity.authentication.UI.LoginViewBean.getLoginDisplay(LoginViewBean.java:611)
    at com.sun.identity.authentication.UI.LoginViewBean.processLogin(LoginViewBean.java:567)
    at com.sun.identity.authentication.UI.LoginViewBean.forwardTo(LoginViewBean.java:331)
    at com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase.java:783)
    at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:434)
    at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:312)
    at com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:282)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
    at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
    at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
    Is there a config file that needs to be set up ????
    Thanks,
    Jason

  • Urgent : Cannot Compile :Error :java.lang.NoClassDefFoundError: com/sun/too

    I reinstalled win2k and since then I cant get my javac prompt to work
    The error is :
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    But I can find the java.exe
    jar tools, etc.
    Is there some version problems associated with this;
    I am actually tring to run a compile script
    as below:
    COMPILE SCRIPT
    rmdir/s/q K:\MyProjects\class\com
    pause
    javac -classpath K:\MyProjects\class;%JAVAC_CLASSPATH%%J2EE_CLASSPATH% -d K:\MyProjects\class @Compiler.txt
    pause
    This script was working normally before I reinstalled Win2k.
    My CLASSPATH , PATH are below and my jdk is installed in K:\jdk1.3.0_02
    SystemRoot = K:\WINNT
    JAVAC_CLASSPATH:
    %JAVA_HOME%\bin;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;
    CLASSPATH
    %SystemRoot%;%SystemRoot%\system32;%SystemRoot%\system32\cmd.exe;JAVAC_CLASSPATH% %J2EE_CLASSPATH%%JRE_HOME%; %MY_PROJECT%\SQLConstant.txt;
    PATH
    %SystemRoot%\system32;%SystemRoot%\system32\WBEM;%JAVAC_CLASSPATH%;%J2EE_CLASSPATH%;K:\Oracle\bin;K:\Program Files\Oracle\jre\1.1.7\bin;C:\Inprise\AppServer\bin;K:\Program Files\Sybase\SQL Anywhere 7\win32;K:\Program Files\Sybase\Shared\win32;K:\Program Files\Sybase\Shared\Sybase Central 4.0\java;K:\Program Files\Microsoft SQL Server\80\Tools\BINN;K:\Program Files\Sybase\EAServer4.0\java\lib\easclient.jar;K:\Program Files\Sybase\EAServer4.0\java\lib\easserver.jar;K:\Program Files\Sybase\EAServer4.0\java\lib\easj2ee.jar;K:\BorlandEnterpriseServer\bin;K:\WebSphere\AppServer\bin;K:\Program Files\IBM\MQSeries\bin;K:\Program Files\IBM\MQSeries\Java\Lib;K:\Program Files\IBM\WebSphere MQ Publish and Subscribe\bin
    I cant notice any difference between the old classpath settings.
    Could somebody help me out in this issue
    Thanks
    manoj

    Hi Manoj,
    I had the same problem.
    This is what worked for me:
    I'm running Win2k.
    So, in C:\WINNT\system32 I found the following files
    javac.exe
    javaw.exe
    java.exe
    I removed them all, since I have the jdk pointed in the right classpath in my environment variables.
    Once this was deleted. It worked fine!
    I hope this helps.

  • Java.lang.NoClassDefFoundError: com/sun/j3d/utils/applet/MainFrame         at HelloUniverse.main(Compiled Code)

    I'm getting this error
    java.lang.NoClassDefFoundError: com/sun/j3d/utils/applet/MainFrame
    at HelloUniverse.main(Compiled Code)
    I receive this error when I try to run the demos that are in the /usr/java1.1/demo folder.
    I followed the directions to install java3d. I installed the java3d binary in the top part of
    the JDK directory then ran the binary. Everything installed o.k., but I cannot run
    any of the demos. I also have J2SE 1.2.2_05a, JDK 1.1.8_10, and.
    JRE 1.1.8_10 installed. My operating system is SunOS 5.6, Solaris 2.6. My workstation
    is an Ultra 5 with 374mb ram.
    Here is part of the install intructions.
    Place the java3d1_2-solsparc.bin file into the top level directory
    of the JDK you wish to install Java 3D into. Execute the
    java3d1_2-solsparc.bin file (ex: sh java3d1_2-solsparc.bin).
    After installation, you may remove this file.
    The Java 3D(TM) SDK includes several demo programs that can
    verify correct installation. Assuming your Java 2 SDK is installed
    at ~/Solaris_JDK_1.2.2_05, try the following:
    cd ~/Solaris_JDK_1.2.2_05/demo/java3d/HelloUniverse
    java HelloUniverse
    Note: Many more demos are available under the demo/java3d/
    directory. Some of the demos require a maximum memory
    pool larger than the default in java. To increase the
    maximum memory pool to 64 meg, add the following command
    line options to java or appletviewer:
    java: -mx64m
    appletviewer: -J-mx64m
    You do not need to include the J3D jar files in your CLASSPATH,
    nor do you need to include the J3D shared libraries in your PATH.
    You should include "." in your CLASSPATH or ensure that CLASSPATH
    is not set.
    I'm not sure how to set set/unset the CLASSPATH and I'm not sure if I was supposed to
    place the binary file in the /usr/java1.1 or /usr/java or /usr/java1.2 directory.
    Can anyone help?
    tomjones

    -- If jar size isn't an issue, I recommend using thick "weblogic.jar" instead of the thin "wl*.jar" jars. The thick jar is a better performer, is used by more customers, and has more features. Otherwise:
              -- It might help to use the thin client jars from a later service pack - several service packs have been released since SP2, or you might even try using jars from a recent 9.2 SP or even 10.0.
              -- Also, check to see if the 1.4.2 JVM is up-to-date and/or try switching from the Sun JVM to the JRockit JVM (or vice-versa).
              -- Finally, it might help to check if your XP environment matches your Linux environment (JVM command-line, classpath, etc).
              -- Also: The IIOP newsgroup may also have some advice. The thin client uses the IIOP protocol even when a "t3:" URL is specified by the application.
              Tom

  • Unable to compile due to the unavailability of com.sun.rave.designtime pkg

    Hi ,
    I'm developing the design time jar for a custom component.
    But I'm unable to compile my BeanInfo base class( which is given below) because of the unavilability of com.sun.rave.designtime package.
    mport com.sun.rave.designtime.CategoryDescriptor;
    import com.sun.rave.designtime.faces.FacetDescriptor;
    import com.sun.rave.designtime.markup.AttributeDescriptor;
    public class TypeAheadBeanInfo extends SimpleBeanInfo
    In this code, the classes CategoryDescriptor;FacetDescriptor & AttributeDescriptor are in the com.sun.rave.designtime package.
    I could not get this jar eventhough I searched for this jar for more than 3 hrs in the internet. So, it would be great if anybody could please help me to get this jar. PLease Help me!!!!
    Thanks
    Rafique

    This is just a guess...but it might be in the
    openide.jar undre Creator\lib.Hmmm...on second thought take a look at the jar files under Creator Modules. Open the jars and see if you can find it there. I don't think it is in the openide.jar after giving it a quick glance.

  • JMX java.security.auth.login.config module not loading

    All
    I would like to setup my JMX remote to encrypt the password. My class implements LoginModule and I have the following command line configurations
    set JMX_AUTH_DETAILS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=5000 -Djava.security.auth.login.config==C:\bin\sample_jaas.configThe configuration file is
    /** Login Configuration for the JAAS Sample Application **/
    Sample {
       com.jmx.SampleLoginModule required debug=true;
    };I have placed the jar in my classpath and loaded with the JVM starting up. But I get an error saying unable to find passwordFile=C:\Program Files\Java\jre6\lib\management\jmxremote.password
    Even when I set this on the command line args. And then do a remote debug via eclipse it does not seem to execute the initialize on my SampleLoginModule class. Am I missing a command line arg?

    hi,
    Thanks for your response, finally i got solution. As you told I just check with file path, it works.
    regards
    rajesh

  • Trouble with compiling class that contains "import com.sun.xacml.*;"

    I think the package com.sun.xacml is included in j2sdk 1.4.2 (the one that I have)
    but every time I try to compile a class that importes this package classes, the compiler dosen't recognize the package.
    It's a problem of updating the CLASSPATH?
    Thanks in advance

    I don't think this would be part of any standard java distribution.
    But I found a couple of jars (versions) available for download at
    http://ebxmlrr.sourceforge.net/maven/repository/xacml/jars/

  • Is it possible to compile under Forte with import com.ms.security.*;

    Is it possible to compile under Forte with import com.ms.security.*; included in a java applet or do I need to compile from Microsoft JDK only? I would like to thank you on advanced.

    Yes; just include the cab/zip file containing those classes in your project. You'll find them from somewhere in your system.
    I would like to thank you on advanced. I don't give you the permission to do that. :)

  • Import com.sun.j3d.loaders.Scene - no longer compiles - what package?

    import com.sun.j3d.loaders.Scene -- this line compiled back in 2002, but is not supported under the current Java Development Package. Does anyone know the replacement package? I installed Java3D and JDIC, but my compiler still complains of an error. I read that JDIC got moved to org.jdesktop, but I tried
    import org.jdesktop.j3d.loaders.Scene -- this did not work either. Can someone tell me what package I need to include in my class path to get my compiler to recognize loaders.Scene?
    Thanks in advance.

    Nevermind this post. I added my vrml97 package to the runtime library, but I forgot to add it to the compile library. Oops.

  • Compile Error for Import com.sun.javadoc.*;

    I need to write some simple doclets and found some beginner code on the Sun website. The first line of the sample app is:
    import com.sun.javadoc.*;However, I get a compile error:
    C:\JavaDoc\Doclet\ListClass.java:1: package com.sun.javadoc does not exist
    import com.sun.javadoc.*;I found the com.sun.javadoc package in the tools.jar file in the lib directory of my sdk. So I added the following to my classpath:
    C:\j2sdk1.4.2_08\lib;Then I recompiled but received the same error. What have I done wrong? I'm on Windows XP.
    TIA.

    > C:\j2sdk1.4.2_08\lib;
    C:\j2sdk1.4.2_08\lib\tools.jar;

  • Keychain issues - OmniOutliner opens when opening com.apple.security.plist

    This issue really starts with Keychain and Mail, which has been asking for password login after every startup. I had thought the way to manage this would be to trash the com.apple.security.plist then restart - but when I pull up the .plist in spotlight, and click on it -- OmniOutliner opens. This is to my greater surprise because I don't recall downloading this app. It seems this is exactly what's corrupted. Suggestions on how to proceed?

    roam - thanks - so far this looks good.
    1. Changed association to Text edit.
    2. Locked keychain.
    3. Mail responds normally.
    (Funny, but last time I tried to look into this issue in August, the keychain access was virtually empty. I have no idea why, but I'm sure it was. Now, it's populated again. I wonder if one of the recent updates had something to do with that.)
    Here's what's left to do -
    In my effort to solve this before posting, I have 2 plists, 1 in the trash, 1 on the desktop. I'd already dragged the old plist into the trash. The new plist is on the desktop and retitled itself "com.apple.security 11-09-12.plist" after I dragged it out of the trash. (btw, the desktop plist is the one re-associated with Text Edit.)
    1. What should I do with the .plist on my desktop?
    2. Empty the trash?
    Thanks again, almost done here --

Maybe you are looking for

  • Song titles are not matching itunes to my ipod touch

    Ever since i updated to ios 5 my ipod has been acting up. I rename on itunes either the artist or song name and it re-names it ok on the computer. But then i go to my ipod and it didnt rename it. The song or artist says its unknown on ipod. Can anyon

  • I can´t pair my Brookstone headphones with my Ipad 3

    I can´t pair my Brookstone headphones with my Ipad 3, the Ipad simply doesn´t detect the device. I was using these headphones with my old Ipad 2. The device Manual of Instructions says it works with all Ipads. Any suggestions to solve the problem?

  • Wrong values submitted when submitting a form with javascript

    Hi guys, I know this aint a struts forum, but I did not know where else to go. So here goes.. I have the following code in my jsp <logic:iterate id="ex" name="myForm" property="users"> <html:multibox property="deleteUsers"> <bean:write name="ex" prop

  • Help! I accidentally un-installed my security (Macafee from my computer. How do i get it back?

    I have accidentally un-installed my security that came with the original firefox browser. I am new on the computer, so i cannot navigate well. I know there is probably a way to re-insatll my original McCafee security. I am sorry to bother you, but i

  • Oci client

    hi , we have installed 8i in server. how to use java database drivers.whoever using database ,that client should installed oci or with out installing oci on each client ie only installing jdbc drivers. can any body explain how to use thin drivers in