Re: Java for NetBSD

2020-04-05 Thread Chavdar Ivanov
On Sun, 5 Apr 2020 at 18:52, David Young  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.comUrbana, IL(217) 721-9981



-- 



Re: Java for NetBSD

2020-04-05 Thread David Young
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.

Dave

-- 
David Young
dyo...@pobox.comUrbana, IL(217) 721-9981


Re: Java for NetBSD

2020-04-05 Thread Chavdar Ivanov
On Sun, 5 Apr 2020 at 17:59, Chavdar Ivanov  wrote:
>
> All I needed to run idea.sh under NetBSD-current amd64 with openJDK 11 was
>
>  $ PATH=/usr/pkg/java/openjdk11/bin:$PATH; export PATH
>  $ PATH=/opt/idea-IC-193.6911.18/bin:$PATH
>  $ idea.sh
>
> You get some error messages or warnings, but the interface comes up;
> as I have no idea (no pun intended) of java programming, I can't say
> if it works.

I forgot to mention that I do not have installed any Linux emulation -
this is pure java execution under NetBSD.

>
> On Sun, 5 Apr 2020 at 16:32, Greg Troxel  wrote:
> >
> > "John m0t"  writes:
> >
> > > As far as I know the java in *NetBSD* is the same file/kind as Linux.
> >
> > More or less.
> >
> > > I have downloaded the jetbrains intellij which ships with openjdk. I went 
> > > inside the openjdk directory.
> >
> > I don't follow "ships with openjdk".  Do you mean "includes a copy of
> > openjdkN already built for GNU/Linux which assumes some particular set
> > of Linux libraries"?
> >
> > > 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.
> >
> > I'd use file, ldd, and more.   I find that /usr/pkg/openjdk8-java is a
> > shell script.
>
>
>
> --
> 



-- 



Re: Java for NetBSD

2020-04-05 Thread Chavdar Ivanov
All I needed to run idea.sh under NetBSD-current amd64 with openJDK 11 was

 $ PATH=/usr/pkg/java/openjdk11/bin:$PATH; export PATH
 $ PATH=/opt/idea-IC-193.6911.18/bin:$PATH
 $ idea.sh

You get some error messages or warnings, but the interface comes up;
as I have no idea (no pun intended) of java programming, I can't say
if it works.

On Sun, 5 Apr 2020 at 16:32, Greg Troxel  wrote:
>
> "John m0t"  writes:
>
> > As far as I know the java in *NetBSD* is the same file/kind as Linux.
>
> More or less.
>
> > I have downloaded the jetbrains intellij which ships with openjdk. I went 
> > inside the openjdk directory.
>
> I don't follow "ships with openjdk".  Do you mean "includes a copy of
> openjdkN already built for GNU/Linux which assumes some particular set
> of Linux libraries"?
>
> > 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.
>
> I'd use file, ldd, and more.   I find that /usr/pkg/openjdk8-java is a
> shell script.



-- 



Re: Java for NetBSD

2020-04-05 Thread Greg Troxel
"John m0t"  writes:

> As far as I know the java in *NetBSD* is the same file/kind as Linux.

More or less.

> I have downloaded the jetbrains intellij which ships with openjdk. I went 
> inside the openjdk directory.

I don't follow "ships with openjdk".  Do you mean "includes a copy of
openjdkN already built for GNU/Linux which assumes some particular set
of Linux libraries"? 

> 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.

I'd use file, ldd, and more.   I find that /usr/pkg/openjdk8-java is a
shell script.


Re: Java for NetBSD

2020-04-05 Thread Silas

Hi!

On Sun, Apr 05, 2020 at 02:42:43PM +0300, John m0t wrote:

   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?


If you downloaded the GNU/Linux binaries, I believe you can run them 
after installing the Linux emulation layer for NetBSD.


Take a look to https://www.netbsd.org/docs/guide/en/chap-linux.html


Java for NetBSD

2020-04-05 Thread John m0t
 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?
Thank You
J.B