question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

javaldx: Could not find a Java Runtime Environment!

See original GitHub issue

So I believe I followed the instructions, not sure if I missed something though.

FROM public.ecr.aws/shelf/lambda-libreoffice-base:7.4-node16-x86_64

COPY index.js package.json ${LAMBDA_TASK_ROOT}

RUN npm install

CMD [ "index.handler" ]

This is my Dockerfile I have my app code in index.js. I’m running docker build --platform linux/x86_64 -t convert-to-pdf . and then deploying that image to my ECR registry and deploying that on my lambda function. It’s all working, except when I call the convertTo method I end up getting this chunk of errors:

javaldx: Could not find a Java Runtime Environment!
Warning: failed to read path from javaldx
Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///tmp/SampleResume.pdf> failed: 0xc10(Error Area:Io Class:Write Code:16) at /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:3207 at /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:1783)

I haven’t seen anyone else having this issue, so I’m unsure what the problem could be.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
zoemrobcommented, Nov 1, 2022
FROM public.ecr.aws/shelf/lambda-libreoffice-base:7.4-node16-x86_64

COPY index.js package.json ${LAMBDA_TASK_ROOT}

# dependency not supplied by lambda-libreoffice-base image
RUN yum install java-1.8.0-openjdk-devel -y
RUN npm install

CMD [ "index.handler" ]

Adding the java-1.8.0-openjdk-devel package did allow me to run this.

0reactions
legome0937commented, Nov 5, 2022
FROM public.ecr.aws/shelf/lambda-libreoffice-base:7.4-node16-x86_64

COPY index.js package.json ${LAMBDA_TASK_ROOT}

# dependency not supplied by lambda-libreoffice-base image
RUN yum install java-1.8.0-openjdk-devel -y
RUN npm install

CMD [ "index.handler" ]

Adding the java-1.8.0-openjdk-devel package did allow me to run this.

Thanks! It works well

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javaldx: Could not find a Java Runtime Environment!
Hi, I have a Bash script that uses LibreOffice (version 3.5.7.2) in order to open a spreadsheet (calc). The script first makes a...
Read more >
Fixing "javaldx: Could not find a Java Runtime Environment ...
In such case, try installing default-jre package. 'javaldx: Could not find a Java Runtime Environment!' might be pointing to the right culprit, ...
Read more >
How to fix LibreOffice Requires Java Runtime Environment Error
Troubleshooting. If you cannot find Java Runtime Environment after installing JRE, click on the Add button and browse-select the directory where ...
Read more >
Install java Runtime Environment - Ask Ubuntu
When running the --help switch, I got this. $ /usr/lib/libreoffice/program/swriter javaldx: Could not find a Java Runtime Environment! Please ...
Read more >
[Solved] javaldx: Cannot find a Java Runtime Environment
Try to install OOo from OOo site, it can be installed parallel to opensuse version, they have different user profiles, will not touch...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found