You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/refguide/java-programming/using-eclipse.md
+20-15Lines changed: 20 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,52 +4,57 @@ url: /refguide/using-eclipse/
4
4
weight: 2
5
5
category: "Java Programming"
6
6
description: "Describes how to set up Eclipse, and how to add a Mendix application to Eclipse and launch it."
7
-
tags: ["studio pro"]
7
+
tags: ["studio pro", "Java", IDE"]
8
8
---
9
9
10
10
## 1 Introduction
11
11
12
-
You can use Eclipse to write and debug Java actions in your Mendix app. When the Mendix model is deployed, an Eclipse project file, classpath file, and launch configuration are generated.
12
+
You can use [Eclipse IDE for Java Developers](https://eclipseide.org/)to write and debug Java actions in your Mendix app.
13
13
14
-
## 2 Setting Up Eclipse
14
+
## 2 Deploy For Eclipse
15
15
16
-
In Mendix, all text is saved in UTF-8 encoding. To make sure your source code is also saved in UTF-8, do the following:
16
+
To use Eclipse, you first need to set up your app so that Eclipse recognizes it.
17
+
18
+
In Studio Pro, open the Mendix app containing the Java actions you want to edit. Select **App > Deploy for Eclipse** to generate the necessary files for Eclipse to recognize the App directory as a Java project. This generates the Eclipse project file, classpath file, and launch configuration.
19
+
20
+
## 3 Setting Up Eclipse
21
+
22
+
In Mendix, all text is saved in UTF-8 encoding. To make sure your source code is also saved in UTF-8, do the following in Eclipse:
You should also have a Java Development Kit (JDK) installed and selected.
30
+
You must also have a Java Development Kit (JDK) installed and selected. Make sure to add a JDK under **Installed JREs** and select it as the default in Eclipse.
25
31
26
32
{{< figure src="/attachments/refguide/java-programming/using-eclipse/eclipse-jdk.png" alt="Selecting a default JDK" >}}
27
33
28
-
Make sure to add a JDK and select it as the default in Eclipse.
29
-
30
-
## 3 Adding a Mendix App
34
+
## 4 Adding a Mendix App
31
35
32
-
To add a Mendix app to Eclipse, do the following:
36
+
To add a Mendix app to Eclipse, do the following in Eclipse:
33
37
34
38
1. Select **File > Import**.
35
-
2. Open the **General** folder, select **Existing Projects into Workspace** and select**Next >**:
39
+
2. Open the **General** folder, select **Existing Projects into Workspace** and click**Next >**:
After you have launched the application, the **M2EE Admin Console** will appear. This is the same console as you would normally see in Mendix Studio Pro, if you would run the application from there. You can stop your application by closing the console.
58
+
After you have launched the application, the **M2EE Admin Console** will appear. This is the same console as you would normally see in Mendix Studio Pro, if you had run the application from there. You can stop your application by closing the console.
Copy file name to clipboardExpand all lines: content/en/docs/refguide/modeling/menus/app-menu/_index.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,8 @@ The **Deploy for Eclipse** option deploys the app to the deployment directory. T
58
58
59
59
Shortcut key: <kbd>F6</kbd>
60
60
61
+
For more information on how write Java actions from Eclipse, see [Using Eclipse](/refguide/using-eclipse/).
62
+
61
63
## 6 Create Deployment Package{#create-package}
62
64
63
65
The **Create Deployment Package** option creates a Mendix Deployment Archive package (*.mda*) that contains all necessary files to run the app. This can be used if you want to deploy your app on a Windows server or on a custom Mendix Cloud.
0 commit comments