Skip to main content
Known Participant
April 1, 2022
Question

Setting JAVA path in Appian

Hi,

In my Linux server with appian 20.4 installed, 

the following are the details in the "profile" file in /etc folder --
export JAVA_HOME=/data-01/appian/203/appian/java ---- actually this path does not exist in the server
export PATH=$JAVA_HOME/bin:$PATH:

But when I run the command 

echo $JAVA_HOME, I find this --

/usr/lib/jvm/jdk1.8.0_191

I tried removing the  java folder, in the above path(/usr/lib/jvm/jdk1.8.0_191) and stopping my Appian services, (firstly the Tomcat) but the jsp commands are unrecognisable. As soon as I restored the Java at the above path, everything resumed fine.

The JAVA_HOME in the profile file refers to a different path while the actual JAVA location used by my services seems to be different.

Can any one guide me to change the JAVA_HOME path?

Can I point my Appian services to use the the Java in this path (/data-01/appian/204/appian/java)? If so where should I set the path for my Appian services to point to this path?

Thanks,

Chetana

8 replies

mathieud0001
Genius
April 1, 2022

Based on what you posted, this should work - no?  You also need to reload your shell for the change to take effect. 

export JAVA_HOME=/data-01/appian/204/appian/java
export PATH=$JAVA_HOME/bin:$PATH:

Try running the following after making the update to the file:

bash --login
java -version

Known Participant
April 4, 2022

Hi Mathieu,

I have executed the above commands, restarted my services. and when I check echo $JAVA_HOME

it is pointing to the new path(/data-01/appian/204/appian/java). And my envi is up and running.

But during the restart when I checked the logs , I found this

2022-04-04 08:24:02 Beginning to start Appian in Tomcat
2022-04-04 08:24:03 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxHttpHeaderSize' to '' did not find a matching property.
2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/8.5.75
2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jan 17 2022 22:07:47 UTC
2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 8.5.75.0
2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.10.0-1160.59.1.el7.x86_64
2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
2022-04-04 08:24:03 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/jdk1.8.0_191/jre

Do I need to change the path elsewhere too?

Regards,

Chetana