×
Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...
Question Regarding CALLJ
- ambdev
- Offline
- Junior Member
-
Less
More
- Posts: 30
- Thank you received: 5
9 years 8 months ago #18031
by ambdev
Replied by ambdev on topic Question Regarding CALLJ
Hi chloe_chou,
Assuming the java settings that you added to the jconsrvPROD.vars file are pointing to valid paths, then the last step is to restart jconman service.
Assuming the java settings that you added to the jconsrvPROD.vars file are pointing to valid paths, then the last step is to restart jconman service.
Please Log in or Create an account to join the conversation.
- chloe_chou
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 82
- Thank you received: 0
9 years 8 months ago #18033
by chloe_chou
Replied by chloe_chou on topic Question Regarding CALLJ
Hi!
Thank you very much for the reply.
Paths are the same as the ones in remote.cmd(which CALLJ does work on classic mode), and I do have restarted the jconman, but it still can't find JVM......
Thank you very much for the reply.
Paths are the same as the ones in remote.cmd(which CALLJ does work on classic mode), and I do have restarted the jconman, but it still can't find JVM......
Please Log in or Create an account to join the conversation.
- ambdev
- Offline
- Junior Member
-
Less
More
- Posts: 30
- Thank you received: 5
9 years 8 months ago #18048
by ambdev
Replied by ambdev on topic Question Regarding CALLJ
Hi chloe_chou,
Make sure you are pointing to the same jBASE/T24 account when starting the T24 session in classic and desktop.
1. Create and compile a jbc subroutine as below:
Diagnostic.Info
001 SUBROUTINE Diagnostic.Info
002 EXECUTE "jdiag -vL" CAPTURING sOutput
003 END
2. Create an entry in PGM.FILE for the routine; set type to "M" (main)
3. Run the routine inside a "classic" T24 session
4. Rename "jdiag.out" file just created to "jdiag.out.classic"
5. Run the routine inside a T24 desktop session
6. Rename "jdiag.out" file just created to "jdiag.out.desktop"
7. Use a compare tool to detect differences between both files created
Please Log in or Create an account to join the conversation.
- chloe_chou
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 82
- Thank you received: 0
9 years 8 months ago #18050
by chloe_chou
Replied by chloe_chou on topic Question Regarding CALLJ
Hi ambdev,
Thank you very much for your help!!
I created both jdiag and it's different between these two, then I found where to set up the environment var for desktop, and now CALLJ does work in desktop as well!
Thank you so much for all the advice and help!
Thank you very much for your help!!
I created both jdiag and it's different between these two, then I found where to set up the environment var for desktop, and now CALLJ does work in desktop as well!
Thank you so much for all the advice and help!
Please Log in or Create an account to join the conversation.
- sid007
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
9 years 7 months ago #18159
by sid007
Replied by sid007 on topic Question Regarding CALLJ
Hi ,
I have to use CALLJ on linux platform.
as u said in above post i tried to create same simple java prog and placed in same directory where jar is placed.
when i execute the java prog i got following output which is working.
jsh Admin ~ -->java testMe
Testing Java on machine
jsh Admin ~ -->
but when i am trying to execute jar file with CALLJ its throwing " Class sample.callj doesn't exist ! " error .
And i am having one more doubt... if our java prog has 4 methods then which method should we pass to CALLJ. Main function only or else.
Please Advise....
Thanks in Advance....
I have to use CALLJ on linux platform.
as u said in above post i tried to create same simple java prog and placed in same directory where jar is placed.
when i execute the java prog i got following output which is working.
jsh Admin ~ -->java testMe
Testing Java on machine
jsh Admin ~ -->
but when i am trying to execute jar file with CALLJ its throwing " Class sample.callj doesn't exist ! " error .
And i am having one more doubt... if our java prog has 4 methods then which method should we pass to CALLJ. Main function only or else.
Please Advise....
Thanks in Advance....
Please Log in or Create an account to join the conversation.
- Valleyman1
- Visitor
-
9 years 7 months ago #18160
by Valleyman1
Replied by Valleyman1 on topic Question Regarding CALLJ
if our java prog has 4 methods then which method should we pass to CALLJ
Response: Use a CASE to determine which method is being executed.I believe these methods have different function.
Please confirm if you have configured the .jprofile correctly for CALLJ to run?
Response: Use a CASE to determine which method is being executed.I believe these methods have different function.
Please confirm if you have configured the .jprofile correctly for CALLJ to run?
Please Log in or Create an account to join the conversation.
- sid007
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
9 years 7 months ago #18164
by sid007
Replied by sid007 on topic Question Regarding CALLJ
Yes.. .please find below .profile
Base variables
################
#PS1="$(uname)-\$PWD: "
export HOME=/T24/R13/bnk/bnk.run
export TAFC_HOME=/T24/TAFC_R13/R13
export TAFC_CONTEXT=default
export T24_HOME=/T24/R13/bnk/bnk.run
export JBCRELEASEDIR=TAFC_HOME
#ulimit -n 8192
umask 002
# Execution:
############
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
export PATH=$JAVA_HOME/bin:$PATH/T24/R13/bnk/bnk.run/jscp.jar:$PATH
export HYPERSIGAR=/glocs/MODEL/jboss/hypersigar/sigar-bin/lib
export PATH=$PATH:$HOME/rdbmsPrograms:$PATH:$T24_HOME/updater/bin
#export JREDIR=$TAFC_HOME/jdk/jre
export JREDIR=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
export PATH=$PATH:/usr/vacpp/bin:/usr/vac/bin:$JREDIR/bin:$JAVA_HOME/bin:$TAFC_HOME/bin:$JBCDEV_BIN:$HOME/bin:$HOME/t24bin:$HOME/tambin:.:$HYPERSIGAR
#export JRELIB=$TAFC_HOME/java/jre/lib:$TAFC_HOME/jdk/jre/lib/platform
export JRELIB=$JREDIR/bin:$JREDIR/bin/classic
export LD_LIBRARY_PATH=$HOME/t24lib:$TAFC_HOME/lib:$JBCDEV_LIB:$JRELIB:$LD_LIBRARY_PATH:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/opt/java6/jrelib:/opt/java6/jvmlib
#export LD_LIBRARY_PATH=$HOME/t24lib:$TAFC_HOME/lib:$JBCDEV_LIB:$JRELIB:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/opt/java6/jrelib:/opt/java6/jvmlib:/opt/java6/jre/lib/amd64/server:/opt/java6/jre/lib/amd64
#export LD_LIBRARY_PATH=$HOME/t24lib:$TAFC_HOME/lib:$JBCDEV_LIB:$JRELIB:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:$/opt/java6/jrelib:$/opt/java6/jvmlib:$/opt/java6/jre/lib/amd64/server:$/opt/java6/jre/lib/amd64
#export LIBPATH=$TAFC_HOME/lib:$JRELIB:$JBCDEV_LIB:$JAVA_HOME/jre/bin:$JAVA_HOME/jre/bin/classic:${LIBPATH:-/usr/lib}
export LIBPATH=$HOME/t24lib:$TAFC_HOME/lib:$JRELIB:$JAVA_HOME/jre/lib/ppc64:$JAVA_HOME/jre/lib/ppc64/j9vm:$JRELIB:$JBCDEV_LIB:${LIBPATH:-/usr/lib}:$HOME/t24lib/T24E_Components
export SHLIB_PATH=$HOME/t24lib:$TAFC_HOME/lib:$JBCDEV_LIB:$JRELIB:${SHLIB_PATH:-/usr/lib}
# JBASE Varialbles:
###################
export JBASE_PATH=$HOME/bin:$HOME/t24bin:$HOME/tambin
export JBCLISTFILE=$HOME/\&SAVEDLISTS\&
export JEDIFILENAME_MD=$HOME/VOC
#export JEDIFILENAME_SYSTEM=$TAFC_HOME/src/SYSTEM
export JEDIFILENAME_SYSTEM='/T24/R13/bnk/bnk.run/SYSTEM'
export JBCEMULATE=prime
export JBASE_ERRMSG_DIVIDE_BY_ZERO=19
export JBASE_ERRMSG_ZERO_USED=35
export JBASE_ERRMSG_NON_NUMERIC=19
export JBC_CORE_DUMP=1
export JEDIFILEPATH=$HOME
export JEDIENABLEQ2Q=1
export JBCBASETMP=$HOME/tmp_workfile
export JBCOBJECTLIST=$HOME/lib:$HOME/tamlib:$HOME/GR0800004lib:$HOME/t24lib:$HOME/extractorlib:$HOME/GR0800017lib:$HOME/gdttglib:$HOME/target2lib:$HOME/radlib:$HOME/sepalib
export JBASE_JBCOBJECTLIST_DIR=1
export JBCDEV_BIN=$HOME/bin
export JBCDEV_LIB=$HOME/lib
#export JBCDEV_BIN=$HOME/tambin
#export JBCDEV_LIB=$HOME/tamlib
export JBASE_I18N=1
export JBASE_CODEPAGE=utf8
export JBASE_LOCALE=en_US
export JBASE_TIMEZONE=Europe/London
export JBCSPOOLERDIR=$HOME/jspooler
#export JBCJVMLIB=$JAVA_HOME/jre/bin/j9vm/libjvm.so
export JBCJVMLIB=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server/libjvm.so
And for multiple method doubt: can we give main method name in method name parameter..
Thanks..
If you have any document please share me @ This email address is being protected from spambots. You need JavaScript enabled to view it.
Base variables
################
#PS1="$(uname)-\$PWD: "
export HOME=/T24/R13/bnk/bnk.run
export TAFC_HOME=/T24/TAFC_R13/R13
export TAFC_CONTEXT=default
export T24_HOME=/T24/R13/bnk/bnk.run
export JBCRELEASEDIR=TAFC_HOME
#ulimit -n 8192
umask 002
# Execution:
############
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
export PATH=$JAVA_HOME/bin:$PATH/T24/R13/bnk/bnk.run/jscp.jar:$PATH
export HYPERSIGAR=/glocs/MODEL/jboss/hypersigar/sigar-bin/lib
export PATH=$PATH:$HOME/rdbmsPrograms:$PATH:$T24_HOME/updater/bin
#export JREDIR=$TAFC_HOME/jdk/jre
export JREDIR=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
export PATH=$PATH:/usr/vacpp/bin:/usr/vac/bin:$JREDIR/bin:$JAVA_HOME/bin:$TAFC_HOME/bin:$JBCDEV_BIN:$HOME/bin:$HOME/t24bin:$HOME/tambin:.:$HYPERSIGAR
#export JRELIB=$TAFC_HOME/java/jre/lib:$TAFC_HOME/jdk/jre/lib/platform
export JRELIB=$JREDIR/bin:$JREDIR/bin/classic
export LD_LIBRARY_PATH=$HOME/t24lib:$TAFC_HOME/lib:$JBCDEV_LIB:$JRELIB:$LD_LIBRARY_PATH:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/opt/java6/jrelib:/opt/java6/jvmlib
#export LD_LIBRARY_PATH=$HOME/t24lib:$TAFC_HOME/lib:$JBCDEV_LIB:$JRELIB:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/opt/java6/jrelib:/opt/java6/jvmlib:/opt/java6/jre/lib/amd64/server:/opt/java6/jre/lib/amd64
#export LD_LIBRARY_PATH=$HOME/t24lib:$TAFC_HOME/lib:$JBCDEV_LIB:$JRELIB:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:$/opt/java6/jrelib:$/opt/java6/jvmlib:$/opt/java6/jre/lib/amd64/server:$/opt/java6/jre/lib/amd64
#export LIBPATH=$TAFC_HOME/lib:$JRELIB:$JBCDEV_LIB:$JAVA_HOME/jre/bin:$JAVA_HOME/jre/bin/classic:${LIBPATH:-/usr/lib}
export LIBPATH=$HOME/t24lib:$TAFC_HOME/lib:$JRELIB:$JAVA_HOME/jre/lib/ppc64:$JAVA_HOME/jre/lib/ppc64/j9vm:$JRELIB:$JBCDEV_LIB:${LIBPATH:-/usr/lib}:$HOME/t24lib/T24E_Components
export SHLIB_PATH=$HOME/t24lib:$TAFC_HOME/lib:$JBCDEV_LIB:$JRELIB:${SHLIB_PATH:-/usr/lib}
# JBASE Varialbles:
###################
export JBASE_PATH=$HOME/bin:$HOME/t24bin:$HOME/tambin
export JBCLISTFILE=$HOME/\&SAVEDLISTS\&
export JEDIFILENAME_MD=$HOME/VOC
#export JEDIFILENAME_SYSTEM=$TAFC_HOME/src/SYSTEM
export JEDIFILENAME_SYSTEM='/T24/R13/bnk/bnk.run/SYSTEM'
export JBCEMULATE=prime
export JBASE_ERRMSG_DIVIDE_BY_ZERO=19
export JBASE_ERRMSG_ZERO_USED=35
export JBASE_ERRMSG_NON_NUMERIC=19
export JBC_CORE_DUMP=1
export JEDIFILEPATH=$HOME
export JEDIENABLEQ2Q=1
export JBCBASETMP=$HOME/tmp_workfile
export JBCOBJECTLIST=$HOME/lib:$HOME/tamlib:$HOME/GR0800004lib:$HOME/t24lib:$HOME/extractorlib:$HOME/GR0800017lib:$HOME/gdttglib:$HOME/target2lib:$HOME/radlib:$HOME/sepalib
export JBASE_JBCOBJECTLIST_DIR=1
export JBCDEV_BIN=$HOME/bin
export JBCDEV_LIB=$HOME/lib
#export JBCDEV_BIN=$HOME/tambin
#export JBCDEV_LIB=$HOME/tamlib
export JBASE_I18N=1
export JBASE_CODEPAGE=utf8
export JBASE_LOCALE=en_US
export JBASE_TIMEZONE=Europe/London
export JBCSPOOLERDIR=$HOME/jspooler
#export JBCJVMLIB=$JAVA_HOME/jre/bin/j9vm/libjvm.so
export JBCJVMLIB=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server/libjvm.so
And for multiple method doubt: can we give main method name in method name parameter..
Thanks..
If you have any document please share me @ This email address is being protected from spambots. You need JavaScript enabled to view it.
Please Log in or Create an account to join the conversation.
- sid007
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
9 years 7 months ago #18177
by sid007
Replied by sid007 on topic Question Regarding CALLJ
Hi now that prob is solved. but new error i got....
now am getting Cannot find object constructor error...
please advice...
now am getting Cannot find object constructor error...
please advice...
Please Log in or Create an account to join the conversation.
Time to create page: 0.046 seconds