Heat the palm oil in a wok or frying pan.
Add the garlic, ginger, shallots, lemongrass, chili and turmeric. Cook over medium heat until the mixture starts to look pasty (the oil will be absorbed by the other ingredients).
Add the rice to the pan.
Stir and toss until the rice is heated through and every grain is coated with the spicy yellow paste. Season with salt. Stir to blend.
Ladle the Java rice into bowls or plates and sprinkle with crisp fried shallots and scallions.