Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 3 of 3

Thread: How can I use java common class in JS in OVSC6.2

  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    7

    Default How can I use java common class in JS in OVSC6.2

    I want to write a javascript, and need to use some classes defined in Java.
    Such as I need to create a instance like this:

    Properties props = System.getProperties();

    But the system prompt error when I execute, saying like this:

    Process panel process.option in RAD display encountered error in line 4 (display,process.option)
    Cannot evaluate expression (display,process.option)
    Cannot evaluate expression (display,process.option)
    Compilation of JavaScript function or expression failed
    ^
    Properties props = System.getProperties();
    Script <UNKNOWN> line 7: ERROR SyntaxError: missing ; before statement at char 12


    What's wrong with this? Can any help? Thanks!

  2. #2
    Senior Member mateuszk's Avatar
    Join Date
    Nov 2006
    Posts
    302

    Default

    Not all the objects are available in SC implementation.

    Maybe try asking for advice on how to find specific system parameters in SC
    instead of shooting in the dark with JS.
    Please remember that JS is just an "add-on" layer for this server.

  3. #3
    Junior Member
    Join Date
    Nov 2006
    Posts
    20

    Default

    SM support JavaScript, you are Typing Java Code in it.
    Java and JavaScript are totally different, world aparts languages like C++ vs Cobol

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts