× 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...

Uable to do tCompile in TAFJ R17

  • darthadhi
  • darthadhi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #21789 by darthadhi
Uable to do tCompile in TAFJ R17 was created by darthadhi
Hi Friends,
I'm unable to compile a routine in classic mode. While compiling im getting this error " Error: Could not find or load main class Files\Java\jdk1.8.0_161\lib\tools.jar". Kindly Help me out......


________________________________________________________________

Home : 'C:\R17\TAFJ'
Conf directory : 'C:\R17\TAFJ/conf'
Log directory : 'C:\R17\TAFJ\log'
Log directory T24 : 'C:\R17\TAFJ\log_T24'
Logging implementation : LOG4J2
Version : R17_SP3
__________________________________________________________________

java.home : C:\Program Files\Java\jdk1.8.0_161\jre
java.vendor : Oracle Corporation
java.version : 1.8.0_161
os.arch : amd64
os.name : Windows 10
HostName : CDC5-D-DGFRFD2
IP Address : 10.238.26.24
Runtime : Double Byte SysSeparator
__________________________________________________________________

Default Project : 'tafj'
__________________________________________________________________
Common validation:
Common validation completed - All fine
__________________________________________________________________

- Project : 'tafj'
Insert source : C:\R17\bnk\t24lib
: C:\R17\bnk\UD\T24_BP
Java src dir : C:\R17\TAFJ\data\tafj\java
Java classes dir : C:\R17\TAFJ\data\tafj\classes
Precompile : C:\R17\bnk\t24lib
Update dir : C:\R17\TAFJ/updates
Java default package : com.temenos.t24
DataBase URL : jdbc:h2:tcp://localhost:8096/DEV
DataBase user : t24
Locking mode : JDBC
Locking name :
Current dir : C:\R17\bnk\UD
Como dir : C:\R17\bnk\UD/&COMO&
Hold dir : C:\R17\bnk\UD/&HOLD&
UD encoding : UTF-8
Timezone :
Local : en_US
Debug enabled : true
JMS logger enabled : false
Logger API enabled : true
TEC disabled : false
Session monitor enabled : true
Session monitor host : localhost
Session monitor port : 8377
__________________________________________________________________
Project validation:

Valar Dohaeris

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
More
5 years 10 months ago #21793 by VK
Replied by VK on topic Uable to do tCompile in TAFJ R17
Hi
I don't have any recent experience with TAFJ but I believe your JAVA_HOME should point to JDK, not JRE (that is just a runtime not suitable for developments).

Cheers
VK

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #21794 by arslan
Replied by arslan on topic Uable to do tCompile in TAFJ R17
even though jdk is defined by default, on compiler it shows $JAVA_HOME/jre so i dont believe this is the problem. You should check the CLASSPATH. but be careful on tCompile, you may want to check Temenos/TAFJ/bin/tCompile (sh or bat). open it up and read the lines, check whether or not it is including CLASSPATH before calling tcompile.jar

Please Log in or Create an account to join the conversation.

  • darthadhi
  • darthadhi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #21795 by darthadhi
Replied by darthadhi on topic Uable to do tCompile in TAFJ R17
How should i Set Class path...


tCompile:

@echo off
cls
rem
rem TAFJ Bootstrap Script for Windows
rem

if defined TAFJ_HOME goto LabOk
if "%OS%" == "Windows_NT" (
set TAFJ_HOME=%~dp0\..
) else (
set TAFJ_HOME=.\..
)
:LabOk

set "DIRNAME=%TAFJ_HOME%\bin"

rem set to Y if low Memory is enough
SET TAFJ_LOW_MEM=

rem Read an optional configuration file.
if "x%RUN_CONF%" == "x" (
set "RUN_CONF=%DIRNAME%\tafj_conf.bat"
)
if exist "%RUN_CONF%" (
call "%RUN_CONF%" %*
) else (
echo Config file not found %RUN_CONF%
)

rem Set here your class to launch and the classpath

set TAFJ_CLASSPATH=%RUN_CLASSPATH%
set TAFJ_CLASSPATH=%TAFJ_CLASSPATH%;"%TAFJ_HOME%\lib\TAFJCompiler.jar"
set TAFJ_CLASSPATH=%TAFJ_CLASSPATH%;"%JAVA_HOME%\lib\tools.jar"

set TAFJ_CLASS=com.temenos.tafj.compiler.tcompile
set TAFJ_NO_ARGU=

rem Execute TAFJ.
if "x%RUN_RUN%" == "x" (
set "RUN_RUN=%DIRNAME%\tafj_run.bat"
)
if exist "%RUN_RUN%" (
call "%RUN_RUN%" %*
) else (
echo Runner file not found %RUN_RUN%

Valar Dohaeris

Please Log in or Create an account to join the conversation.

More
4 years 11 months ago #22146 by Garakishiyev
Replied by Garakishiyev on topic Uable to do tCompile in TAFJ R17
If you have space in Java installation directory path, then you need to change JAVA_HOME path in Environment Variables:
Program Files = Progra~1
Program Files(x86) = Progra~2

Please Log in or Create an account to join the conversation.

More
4 years 11 months ago #22151 by Valleyman1
Replied by Valleyman1 on topic Uable to do tCompile in TAFJ R17
Please paste the command that you are typing when u need to run tCompile

Please Log in or Create an account to join the conversation.

Time to create page: 0.116 seconds