callj

93 views
Skip to first unread message

StuartB

unread,
Sep 24, 2021, 11:25:40 AM9/24/21
to jBASE
Can someone point me in the right direction. I'm attempting to get a uuid using the java util class. I've tried a few different permutations. Just keep getting system(0) = 6 "Cannot find object constructor".

p = null
CALLJ "java.util.UUID","$randomUUID",p SETTING ret
CRT "out: ":SYSTEM(0), ret

out: 6  32768

Mvreply

unread,
Sep 24, 2021, 11:43:20 AM9/24/21
to jb...@googlegroups.com

Stuart,

There is a comprehensive example here, including troubleshooting tips, in case you have not seen it:

 

https://docs.zumasys.com/jbase/jbc/callj/

 

Mike

--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbase+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbase/8d646f77-755e-4f86-853c-8faeb97f0a83n%40googlegroups.com.

Jim Idle

unread,
Sep 27, 2021, 1:01:23 AM9/27/21
to jBASE
A bit overkill to call Java for a UUID - but I suspect that you have not declared an explicit constructor for the class, which leaves the default one generated by the compiler, which is not very accessible - add an explicit constructor.

If on Linux, you can just use EXECUTE:


Jim

Stuart Boydell

unread,
Sep 27, 2021, 6:43:26 PM9/27/21
to jb...@googlegroups.com
Thanks Jim, I just wanted to get a simple callj example working. I was looking at invoking a library for another application.
Apparently the return value needs to be a string so it won't work for the application. Cheers 

Stuart Boydell
Analyst/Programmer
Paperless Warehousing
+61 (2) 9795-2900
Unit C9, 391 Park Road, Regents Park, NSW, 2143
Discover why we're Australia's leading warehouse and logistics company
LinkedIn
Facebook
YouTube
🌲 Consider the environment. Do you really need to print this email?
Please consider the environment before printing this email. The information transmitted, including attachments, is intended only for the person(s) or entity to which it is addressed. If you receive this email in error please advise by return mail. You should not copy, use or disclose this email or its contents. Information may be subject to change without notice. See our privacy policy  here.


From: jb...@googlegroups.com <jb...@googlegroups.com> on behalf of Jim Idle <ji...@idle.ws>
Sent: Monday, September 27, 2021 3:01:07 PM
To: jBASE <jb...@googlegroups.com>
Subject: Re: callj
 
You received this message because you are subscribed to a topic in the Google Groups "jBASE" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jbase/tQZCIvMU5nI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jbase+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbase/CAGPPfg90eS5S%2BwjwhV5whmaH-8xiUz%3DuuLDpNBCH3uEw_OytbQ%40mail.gmail.com.

Jim Idle

unread,
Sep 27, 2021, 11:57:51 PM9/27/21
to jBASE
I see - yes, CALLJ was just meant to be a simple way to call simple methods, so it won't do anything too sophisticated. You can of course create a different class that calls the library and returns UUID as a string, but if you were just trying to get an example going, then the example page should do that for you :)

Reply all
Reply to author
Forward
0 new messages