Skip to content
← Back to Community
display images on the console screen in java
Profile icon
bobkpear

I built list little program in java to display a back ground, a couple of pics and some text. I did this in eclipse and it works great.

I am trying to get to work in replit. I have loaded the pics to a folder so I have access to the .jpg files.
I changed the path in the getImage statement.

I get this following error info: Is it because the replit console doesn't recognize some of the parms I used in eclipse. like fullscreen etc?

OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1)
? javac -classpath .:/run_dir/junit-4.12.jar:target/dependency/* -d . Main.java Screen.java picture.java
? java -classpath .:/run_dir/junit-4.12.jar:target/dependency/* Main

XOpenDisplay((null))
Starting X
nohup: redirecting stderr to stdout
xset: unable to open display ":0"
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000000
XKB indicators:
00: Caps Lock: off 01: Num Lock: off 02: Scroll Lock: off
03: Shift Lock: off 04: Group 2: off 05: Mouse Keys: off
auto repeat delay: 660 repeat rate: 25
auto repeating keys: 00feffffdffffbbf
fadfffffffdfe5ef
ffffffffffffffff
ffffffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 2/1 threshold: 4
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 600 cycle: 600
Colors:
default colormap: 0x20 BlackPixel: 0x0 WhitePixel: 0xffffff
Font Path:
/usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,built-ins
DPMS (Energy Star):
Display is not capable of DPMS
nohup: ignoring input and appending output to 'nohup.out'
5.. nohup: appending output to 'nohup.out'
4.. 3.. 2.. 1..
Retrying request...
? ^C
?
?

Voters
Profile icon
Leonhard-MartMa
Profile icon
ctandon
Profile icon
KamsiNwogu
Profile icon
bobkpear