-
Notifications
You must be signed in to change notification settings - Fork 0
HWLOC3D Development
HWLOC3D is a Java application for creating beautiful 2D/3D pictures for the hardware locality and memory hierarchy of a computer system. It is developed to visualize the XML-based output from hwloc utility. The XML examples can be found from hwloc xml database. The DTD file for specifying the XML is hwloc2.dtd. It is now being developed using JOGL and JZY3D
-
Eclipse Development Environment with M2E Support: Follow the step-by-step guide onStarting JZY3D-JOGL Development in Eclipse.
-
Clone the Repository: Clone this repository using the command:
git clone https://github.com/passlab/peviewer.git-
Open Project in Eclipse: Open the
peviewer/experiment/hwloc3dfolder in Eclipse as a Maven project. -
Navigate to File -> Import -> Maven -> Existing Maven Projects.

After successfully importing the project, proceed with the following steps:
- Build and execute the
SurfaceDemoAWTexample. This will serve as the starting point for development. - Feel free to rename or create a new file from there as needed.
Run the SurfaceDemoAWT:
To run the SurfaceDemoAWT.java file:
- Right-click on
SurfaceDemoAWT.java. - Select Run As -> Maven Clean.
- Right-click again on
SurfaceDemoAWT.java. - Select Run As -> Java Application.
Parsing XML files from Java
When it comes to parsing XML files from Java, consider two options:
-
Standard Java SDK for XML Parsing: Utilize the standard Java SDK for XML Parsing, as detailed in the Java SDK for XML Parsing Documentation.
-
Using a library that already supports: Explore libraries that support the binding of xml Schema or DTD with Java objects. Two notable options are:
-
XMLBeans: Explore the XMLBeans Documentation.
-
JAXB: Explore the JAXB Documentation. binding of XML Schema or DTD with Java objects, e.g. XMLBeans and JAXB