Mario Verhaeg
Mario Verhaeg

Reputation: 5

Could not load lang::java::jdt::Java

When trying to import JAVA modules I receive an error:

// JAVA imports
import lang::java::jdt::Java;
import lang::java::jdt::JDT;
import lang::java::jdt::JavaADT;

Could not load lang::java::jdt::Java In the console:

rascal>import lang::java::jdt::Java;

|prompt:///|(0,29,<1,0>,<1,29>): Could not import module lang::java::jdt::Java: can not find in search path
Advice: |http://tutor.rascal-mpl.org/Errors/Static/ModuleImport/ModuleImport.html|

I'm using Eclipse and am trying to use the AstNode datatype. Any ideas?

Upvotes: 0

Views: 86

Answers (1)

Davy Landman
Davy Landman

Reputation: 15439

The JDT modules have been replaced a while back by the m3 model.

While they are a bit different, the AST part should be comparable. Check the m3 ast documentation and the Measuring java recipe.

Is this an old project you are trying to get up and running?

Upvotes: 1

Related Questions