Skip to main content

[Migrated content. Thread originally posted on 22 February 2011]

As I'm close to understand, I can't use inheritance or instantation of a COBOL class in Eclipse (clausule 'type') because these characteristics belong to managed code. I'll need to write the program using Visual Studio. Is it rigth?

[Migrated content. Thread originally posted on 22 February 2011]

As I'm close to understand, I can't use inheritance or instantation of a COBOL class in Eclipse (clausule 'type') because these characteristics belong to managed code. I'll need to write the program using Visual Studio. Is it rigth?
No that's not true.

The OO syntax for COBOL is supported in both Eclipse and Visual Studio versions of Visual COBOL.
You can create instances of COBOL classes in both native and managed code products on both platforms.

The real difference between the Visual Studio and Eclipse versions are that in Visual Studio the managed code is integrated with the .NET Framework classes and run under the CLR and in Eclipse managed code runs under control of the Java JVM.

Native Windows applications can be developed in both Visual Studio and Eclipse and you can create OO COBOL programs, that do not integrate with .NET or JVM.

The real choice would be whether or not you wish to develop for .NET or JVM.
If you wish to develop native applications then the IDE you choose should be the one you feel most comfortable with.

The Eclipse IDE is also used for development of Unix/Linux applications.

[Migrated content. Thread originally posted on 22 February 2011]

As I'm close to understand, I can't use inheritance or instantation of a COBOL class in Eclipse (clausule 'type') because these characteristics belong to managed code. I'll need to write the program using Visual Studio. Is it rigth?
Ok. The point is that I'm a bit confused because I'm trying to copy these examples in Eclipse, and they doesn't work:

Polymorphism

If I point the mouse over the word "type", in this sentence:

class-id Wolf inherits type Dog.

"COBCH08145 Feature not supported"

[Migrated content. Thread originally posted on 22 February 2011]

As I'm close to understand, I can't use inheritance or instantation of a COBOL class in Eclipse (clausule 'type') because these characteristics belong to managed code. I'll need to write the program using Visual Studio. Is it rigth?
There is a difference in the syntax support for OO COBOL between native and managed projects.
The "type" keyword is not supported in native projects.

In order to run the demo that you specified in Eclipse you need to use a COBOL JVM project instead of native.

native COBOL projects support the older OO syntax constructs that were available in Net Express.

[Migrated content. Thread originally posted on 22 February 2011]

As I'm close to understand, I can't use inheritance or instantation of a COBOL class in Eclipse (clausule 'type') because these characteristics belong to managed code. I'll need to write the program using Visual Studio. Is it rigth?
The point is that I'm not able to create a JVM project. I've been searching in your site how to do it, and finally I found it: Create a JVM Project.

But, in my case, the option doesn't appears. I only can see:

COBOL Project
COBOL Remove Project
Project
COBOL Program
COBOL Copybook
Folder
File
Example
Other

[Migrated content. Thread originally posted on 22 February 2011]

As I'm close to understand, I can't use inheritance or instantation of a COBOL class in Eclipse (clausule 'type') because these characteristics belong to managed code. I'll need to write the program using Visual Studio. Is it rigth?
The COBOL JVM option is currently an add-on that needs to be installed separately.

The instructions from the readme file are as follows:

Installing COBOL JVM Support

The COBOL JVM support is supplied with Visual COBOL R3 as a Technical Preview, in order to test the product with real customer code before making it generally available. The core compiler and runtime are supported but not for production deployments. The developer experience, in particular debugging, is still under development - for example the core debugging features in Eclipse are present but there are some restrictions when debugging a COBOL JVM application.

The COBOL JVM integration with Eclipse requires the use of third party components. Follow the steps below to install the plug-ins and configure Eclipse. An internet connection is required to access the third party component sites, and some of the steps will take a few seconds or minutes depending on the speed of your internet connection.


1. Start Eclipse and select Help > Install New Software.

2. Click Add.

3. Enter AspectJ in the Name box and download.eclipse.org/.../ in the Add Repository box.

4. Click OK.

5. Under Other AJDT Tools select Equinox Weaving SDK.

6. Click Next, Next, accept the end user license agreement, and then click Finish. You are then prompted to restart Eclipse to finish installing the AspectJ development tools.

7. Restart Eclipse and select Help > Install New Software.

8. Click Add.

9. Enter MFJVM in the Name box, click Local, and browse to the UpdateSite-JVM folder in your Visual COBOL installation. By default, this will be C:\\Program Files\\Micro Focus\\Visual COBOL 2010\\UpdateSite-JVM.

10. Select Micro Focus COBOL and click OK.

11. Click Next, Next, accept the end user license agreement, and then click Finish. You are then prompted to restart Eclipse to finish installing the AspectJ development tools.

12. Eclipse will prompt you to restart again,

13. Select Window > Preferences > JDT Weaving.

14. Click Click to ENABLE and restart Eclipse.

You can now create a new COBOL JVM project by selecting File > New > Other > Micro Focus COBOL > COBOL JVM Project.

If you are in the COBOL perspective and the COBOL JVM Project menu option is not available, you must reset it:
1. Right-click on the COBOL perspective button.
2. Choose Reset.

Note:

Visual COBOL for Eclipse installs the COBOL JVM runtime with a 30-day trial license on your machine. Though you license Visual COBOL, you might still receive the licensing authorization dialog when using COBOL JVM within the 30-day trial period. This is an issue with the JVM runtime but you will be able to work with COBOL JVM projects.

The dialog will stop appearing after you install the full license for COBOL JVM.

On 64-bit machines you can compile COBOL JVM applications only from the command line using jvmgen. In addition, JAVA_HOME must be set to the installation directory of the 64-bit JDK.

[Migrated content. Thread originally posted on 22 February 2011]

As I'm close to understand, I can't use inheritance or instantation of a COBOL class in Eclipse (clausule 'type') because these characteristics belong to managed code. I'll need to write the program using Visual Studio. Is it rigth?
Now is working fine. Thanks.

[Migrated content. Thread originally posted on 22 February 2011]

As I'm close to understand, I can't use inheritance or instantation of a COBOL class in Eclipse (clausule 'type') because these characteristics belong to managed code. I'll need to write the program using Visual Studio. Is it rigth?
Now is working fine. Thanks.

[Migrated content. Thread originally posted on 22 February 2011]

As I'm close to understand, I can't use inheritance or instantation of a COBOL class in Eclipse (clausule 'type') because these characteristics belong to managed code. I'll need to write the program using Visual Studio. Is it rigth?
Now is working fine. Thanks.