Subject: Rare project developers
List archive
- From: Alexander Gall <>
- To: <>
- Cc: "" <>
- Subject: Re: [rare-dev] External commands not found by freerouter
- Date: Wed, 16 Feb 2022 17:04:18 +0100
On Wed, 16 Feb 2022 15:30:57 +0100, mc36 <> said:
> hi,
> On 2/16/22 15:22, Alexander Gall wrote:
>> Hi
>>
>> My freerouter instance teminates after "show proc cpu" with
>>
>> java.lang.NoClassDefFoundError: java/lang/management/ManagementFactory at
>> logger.listThreads:logger.java:578/userShow.doer:userShow.java:421/userExec.executeCommand:userExec.java:2135/userExec.doCommands:userExec.java:1925/userLineHandler.doExec:userLine.java:810/userLineHandler.run:userLine.java:883/java.lang.Thread.run:Thread.java:832/
>>
>> I guess it tries to run an external command and doesn't find it. Do
>> you have a list of all the commands that freerouter would ever try to
>> call? I need to make sure that all of them are present as Nix
>> packages.
>>
> so the first part of at points to here:
> https://github.com/mc36/freeRouter/blob/3c2ac7252f3b08261bfb4d64f3e5c6767ef72e23/src/net/freertr/util/logger.java#L578
> and complains no class definition found, which tells me your _jre_ is
> incomplete....
Please excuse my ignorance about everything related to java :( Is
this somehow related to what we talked about last year (this is from a
message dating August 16 2021):
>> It appears that there are no JREs for Java 9 and later (I read that
>> this is due to the introduction of the "Java Platform Module System"
>> in Java 9) and the full JDK is a bit large for a runtime package. But
>> Nix provides a way to build a "minimal JRE" from a JDK by specifiying
>> the list of modules to include for the application. I started with the
>> bare minimum, i.e. only java.base (giving me a nice lean JRE of 44MiB)
>> and freertr seems to be fine with just that. Can you confirm that
>> this is all I need or are there any other modules I should include?
>yess, the base is enough....
If this is it, what else do I need to add besides "base"? If this is
not the problem, where should I look next?
--
Alex
> (somehow it compiles so your jdk have the class...)
> https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/ManagementFactory.html
> tells us the class is available since 1.5...
>> Another small issue: the rtr.err and rtr.rld get written to the
>> package directory which corrupts /nix/store. How can I select a
>> different location for these files? Maybe some option when calling
>> java?
>>
> nothing right now, but thanks for spotting, imho these are at better
> located near the config files... i'll fit it asap...
> regards,
> cs
- [rare-dev] External commands not found by freerouter, Alexander Gall, 02/16/2022
- Re: [rare-dev] External commands not found by freerouter, mc36, 02/16/2022
- Re: [rare-dev] External commands not found by freerouter, Alexander Gall, 02/16/2022
- Re: [rare-dev] External commands not found by freerouter, mc36, 02/16/2022
- Re: [rare-dev] External commands not found by freerouter, Alexander Gall, 02/16/2022
- Re: [rare-dev] External commands not found by freerouter, mc36, 02/16/2022
Archive powered by MHonArc 2.6.19.