Orbit Propagation 101

I am trying to run the first orbit propagation example. I am using the IntelliJ IDE. IntelliJ told me to make local variables private, so I did. For the life of me, I can’t figure out why the IDE is complaining on my call to slave mode. Any ideas?

================= code ============================
private Frame inertialFrame = FramesFactory.getEME2000();
private TimeScale utc;
private AbsoluteDate initialDate = new AbsoluteDate(2004, 1, 1, 23, 30, 00.000, utc);

private double mu = 3.986004415e+14;

private double a = 24396159; // semi major axis in meters
private double e = 0.72831215; // eccentricity
private double i = FastMath.toRadians(7); // inclination
private double omega = FastMath.toRadians(180); // perigee argument
private double raan = FastMath.toRadians(261); // right ascension of ascending node
private double lM = 0;

private KeplerianOrbit initialOrbit = new KeplerianOrbit(a, e, i, omega, raan, lM, MEAN, inertialFrame, initialDate, mu);

private KeplerianOrbit initialOrbit = new KeplerianOrbit(a, e, i, omega, raan, lM, MEAN, inertialFrame, initialDate, mu);

private KeplerianPropagator kepler = new KeplerianPropagator(initialOrbit);

kepler.setSlaveMode();

Could you post a full, runnable example. What is the specific error you see?

It is invalid to declare local variables as private. Check that your code is inside a method.