A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1225 below:

[core] Error in sed expression on line 82 of run.sh while detecting installed version of Java · Issue #1225 · pmd/pmd · GitHub

[core]

Affects PMD Version: 6.5.0, 6.6.0

Description: When invoking run.sh I receive the error /usr/local/Cellar/pmd/6.5.0/libexec/bin/run.sh: line 82: [: : integer expression expected

I believe the direct cause is that the $java_ver variable is not properly set, on line 79 of run.sh

Replacing line 79 with java_var=100 fixes the error message.

I encountered this with 6.5.0 installed via Homebrew, and also with 6.6.0 which I built using Maven.

This is the output produced by java -version on my machine. I am using the Java installed by Homebrew.

java version "10" 2018-03-20
Java(TM) SE Runtime Environment 18.3 (build 10+46)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4