epascual wrote:Thanks for the precision.
Excuse me if the question sounds stupid, but why has the "old" Java environment been replaced by Oracles's one ? The leJOS class ecosystem was already working quite well with this version.
It would be possible. But it would also come with a caveat: namely that many features of modern JVMs would not be available (unless we implement them, which would be a really big amount of work) such as: object serialization, RMI, dynamic class loading, etc.epascual wrote:OK, I see. I suppose that making the home-made NXT targeted Java environment run on the EV3 was too much work compared to migrate to a ready to use JVM and environment.
After the programs have started, they actually run faster. The old JVM only interpreted bytecode. Oracle's JVM actually compiled the bytecode to machine code.epascual wrote:This will not be that easy to explain to the kids who asked me why programs are now longer to start, although the EV3 has a far more powerful engine inside than the NXT
This is a very good point.skoehler wrote:After the programs have started, they actually run faster. The old JVM only interpreted bytecode. Oracle's JVM actually compiled the bytecode to machine code.
Code: Select all
jrun -cp <jar-file-name> <main-class-qualified-name>
Users browsing this forum: No registered users and 0 guests