# Generate Java models in an existing project

> Generate Java models in an existing project - Retrain legacy models for which you want to download
> Scoring Code.

This Markdown file sits beside the HTML page at the same path (with a `.md` suffix). It summarizes the topic and lists links for tools and LLM context.

Companion generated at `2026-04-24T16:03:56.622245+00:00` (UTC).

## Primary page

- [Generate Java models in an existing project](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/build-verify.html): Full documentation for this topic (HTML).

## Related documentation

- [Classic UI documentation](https://docs.datarobot.com/en/docs/classic-ui/index.html): Linked from this page.
- [Predictions](https://docs.datarobot.com/en/docs/classic-ui/predictions/index.html): Linked from this page.
- [Portable prediction methods](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/index.html): Linked from this page.
- [Scoring Code](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/index.html): Linked from this page.
- [Repository](https://docs.datarobot.com/en/docs/classic-ui/modeling/build-models/build-basic/repository.html): Linked from this page.

## Documentation content

# Generate Java models in an existing project

If you have projects that were created before the Scoring Code feature was enabled for your organization, you must retrain the models for which you want to download code. You do not need to recreate the entire project.

To retrain a model:

1. Click the checkbox at the left of the model to select it. Note the blueprint number (BPxx) as you will need this information later.
2. From the dropdown menu, selectDelete.
3. Open theRepositoryand search for a model with same blueprint number. Check the box to the left of the model to select it.
4. Set thevaluesand click theRun task(s)button.
5. When the model has finished training, return to the Leaderboard and enter the blueprint number in the search field.
6. Expand the model version with the SCORING CODEtag, navigate toPredict > Downloads, select a download option, and clickDownloadto access the scoring code.

> [!NOTE] Note
> A retrained model may have slightly different predictions than the original model due to the nature of the parameter initialization process used by machine learning algorithms.
