You need the JDK, the Java Development Kit, to run a RuneScape private server.
The distinction matters because most people have the JRE, the runtime, already installed for browsing. The JDK is the fuller package and includes the compiler that server files require.