On 3/22/2020 1:10 AM, ABD ALRHMAN ABO ALKHEEL wrote:
> Hi All, I wanna run the java source code on Gem5. Any help would be 
appreciated. Best Regards

I'm not in a position to give detailed instructions, but there are two points
here (at least!) --

1) You don't run Java source code.  You compile it and run the compiled
bytecode on a Java Virtual Machine (JVM).

2) You're going to need a system image with Java installed on it.  For just
running your previously compiled Java program, a suitable Java run-time setup
will do (somewhat smaller).  You'll also need to get your code into the image.

3) If you truly want to compile the source _and_ run it, both under Gem5,
then you'll need to get a suitable JDK (Java Developer's Kit), which includes
the javac program and related tools, in addition to 'java' (the Java run-time
virtual machine, and needed libraries).

If the things you need are suitably added to an OS image, then you should be
able for up and run things.

Other folks may be able to point you are more detailed information on how to
add source code, byte code, and packages to an image prior to trying to run it
in simulation.

Eliot Moss
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to