Date: Tue, 12 Oct 2021 13:35:53 +0300 From: Mehmet Erol Sanliturk <m.e.sanliturk@gmail.com> To: list-freebsd-questions@jyborn.se Cc: questions@freebsd.org Subject: Re: Is there a way to get direct execution of java jar files in FreeBSD? Message-ID: <CAOgwaMuesf0WapAhXAQMbHdS%2BrgN%2BL5yAunA32nHwLhWH5EtFA@mail.gmail.com> In-Reply-To: <YWVZ1mr8CdnmZ4sg@pol-server.leissner.se> References: <YWVZ1mr8CdnmZ4sg@pol-server.leissner.se>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000001bc87f05ce256b31 Content-Type: text/plain; charset="UTF-8" Please see the following page : https://apropos-logic.com/books/wci/ Writing Compilers and Interpreters (3rd edition): A Software Engineering Approach In that page , the following parts : Download Compile Run with https://en.wikipedia.org/wiki/Javac javac Perhaps , the information in these pages may be useful for you to design your solution . Mehmet Erol Sanliturk On Tue, Oct 12, 2021 at 12:49 PM <list-freebsd-questions@jyborn.se> wrote: > I want to start a java jar file from inetd in FreeBSD 12. > > It seems I need to do this with the command java -jar xxx.jar, > since I can't find a way to get direct execution of jar files. > > The java -jar method works fine, but the problem is that xxx.jar > needs to know the IP address of the connecting client, and it should > get that via the function System.inheritedChannel(), but it doesn't. > > Could it be that the java -jar start method in inetd doesn't transfer > the client socket to xxx.jar? > > Anyway, that's why I wonder if there is a way to start xxx.jar without > java -jar. > > Thanks! > > Peter > > --0000000000001bc87f05ce256b31--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOgwaMuesf0WapAhXAQMbHdS%2BrgN%2BL5yAunA32nHwLhWH5EtFA>