By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,851 Members | 1,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,851 IT Pros & Developers. It's quick & easy.

DB2 SQLJ.Install_jar(file:///user/shared/java/javamail.jar', 'MAIL') Error 58004

P: n/a
Hello!

I try to create a Java Procedure in DB2 running under SuSE 9.3. But the
install_jar command fails with:
Error 58004 Error starting the Java Interpeter.

a db2set -all command results in:
db2inst1@linux:/usr/share/java> db2set -all
[i] DB2COMM=tcpip
[i] DB2AUTOSTART=YES
[g] DB2SYSTEM=linux
[g] DB2ADMINSERVER=dasusr1

seems that there are some variables missing
my java is:
db2inst1@linux:/usr/share/java> java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)

How can I append some variables in db2set and witch one do i have to
define for Java UDF?

Tanks!

Christian Meier

Nov 12 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hello.

Try
db2 update dbm cfg using JDK_PATH <your_jdk_dir>;
db2stop;
db2start;

Tip: you point to the directory that contains bin and lib
subdirectories.

Sincerely,
Mark B.

Nov 12 '05 #2

P: n/a
OK, now it's pointing to: /usr/lib/jvm/java-1.4.2-sun-1.4.2.08

I read in another Tread about some missing definitions in the
/etc/ld.so.conf
and I added there the entries:
/usr/lib/jvm/java-1.4.2-sun-1.4.2.08/bin
/usr/lib/jvm/java-1.4.2-sun-1.4.2.08/lib

I restared my DB2 but it still fails. The db2dia.log sais:
2005-08-11-07.30.46.489503+120 I305086G359 LEVEL: Error
PID : 9191 TID : 3064985280 PROC : db2fmp
INSTANCE: db2inst1 NODE : 000
FUNCTION: DB2 UDB, oper system services, sqloJVMstart, probe:30
MESSAGE : sqloloadmodule failed. RC:
DATA #1 : Hexdump, 4 bytes
0xBFFFC2A4 : 0A00 0F86 ....

2005-08-11-07.30.46.490403+120 I305446G354 LEVEL: Error
PID : 9191 TID : 3064985280 PROC : db2fmp
INSTANCE: db2inst1 NODE : 000
FUNCTION: DB2 UDB, oper system services, sqloJAttach, probe:5
MESSAGE : JVM startup failed. RC:
DATA #1 : Hexdump, 4 bytes
0xBFFFF4C0 : 34EF FFFF 4...

2005-08-11-07.30.46.490670+120 I305801G355 LEVEL: Error
PID : 9191 TID : 3064985280 PROC : db2fmp
INSTANCE: db2inst1 NODE : 000
FUNCTION: DB2 UDB, BSU Java support, sqlejAttach, probe:10
MESSAGE : Error from sqloJAttach. RC:
DATA #1 : Hexdump, 4 bytes
0xBFFFF4E4 : 34EF FFFF 4...

seems he can not open the JVM but why?

Nov 12 '05 #3

P: n/a
try
http://publib.boulder.ibm.com/infoce...d/t0004675.htm
and look at
"Setting up the Linux Java environment " topic

Sincerely,
Mark B.

Nov 12 '05 #4

P: n/a
THX!
Christian

Nov 12 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.