0

I'm trying to install JDownloader2 on my Pi and I'm following this tutorial.

But when I run:

java -jar /home/pi/jdownloader2/JDownloader.jar

I get:

Segmentation fault

what does this mean? And how can I fix this?

Darth Vader
  • 4,206
  • 24
  • 45
  • 69
ilmincione
  • 5
  • 1
  • 5

2 Answers2

1

This looks like an internal Java crash. You could try to install several JDK versions (right now there's openjdk-8-jdk to openjdk-11-jdk, plus you might have oracle-javaX-jdk pre-installed), and try them out one by one:

sudo update-alternatives --config java

If one of those works, you're in luck.

Dmitry Grigoryev
  • 27,928
  • 6
  • 53
  • 144
0

A segmentation fault could imply the filesystem is corrupt.

If the error is only occurring when you are trying to install packages try running:

sudo rm -rf /var/cache/apt/*.bin

This might solve the problem but its certainly no guarantee. It might be necessary to backup anything important and have a go at reinstalling the OS on the SD card.

The error also could have been caused by you not fully expanding the filesystem to fill the size of the SD card. To check if this is the case or not run:

df -k

This will tell you if rootfs is completely filled or not.

If you do have to start afresh I suggest ensuring you are using a reputable SD card and a decent power supply, at least 5V 2A. Normally power or SD card issues are what lead to a filesystem becoming corrupted.

Darth Vader
  • 4,206
  • 24
  • 45
  • 69
  • I've executed the command same problem – ilmincione May 30 '17 at 15:49
  • Ok, could you confirm for me that the segmentation fault error occurs when running other commands in the terminal, or is it just limited to installing packages? – Darth Vader May 30 '17 at 18:48
  • 1
    when I install a package there is no error about segmentation fault, this error appear only if I try to execute this command java -jar /home/pi/jdownloader2/JDownloader.jar – ilmincione May 30 '17 at 19:35