juninhopolo
New Member
Hey guys, here I am again after a long time without posting nothing.
Recently I came across with some features requests hoping to be able to solve them with 4gl code. I need to generate and manipulate .docx files and .xlsx files in progress 4gl but without using ActiveX / OCX (due to some specific vendor locking issues).
Doing some research I found that Open Edge can execute .NET (so far, nothing new), but expanding on that I found out that it can also execute java code (really?), something about Open Clients (I don't really know what it is). Since nowadays everyone uses AI, I used chatgpt with some prompts like "How to use java classes in progress 4gl?", "Is it possible to use java classes in progress 4gl?" and it gave to results along the lines of: "Yes, it is possible to use Java classes in Progress 4GL (OpenEdge ABL) via the Java Open Client or by using the Java Interface provided by OpenEdge.".
After spending some time playing with some prompts, it became clear that Open Client is something for APIs (i assume, correct if I'm wrong). But the "Java Interface" topic caught my eyes and I spend some more time with that.
A lot of prompts later, I could start to understand "how to do it". I'll summarize some key points gived to me by chatgpt: "Ensure the JVM is Configured (%DLC%/properties/java.properties)", "Add JAR Files to the OpenEdge Classpath", "Set the JAVA_HOME Environment Variable" and so on. It even gave to me some snippets to try, but nothing worked. Check it out:
Even this one, which is just...
Anyways, in summary, I was hopping to code those features with some Java Classes but in 4gl code. Is it possible or all that AI "research" is just AI hallucination?
Recently I came across with some features requests hoping to be able to solve them with 4gl code. I need to generate and manipulate .docx files and .xlsx files in progress 4gl but without using ActiveX / OCX (due to some specific vendor locking issues).
Doing some research I found that Open Edge can execute .NET (so far, nothing new), but expanding on that I found out that it can also execute java code (really?), something about Open Clients (I don't really know what it is). Since nowadays everyone uses AI, I used chatgpt with some prompts like "How to use java classes in progress 4gl?", "Is it possible to use java classes in progress 4gl?" and it gave to results along the lines of: "Yes, it is possible to use Java classes in Progress 4GL (OpenEdge ABL) via the Java Open Client or by using the Java Interface provided by OpenEdge.".
After spending some time playing with some prompts, it became clear that Open Client is something for APIs (i assume, correct if I'm wrong). But the "Java Interface" topic caught my eyes and I spend some more time with that.
A lot of prompts later, I could start to understand "how to do it". I'll summarize some key points gived to me by chatgpt: "Ensure the JVM is Configured (%DLC%/properties/java.properties)", "Add JAR Files to the OpenEdge Classpath", "Set the JAVA_HOME Environment Variable" and so on. It even gave to me some snippets to try, but nothing worked. Check it out:
Code:
USING java.lang.String.
DEFINE VARIABLE javaString AS CLASS java.lang.String NO-UNDO.
javaString = NEW java.lang.String("Hello from Java").
MESSAGE javaString:toString().
Code:
/* Define a variable of type java.lang.String */
DEFINE VARIABLE javaString AS CLASS java.lang.String NO-UNDO.
/* Create an instance of the Java String class */
ASSIGN javaString = NEW java.lang.String("Hello from Java in OpenEdge!").
MESSAGE javaString:toUpperCase() VIEW-AS ALERT-BOX INFO.
Even this one, which is just...
Code:
/* Import the java.lang.String class */
IMPORT java.lang.String.
/* Define a variable of type java.lang.String */
DEFINE VARIABLE javaString AS CLASS java.lang.String NO-UNDO.
/* Create an instance of the Java String class */
CREATE javaString.
ASSIGN javaString = NEW java.lang.String("Hello from Java in OpenEdge!").
MESSAGE javaString:toUpperCase() VIEW-AS ALERT-BOX INFO.
Anyways, in summary, I was hopping to code those features with some Java Classes but in 4gl code. Is it possible or all that AI "research" is just AI hallucination?