Java ScriptEngine

The ScriptEngine in Java (from the javax.script package) doesn’t directly define a fixed list of functions itself — instead, it provides a standard interface for embedding and executing scripts in various languages (like JavaScript, Python via Jython, Groovy, etc.). So, the functions supported depend on which scripting language engine you’re using. However, here’s a breakdown…

Read More

FileSplitter Tool – Splitting data file

update the following lines: set “inputFile=C:\path\to\your\input.txt”set “outputFolder=C:\path\to\output”set “linesPerFile=1000” and here is the bat file: @echo offsetlocal :: Set variablesset “inputFile=C:\path\to\your\input.txt”set “outputFolder=C:\path\to\output”set “linesPerFile=1000” :: Create output directory if it doesn’t existif not exist “%outputFolder%” (mkdir “%outputFolder%”) :: Run PowerShell to split the filepowershell -Command ^“$inputFile = ‘%inputFile%’;” ^“$outputFolder = ‘%outputFolder%\’;” ^“$linesPerFile = %linesPerFile%;” ^“$i = 0;”…

Read More

Unsupported major.minor version 52.0 in dfc code

We are getting below error message while uploading documents in repo using the dfc 7.2 code. Exception in thread “main” java.lang.UnsupportedClassVersionError: com/documentum/mailapp/operations/inbound/DfSeparateAttachments : Unsupported major.minor version 52.0 Solution: Summary The easiest solution is to upgrade your runtime to Java 8 or higher, which should resolve the UnsupportedClassVersionError.

Read More

Tomcat configuration

type windows command “regedit” and find this location. and configure all tomcat configuration, and then go to the following path: configuration: D:\tomcat-9.0.85-8090-CMIS\bin\bootstrap.jar;D:\tomcat-9.0.85-8090-CMIS\bin\tomcat-juli.jar or, if you want to use a customconf folder: D:\tomcat-9.0.85-9000-DMV\bin\bootstrap.jar;D:\tomcat-9.0.85-9000-DMV\bin\tomcat-juli.jar;D:\tomcat-9.0.85-9000-DMV\Customconf -Dcatalina.home=D:\tomcat-9.0.85-9000-DMV-Dcatalina.base=D:\tomcat-9.0.85-9000-DMV-Dignore.endorsed.dirs=D:\tomcat-9.0.85-9000-DMV\endorsed-Djava.io.tmpdir=D:\tomcat-9.0.85-9000-DMV\temp-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager-Djava.util.logging.config.file=D:\tomcat-9.0.85-9000-DMV\conf\logging.properties-Dlog4j2.configurationFile=D:\tomcat-9.0.85-9000-DMV\bam\log4j2.properties-Dbam.properties=D:\tomcat-9.0.85-9000-DMV\bam\bam.properties-Djava.locale.providers=COMPAT,SPI-XX:+UseParallelOldGC-Xdebug-Xnoagent-Xrunjdwp:transport=dt_socket,server=y,suspend=n –add-opens=java.base/java.lang=ALL-UNNAMED–add-opens=java.base/java.io=ALL-UNNAMED–add-opens=java.base/java.util=ALL-UNNAMED–add-opens=java.base/java.util.concurrent=ALL-UNNAMED–add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED log: start: stop:

Read More

Useful Batch Command

constant pinging with timestamp: @echo offSET TARGET=<server name or IP>IF “%~1” NEQ “” SET TARGET=%~1 ping -t %TARGET%|cmd /q /v /c “(pause&pause)>nul & for /l %%a in () do (set /p “data=” && echo(!time! !data!)&ping -n 2 localhost >nul” > C:\Temp\rociolopez.txt output looks like:

Read More

Comprehensive Overview of Documentum Product Suite

Documentum offers a range of products designed to manage information with robust security, governance, and compliance features. These products serve various business needs, from content management to workflow automation and archiving. Here’s a list of several key Documentum products: These products make up a comprehensive suite that helps organizations manage content throughout its lifecycle, ensure…

Read More

Set the current TimeZone

Our application users have high expectations regarding timestamp accuracy, anticipating that our applications will intuitively recognize their time zones and adjust timestamps accordingly. In this guide, we will explore various strategies for altering the time zone settings of the JVM. Additionally, we will delve into the challenges and common pitfalls encountered in managing time zones…

Read More