Java agent:cannot access org.omg.CORBA.UserException

Hi Friends,

i am trying to write a java agent ,when i try to compile the agent it is getting “java agent:cannot access org.omg.CORBA.UserException”.

Can anyone please advise me why i am getting this error?

i have added below path in the notes.ini file but still same error

JavaUserClasses= C:\notes\data\domino\java

Subject: NCSO.jar

Shouldn’t you also specify the Java archive name NCSO.jar?

JavaUserClasses=C:\notes\data\domino\java\NCSO.jar

Subject: Re: NCSO.jar

Yes, and be aware of a 255 character limit for the value of this Parameter. Here’s a TechNote which provides a work-around to the limitation:

Title: Using the JavaUserClassesExt parameter when JavaUserClasses exceeds limit
Doc #: 1193964
URL: http://www.ibm.com/support/docview.wss?rs=899&uid=swg21193964

Subject: cannot access file org.omg.CORBA.UserException

i have added JavaUserClasses=C:\notes\data\domino\java\NCSO.jar in th ini file, but still it is getting same error?

is it related to any access probelm?

any other way to find the exact problem?

Thanks in advance…

Subject: Re: NCSO.jar

Is the CLASSPATH Environment Variable pointing-to the location of the ‘NCSO.jar’ file? Try correcting your CLASSPATH to use the appropriate file based on whether you are using local calls (which uses Notes.jar) or remote/DIIOP calls (which uses NCSO.jar). You can also pass the JVM a specific CLASSPATH from the command line when invoking your application by using the –classpath switch."

Subject: include the lib correctly

I have suffered for the problem caused by different java version lib(for example:com.ibm.mq.jar was jdk1.4 but the complier environment was jdk1.5).