Forum
Keyword
× 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
  • Posts: 14
  • Karma: -1
  • Thank you received: 1

darthadhi created the topic: Uable to do tCompile in TAFJ R17

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
#21789

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • R13|TAFC|jBASE|windoze
  • Posts: 541
  • Karma: 9
  • Thank you received: 78

VK replied the 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
#21793

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

  • Posts: 42
  • Thank you received: 1

arslan replied the 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
#21794

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

  • darthadhi
  • darthadhi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Karma: -1
  • Thank you received: 1

darthadhi replied the 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
#21795

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

  • darthadhi
  • darthadhi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Karma: -1
  • Thank you received: 1

darthadhi replied the topic: Uable to do tCompile in TAFJ R17

Below are the Environment Variable Details that are set for the environment.I haven't set CLASSPATH(Dont Know how to set Classpath variable pls hgelp me on that).


JAVA_HOME =C:\Program Files\Java\jdk1.8.0_161
TAFJ_HOME = C:\R17\TAFJ
JBOSS_HOME = C:\R17\jboss-eap-6.3
PATH = %TAFJ_HOME%\bin;%JAVA_HOME%\bin;%JBOSS_HOME%\bin

Valar Dohaeris
#21796

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

Time to create page: 0.128 seconds