Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

jar files and/or Java-scripts can or can’t ....

Featured Replies

Hi Jesse,

First of all I am not so familiar with Java or Java-Scripts but i use some Javascript thru html and web-viewer and yesterday I download your very good Plug in Scriptmaster :worship: which have lot of helps in filemaker, bit I have a few questions about ScriptMaster :(

Is it possible to implement JavaScript in, to get some result form Javascript?

How to implement some other Jar files to ScriptMaster, because lot of nice Jar free files can be found and be useful ?

I found for me very useful example: [color:red]joda-time-1.4 jar http://joda-time.sourceforge.net/ with which is very easy to get lot info for Date, time, Time zones

or

[color:red]arcclock-1.3. jar with very interesting clock http://kryshen.pp.ru/applets/

I download jar’s and try to use/implement some functions bat that doesn't work.

Can You give as more info haw to implement jar files in ScriptMaster and [color:red]can or can’t we use or how be able to use [color:red]Javascript in ScriptMaster:

Tanks in advance

Ino

We plan to implement Javascript support in a later version of ScriptMaster. I'm not sure when that will make it into the release, however.

You can use the SMLoadJar function http://360works.com/plugins/SCRIPTMASTERPLUGIN/documentation.html#SMLoadJar to load the contents of a .jar file from either a container field or URL. You only need to do this once at application startup. Then your script can reference the classes in the .jar file. You still need to use an import statement to load the items.

If you come up with an example using jodatime, please send it over, and we'll include it on the list of examples that comes with ScriptMaster!

  • Author

Thanks a lot

Ino

  • 8 years later...
  • Newbies

Hi

I have a jar file I can run from line command: java -jar NeoFirma.jat param1 param2 param3 param 4

Is there a way to run it with SMLoadJar?

The jar is uploaded but I get this error when setting EvaluateGroovy: java.lang.UnsupportedClassVersionError: neofirma/Signer : Unsupported major.minor version 51.0

neofirma.Signer is the class where the main procedure is allocated.

The jar runs perfectly on my machine (OS X) so there should be no issue with java version.

Thanks

AM

 

The jar runs perfectly on my machine (OS X) so there should be no issue with java version.

 

not a true affirmation

On Mac the Java version is only 1.6 so this is an issue that might be expected if it is compiled with a later version...

  • 3 months later...
  • Newbies

Yes! I have recompiled my jar library to jdk 6 and it worked!!

Thanks

AM

Edited by Alex Moya

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.