Comments (9)
Did you install the package which provides libswt-gtk*.so
libraries?
from docker-baseimage-gui.
Yeah, my Dockerfile looks like:
FROM jlesage/baseimage-gui:ubuntu-18.04
# Install xterm.
RUN apt-get update && apt-get install -y openjdk-8-jre libswt-gtk*
# Copy the start script.
COPY nitro.jar /app/
COPY startapp.sh /startapp.sh
# Set the name of the application.
ENV APP_NAME="Nitroexplorer"
from docker-baseimage-gui.
Maybe you could try to install it on a normal Linux installation to see how the app is started. They are often started with a couple of java options...
from docker-baseimage-gui.
I'm having a similar problem: I'm getting errors related to /dev/null as well. I'm trying to make an image that loads Eclair GUI, and (part of) the traceback is the following:
Loading library prism_es2 from resource failed: java.io.IOException: Can not create cache at /dev/null/.openjfx/cache/[168/1841]
java.io.IOException: Can not create cache at /dev/null/.openjfx/cache/11.0.2
at com.sun.glass.utils.NativeLibLoader.cacheLibrary(NativeLibLoader.java:233)
at com.sun.glass.utils.NativeLibLoader.installLibraryFromResource(NativeLibLoader.java:203)
at com.sun.glass.utils.NativeLibLoader.loadLibraryFromResource(NativeLibLoader.java:185) at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:157)
at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:52)
at com.sun.prism.es2.ES2Pipeline.lambda$static$0(ES2Pipeline.java:68)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.prism.es2.ES2Pipeline.<clinit>(ES2Pipeline.java:50)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at com.sun.prism.GraphicsPipeline.createPipeline(GraphicsPipeline.java:187)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:91)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
at java.base/java.lang.Thread.run(Thread.java:834)
Loading library prism_sw from resource failed: java.io.IOException: Can not create cache at /dev/null/.openjfx/cache/11.0.2
java.io.IOException: Can not create cache at /dev/null/.openjfx/cache/11.0.2
at com.sun.glass.utils.NativeLibLoader.cacheLibrary(NativeLibLoader.java:233)
at com.sun.glass.utils.NativeLibLoader.installLibraryFromResource(NativeLibLoader.java:203)
at com.sun.glass.utils.NativeLibLoader.loadLibraryFromResource(NativeLibLoader.java:185)
at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:157)
at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:52)
at com.sun.prism.sw.SWPipeline.lambda$static$0(SWPipeline.java:42)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.prism.sw.SWPipeline.<clinit>(SWPipeline.java:41)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at com.sun.prism.GraphicsPipeline.createPipeline(GraphicsPipeline.java:187)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:91)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
at java.base/java.lang.Thread.run(Thread.java:834)
As we can see, it also uses /dev/null as a directory. I'm currently trying on the ubuntu-18.04 tag with openjdk-11, but also tried debian-9 and manually downloading openjdk-11 from AdoptOpenJDK.
I tried running the JAR on a Docker container with Lubuntu + VNC and started correctly with no errors.
So, It might have something to do with some Java option, maybe is trying to write on the /home directory and by some reason it defaults it to /dev/null? Kinda weird.
from docker-baseimage-gui.
@calgara12 The problem seems to be that this image uses a user with no HOME route (more like the home set to /dev/null), which causes these errors (check this: https://github.com/jlesage/docker-baseimage-gui#home-environment-variable).
Theorically we can set the home in Java like this (here I show my startapp.sh file):
#!/bin/sh
set -ex
HOME="/tmp"
_JAVA_OPTIONS="-Duser.home=${HOME}" exec java -verbose -jar /eclair.jar
In my case another errors show up, but at least is not showing problems related with /dev/null. Maybe it works for you.
(Haven't tried yet setting the HOME env var before running the java command)
from docker-baseimage-gui.
similar here: The Application is using eclipse and trys to write to /dev/null/.eclipse...
I tried changing Home to /config but no luck. Any Ideas how I can make him not using /dev/null?
from docker-baseimage-gui.
For openjfx cache, I had same issue. This option fixes it...
-Djavafx.cachedir=/tmp
from docker-baseimage-gui.
java -jar \
-Djavafx.cachedir=/tmp \
-Duser.home=/tmp \
This should fix your issues
from docker-baseimage-gui.
Closing this issue. Please re-open if needed.
from docker-baseimage-gui.
Related Issues (20)
- Increase font size in xterm
- [Feature Request] Add casting of xserver support HOT 1
- Filepicker HOT 1
- Alpine mirrors support HOT 3
- Maximize Windows Does not Work Sometimes HOT 1
- Set remote resizing as default HOT 3
- add license? HOT 1
- Failed to connect to socket /var/run/dbus/system_bus_socket HOT 7
- Request for VLC media player
- 32bit or i386 version. HOT 3
- Zram? HOT 9
- Openbox not launching / no error shown HOT 1
- [Feature Request] Add image based on debian-slim HOT 1
- Add a link to your dockerhub into readme
- QR Code HOT 1
- Ubuntu release peculiarities. HOT 4
- Add specific user for app HOT 3
- "Failed to connect" HOT 10
- Question: maximise only main window HOT 1
- Change the time until the SIGKILL signal. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-baseimage-gui.