Issue executing java trx on IMS region



IBM's hierarchical database management system with a Database Manager (IMS DB) and a Transaction Manager(IMS DC)

Issue executing java trx on IMS region

Postby jcdm » Mon Oct 24, 2022 2:35 pm

Hello everybody, I am learning about java execution on IMS region, but I am stopped in this point.

I create a PSB called PRUEBAJC
I Create a Hello world pgm in /u/ibmuser/javajc

PRUEBAJC.class
PRUEBAJC.jar
PRUEBAJC.java

(I am not sure about package line: u.ibmuser.javajc)

package u.ibmuser.javajc;                        
public class PRUEBAJC {                          
    public static void main( String Ý~ args) {    
        System.out.println("Hola, amigo");        
    }                                            
}                                                


DFSJVMMS Proclib member:

-Djava.class.path=>                                  
/usr/lpp/java/J8.0:>                                  
/usr/lpp/java/J8.0/lib:>                              
/usr/lpp/ims/ims15/imsjava/imsudb.jar:>              
/usr/lpp/ims/ims15/imsjava/imsutm.jar:>              
/usr/lpp/ims/ims15/imsjava/samples/OpenDBIVP.jar:>    
/u/ibmuser/javajc/PRUEBAJC.jar:                      
-Xmx128M                                              


DFSJVMEV
LIBPATH=>                        
/usr/lpp/java/J8.0/lib/s390/j9vm:>
/usr/lpp/java/J8.0/lib/s390:>    
/usr/lpp/java/J8.0/lib:>          
/usr/lpp/ims/ims15/imsjava/lib:  



DFSJVMAP
PRUEBAJC=u/ibmuser/javajc/PRUEBAJC


and I got this issue:

java.lang.NoClassDefFoundError: u.ibmuser.javajc.PRUEBAJC              
Caused by: java.lang.ClassNotFoundException: u.ibmuser.javajc.PRUEBAJC  
 at java.net.URLClassLoader.findClass(URLClassLoader.java:610)          
 at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:942)        
 at java.lang.ClassLoader.loadClass(ClassLoader.java:887)              
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)      
 at java.lang.ClassLoader.loadClass(ClassLoader.java:870)              


Could someboby please help to see whats wrong? Thanks in advance.
jcdm
 
Posts: 18
Joined: Fri Dec 10, 2021 4:39 pm
Has thanked: 1 time
Been thanked: 3 times

Re: Issue executing java trx on IMS region

Postby jcdm » Mon Oct 24, 2022 6:10 pm

Sorry, solved modifying DFSJVMMS

/u/ibmuser/javajc
jcdm
 
Posts: 18
Joined: Fri Dec 10, 2021 4:39 pm
Has thanked: 1 time
Been thanked: 3 times


Return to IMS DB/DC

 


  • Related topics
    Replies
    Views
    Last post