custom .jar creation, need to find references to org.joget.*

Confluence User - 11 Feb, 2021

I am trying to re-use a bunch of java/beanshell validator code across several forms and apps. so i created a .java file in visual studio code. with the intention of compiling it to a .jar with the javac command.

i have a set of  org.joget references that javac cannot find

for example

import org.joget. apps.app.service.AppUtil;

import org.joget.apps.form.model.Element;


i dont know where/what the classpath to the joget classes are located. I tried this on the joget web server but i have no clue where the classpath is OR do i even need the source code ?


Please advise.

forms;custom;validators

2


11 Feb, 2021
confluenceUser
confluenceUser

Yes, you do need the source code. Refer below step 6a.

Guideline for developing a plugin - Knowledge Base for DX 7 - Joget | COMMUNITY


13 Feb, 2021
confluenceUser
confluenceUser

I typically use maven to compile and have this dependency set in the pom.xml file

Maybe you should try to use maven?

<dependency>
            <groupId>org.joget</groupId>
            <artifactId>wflow-core</artifactId>
            <version>7.0-SNAPSHOT</version>
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>javax.servlet-api</artifactId>
                </exclusion>
            </exclusions>
            <scope>provided</scope>
        </dependency>

Otherwise, you can find the source code at https://github.com/jogetworkflow/jw-community/find/7.0-SNAPSHOT

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print