File orekitData = new File("C:\\Users\\<user>\\eclipse-workspace\\orekit-data");
LazyLoadedDataContext lazy = new LazyLoadedDataContext();
UTCScale utc = lazy.getTimeScales().getUTC();
AbsoluteDate date = new AbsoluteDate(2021, 10, 27, 16, 11, 0.0, utc);
I’m able to retrieve orekit data (to be used for instance for other purposes, as for instantiating the AbsoluteDate in the example), but only in the way shown in the code lines above. Is there a more generic way to load only ONCE all the orekit data (at the start of execution of my Java code) and then forget about it?
So that - for example - when I later call TimeScalesFactory.getUTC(), Orekit will automatically return me the desired time scale without needing to use workaround UTCScale utc = lazy.getTimeScales().getUTC().
I had to implement this code since I tried the one you sent me but it gives me an error related to the fact that it cannot access to the class methods
Thank you in advance,