The speed of light is 299792.458km/s so according to a quick Google search it takes 4.28x10^17J to accelerate 1kg to 0.98c.
If you can maintain a constant 1g of acceleration, you'd get to ~0.99c in approximately 1 year -- but you need to carry/provide the energy to fuel whatever propulsion system you're using and the amount of fuel needed to maintain that 1g of acceleration increases as you get closer to c.
[0] https://en.wikipedia.org/wiki/Ion_thruster
[1] https://en.wikipedia.org/wiki/Solar_sail