1. Gregory Rusak
  2. PowerBuilder
  3. Tuesday, 23 April 2024 23:01 PM UTC

Hello,

Now that Java (and JDK 1.6 support) has been discontinued in PowerBuilder 2022. What are our alternatives to calling Java Classes from a PowerBuilder application?

We have one component in our application that creates the Java Virtual Machine, instantiates the Java Proxy Objects, then calls the methods provided in the Java classes similar to the following:

So what can be done to support this going forward?

As always, your help with this is greatly appreciated.

Kind Regards,

Greg

Bruce Armstrong Accepted Answer Pending Moderation
  1. Wednesday, 24 April 2024 20:38 PM UTC
  2. PowerBuilder
  3. # 1

In the short term you might see if you can create a .Net assembly that calls the java methods and then import that to PowerBuilder:

https://github.com/masesgroup/JNet

In the longer term you might want to look at replacing the java objects with .Net objects entirely.

Comment
  1. David Peace (Powersoft)
  2. Thursday, 25 April 2024 15:22 PM UTC
Agreed, we actually redeveloed the JAVA logic in PB. The reason for using JAVA was no longer valid as PB can do so uch more now.
  1. Helpful 1
There are no comments made yet.
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Thursday, 25 April 2024 11:27 AM UTC
  2. PowerBuilder
  3. # 2

Check whether Run command is of any use in your case.

You can also try Roland's RunandWait utility, if required.

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.