topcoder-moj icon indicating copy to clipboard operation
topcoder-moj copied to clipboard

Adding to classpath

Open cegprakash opened this issue 10 years ago • 1 comments

I just am trying to setup moj with Sublime text editor in Mac

Step 3 says "Add codeprocessor.jar, moj.jar and fileedit.jar to the classpath" How do I do that in a Mac machine? I tried CLASSPATH=$CLASSPATH:$JAR_PATH command for all 3 jars

Now echo $CLASSPATH shows screen shot 2015-02-20 at 3 02 24 am

If I try step4, I get an error as java.lang.InstantiationError: Cannot instantiate fileedit.EntryPoint.java.lang.ClassNotFoundException: fileedit.EntryPoint

screen shot 2015-02-20 at 2 58 48 am

cegprakash avatar Feb 19 '15 21:02 cegprakash

You shouldn't need to alter CLASSPATH. The configuration dialog before this one (where you add CodeProcessor as a plugin) has a class path field that you add FileEdit and moj to.

The CLASSPATH approach might work but you might need to specify absolute paths to the jars.

lovrop avatar Feb 26 '15 20:02 lovrop