On Sun, 5 Apr 2020 at 18:52, David Young <dyo...@pobox.com> wrote: > > On Sun, Apr 05, 2020 at 02:42:43PM +0300, John m0t wrote: > > Hello; > > Today I faced another problem. > > As far as I know the java in *NetBSD* is the same file/kind as Linux. > > I have downloaded the jetbrains intellij which ships with openjdk. I went > > inside the openjdk directory. > > Under sh shell {./java} command will return *not found* and under bash > > shell I get > > *no such file or directory*. the said file is executable. the {ls} command > > on > > that directory shows the java file. > > Could someone tell my why? > > `./java` may be a script. The program named in the #! directive in the > first line of the script may be missing. Run `file ./java` to see if > it's a script. Run `head -1 ./java` to look at the first line.
idea.sh is just a shell script. If you add your OpenJDK bin directory to your path, so that 'java' comes from there, idea.sh works just fine. That's all needed. > > Dave > > -- > David Young > dyo...@pobox.com Urbana, IL (217) 721-9981 -- ----