Write a Java program that simulates a simple e-commerce system, including product catalog, shopping cart, checkout process, and order history, using object-oriented programming principles.

Here's a simple implementation of an e-commerce system in Java. This example includes classes for Product, ShoppingCart, Order, and Customer.

```java
import java.util.ArrayList;
import java.util.List;

class Product {
    private String name;
    private double price;

    public Product(String name, double price) {
        this.name = name;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public double getPrice() {
        return price;
    }
}

class ShoppingCart {
    private List<Product> products;

    public ShoppingCart() {
        products = new ArrayList<>();
    }

    public void addProduct(Product product) {
        products.add(product);
    }

    public void removeProduct(Product product) {
        products.remove(product);
    }

    public double getTotalPrice() {
        double totalPrice = 0;
        for (Product product : products) {
            totalPrice += product.getPrice();
        }
        return totalPrice;
    }

    public List<Product> getProducts() {
        return products;
    }
}

class Order {
    private int orderId;
    private ShoppingCart cart;
    private boolean isCompleted;

    public Order(int orderId, ShoppingCart cart) {
        this.orderId = orderId;
        this.cart = cart;
        this.isCompleted = false;
    }

    public int getOrderId() {
        return orderId;
    }

    public ShoppingCart getCart() {
        return cart;
    }

    public boolean isCompleted() {
        return isCompleted;
    }

    public void completeOrder() {
        isCompleted = true;
    }
}

class Customer {
    private String name;
    private List<Order> orderHistory;

    public Customer(String name) {
        this.name = name;
        this.orderHistory = new ArrayList<>();
    }

    public String getName() {
        return name;
    }

    public void placeOrder(Order order) {
        order.completeOrder();
        orderHistory.add(order);
    }

    public List<Order> getOrderHistory() {
        return orderHistory;
    }
}

public class ECommerceSystem {

    public static void main(String[] args) {
        // Create products
        Product product1 = new Product("Product 1", 10.0);
        Product product2 = new Product("Product 2", 20.0);

        // Add products to shopping cart
        ShoppingCart cart = new ShoppingCart();
        cart.addProduct(product1);
        cart.addProduct(product2);

        // Create customer and place an order
        Customer customer = new Customer("John Doe");
        Order order = new Order(1, cart);
        customer.placeOrder(order);

        // Print order history
        System.out.println("Order history for " + customer.getName() + ":");
        for (Order o : customer.getOrderHistory()) {
            System.out.println("Order ID: " + o.getOrderId());
            System.out.println("Products:");
            for (Product p : o.getCart().getProducts()) {
                System.out.println("- " + p.getName() + ", $" + p.getPrice());
            }
            System.out.println("Total price: $" + o.getCart().getTotalPrice());
        }
    }
}
```

This program creates a simple e-commerce system with a product catalog, shopping cart, checkout process, and order history. The `main` method demonstrates how to create products, add them to the shopping cart, create a customer, place an order, and print the order history.

Please note that this is just a basic example of an e-commerce system, and it does not include features like user authentication, payment processing, or database storage.