Re: Is there a way to get direct execution of java jar files in FreeBSD?
Date: Tue, 12 Oct 2021 10:35:53 UTC
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 > >