1
0
-1

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.

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      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

        CommentAdd your comment...
      1.  
        1
        0
        -1

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

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


          CommentAdd your comment...