Unable to run the Notes Java program in Solaris

Hi I have created the following sample java code for lotus notes.

import lotus.domino.NotesThread;

public class Test {

public static void main(String args) {

try{

	System.out.println("sankar reddy");

	NotesThread.sinitThread();

	System.out.println("sankar reddy");

}catch(Exception e){

	e.printStackTrace();

}

   

}

}

Before i run the code i setting up my path in the following way.

LD_LIBRARY_PATH=/opt/lotus/notes/latest/sunspa

export JAVA_HOME=/usr/jdk/jdk1.5.0_01

export PATH=$PATH:/usr/jdk/jdk1.5.0_01/bin:/usr/jdk/jdk1.5.0_01/lib/tools.jar

export CLASSPATH=$CLASSPATH:/opt/lotus/notes/65040/sunspa/Notes.jar

The Test.java compiles fine but when i run the Test class i getting out like that:

sankar reddy

Abort (core dumped)

What is wrong with my code or do i need to do extra stuff…

Regards,

Sankar

Subject: Unable to run the Notes Java program in Solaris

Hi,First try to add this envs to your .profile

NOTESBIN=/opt/lotus/bin

NOTESDATA=/opt/lotus/notesadata

NOTESDIR=/opt/lotus/notesadata

LD_LIBRARY_PATH=/opt/lotus/notes/latest/sunspa:$NOTESBIN:$NOTESBIN/jvm/bin/classic:$LD_LIBRARY_PATH

PATH=$NOTESDATA:$NOTESBIN/jvm/bin:$NOTESBIN:$LD_LIBRARY_PATH:$PATH

CLASSPATH=$NOTESBIN/jvm/bin/classic:$NOTESBIN/jvm/bin:$NOTESBIN/jvm/bin/ext:$NOTESBIN:$CLASSPATH

Second:ensure that your user have access to the Domino folders & files

Third:Try to run the test inside the notesdata, move your java example under your domino server notesdata folder

I hope that this can at least change your error

Regards,

Gabriel

Subject: Unable to run the Notes Java program in Solaris

I am wondering because are you adding these environment variables to your profile.

Have you tried to remove these variables and run the agent?

Where are you running the agent, on the server i guess?

Regards,

Gabriel

Subject: RE: Unable to run the Notes Java program in Solaris

Hi I have given the trace that i did can u check if possible…It is urgent…

bash-3.00$ java Test

sankar

Exception in thread “main” java.lang.NoClassDefFoundError: lotus/domino/NotesThr ead

    at Test.main(Test.java:6)

bash-3.00$ java -classpath .Notes.jar Test

The java class is not found: Test

bash-3.00$ export CLASSPATH=$CLASSPATH:/opt/lotus/notes/65040/ibmpow/Notes.jt

bash-3.00$ java Test

sankar

Exception in thread “main” java.lang.NoClassDefFoundError: lotus/domino/NotesThr ead

    at Test.main(Test.java:6)

bash-3.00$ export CLASSPATH=$CLASSPATH:/opt/lotus/notes/65040/ibmpow/Notes.jar

bash-3.00$ java Test

sankar

Exception in thread “main” java.lang.UnsatisfiedLinkError: Can’t find library ls xbe_r (liblsxbe_r.a or .so) in sun.boot.library.path or java.library.path

sun.boot.library.path=/usr/java14/jre/bin

java.library.path=/usr/java14/jre/bin:/usr/java14/jre/bin/classic:/usr/java14/jr e/bin:/usr/lib

    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2044)

    at java.lang.Runtime.loadLibrary0(Runtime.java:824)

    at java.lang.System.loadLibrary(System.java:910)

    at lotus.domino.NotesThread.load(NotesThread.java:309)

    at lotus.domino.NotesThread.checkLoaded(NotesThread.java:330)

    at lotus.domino.NotesThread.sinitThread(NotesThread.java:182)

    at Test.main(Test.java:6)

bash-3.00$

bash-3.00$ export LIBPATH=/opt/lotus/notes/latest/ibmpow

bash-3.00$ java Test

sankar

JVMDG217: Dump Handler is Processing Signal 6 - Please Wait.

JVMDG303: JVM Requesting Java core file

JVMDG304: Java core file written to /home/notes/javacore30242.1204351525.txt

JVMDG215: Dump Handler has Processed Error Signal 6.

IOT/Abort trap (core dumped)

bash-3.00$

Any clues on this.?

Subject: RE: Unable to run the Notes Java program in Solaris

I would change your import for this:

import lotus.domino.*

Are you compiling with JDK 1.3? Which is he verison of your server? if is the 6.5 in this case you would need to use 1.3 if is 7 JDK 1.4

Subject: RE: Unable to run the Notes Java program in Solaris

Hi the same problem is getting I installed lotus domino server 7 and java versions jdk1.4.02 …

Still the following error is getting…

notes@blr-idmdt-srv42:~/Lotus_Validation_jdk1.4/jdk1.4tool/src> java testing

sankar start

JVMDG217: Dump Handler is Processing a Signal - Please Wait.

JVMDG303: JVM Requesting Java core file

JVMDG304: Java core file written to /home/notes/Lotus_Validation_jdk1.4/jdk1.4tool/src/javacore.20080303.105309.5945.txt

JVMDG215: Dump Handler has Processed Error Signal 6.

Aborted

notes@blr-idmdt-srv42:~/Lotus_Validation_jdk1.4/jdk1.4tool/src> java -version

java version “1.4.2”

Java™ 2 Runtime Environment, Standard Edition (build 1.4.2)

Classic VM (build 1.4.2, J2RE 1.4.2 IBM build cxia321420-20040626 (JIT enabled: jitc))

notes@blr-idmdt-srv42:~/Lotus_Validation_jdk1.4/jdk1.4tool/src>

Subject: RE: Unable to run the Notes Java program in Solaris

Hi,First try to add this envs to your .profile using your domino paths

NOTESBIN=/opt/lotus/bin

NOTESDATA=/opt/lotus/notesadata

NOTESDIR=/opt/lotus/notesadata

LD_LIBRARY_PATH=/opt/lotus/notes/latest/sunspa:$NOTESBIN:$NOTESBIN/jvm/bin/classic:$LD_LIBRARY_PATH

PATH=$NOTESDATA:$NOTESBIN/jvm/bin:$NOTESBIN:$LD_LIBRARY_PATH:$PATH

CLASSPATH=$NOTESBIN/jvm/bin/classic:$NOTESBIN/jvm/bin:$NOTESBIN/jvm/bin/ext:$NOTESBIN:$CLASSPATH

Second:ensure that your user have access to the Domino folders & files

Third:Try to run the test inside the notesdata, move your java example under your domino server notesdata folder

I hope that this can at least change your error

Regards,

Gabriel