Reverse engineering using "String"
|Status:||Resolved||Start date:||05 September 2016|
|Assignee:||Christophe Demeulemeester||% Done:|
Hi, I’m trying a basic example where I create a class with a string attribute. The code generation works well. However when I modify the code (making the attribute public, for example), I get an error message “Type not found: String”. I noticed that in the model the type is written with a small “s”–“string” and in the code with a capital “S”–“String”, but I guess there must be a wrapper to handle this. Could you please help me to fixe that. Note that I’m using the 3.4 version of Modelio. Thanks
#1 Updated by Christophe Demeulemeester almost 2 years ago
- File AccessibleClasses.png added
- File AccessibleClassesCommand.png added
- File JDK.png added
- Status changed from New to Resolved
- Assignee set to Christophe Demeulemeester
- % Done changed from 0 to 50
This happens because either the ‘JDK’ parameter value of the Java Designer module is wrong, or if the ‘Accessibles classes’ does not point to the ‘rt.jar’ of the JDK.
To configure the JDK, go to ‘Configuration\Modules\Java Designer\Directories\JDK’ parameters and give your actual JDK path :
To set the ‘rt.jar’ in the ‘Accessibles classes’, select the root package of your project and launch the ‘Java Designer\Configuration\Edit accessible classes’ command :
This will solve your problem.
Best regards, cde.