It can be done in two ways:
1.Create your package in the same datastore, where you have your scripts.(File->New->Other->Java->Package).
2.Create the jar of your package and add it as the jar to your datastore.(Datastore Properties->Libraries tab).
CT, USA. Trust, but verify.
I can build and run my java code importing the package I have created. It all works using the CLASSPATH I have set in Windows. But I cannot get the same import to work in XDE Tester.
I am trying to create an external package that can be used for external coding and XDE Tester coding.
The problem was the root from where I built my jar. I built the jar from my class location and not the root of the package I was building it for.
Try the following:
Menu of XDE Tester-> Configure|Enable Enviroments.
Click the "Java Enviroments" tab.
Now, if you have your JRE already there - update the CP of it, if no - add the desired JRE, check that cp variable is what you need.
Java Enviroment: myApp
Classpath switch: -classpath D:\myjars\myjar.jar, <etc.>
And for sure, "Enable" your Java environment, and set it as default (to be on the save side ;-))
In some cases you need to move the jar files up in the library hierachy