Hi there!
We can use the following kinematic equation:

vf = final velocity (0 m/s at the top of the trajectory)
vi = initial velocity (at which it was thrown, ? m/s)
a = acceleration (due to gravity, 9.8 m/s²)
d = displacement of the javelin (100 m)
We can plug in the givens:

Take the square root to solve:
