Skip to content

Non Maven Java project with Eclipse

benelog edited this page Jan 28, 2013 · 14 revisions

1. Check your Java version

  1. Make sure JRE version 1.6 or later is installed.
  2. Check settings in Eclipse 'Project > Properties > Java compiler'

2. Download

Download multiline-string-0.1.1.jar and save it on your local machine.

3. Add the jar file to Classpath

  1. Go to 'Project > Properties > Java Build path > Libraries'
  2. add 'multiline-string-0.1.1.jar' file by 'add JARS..' or 'add External JARs..' button.

4. Add the jar file to 'Factory Path'

  1. Go to 'Project > Properties > Java compiler > Annotation Processing > Factroy Path'
  2. add 'multiline-string-0.1.1.jar' file by 'add JARS..' or 'add External JARs..' button.

5. Check annotation processing options in Eclipse.

6. Test

import org.adrianwalker.multilinestring.Multiline;

public class Hello {

    /**
     Hello!
     Multiline-string!!
    */
    @Multiline private static String msg;

    public static void main(String[] args) {
        System.out.println(msg);
    }
}

Clone this wiki locally