小编Анд*_*кий的帖子

导入Java库并通过Lotus Script和SSJS调用其类

有一个java语言的库,它需要用Lotus Script和SSJS来调用.通过Lotus Script,库的脚本运行没有问题,但是不可能在SSJS上调用它.

Java库:

public class Untitled { 

  public int add(int a, int b) { return a + b; }
  public int div(int a, int b) { return a / b; }
  public int mul(int a, int b) { return a * b; }
  public int sub(int a, int b) { return a - b; }
  public String dummy() {return "42"; }
}
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

Lotus Script

Option Declare
Uselsx "*javacon"
Use "one"

Dim myClass As JavaClass
Dim calculator As JavaObject
Dim …
Run Code Online (Sandbox Code Playgroud)

java lotus-notes xpages xpages-ssjs domino-designer-eclipse

1
推荐指数
1
解决办法
347
查看次数

How to run nhttp.exe with password?

我想创建.bat文件,必须调用nhttp.exe并在该.exe文件中输入我的密码。但是没有人命令对我不起作用。

nhttp.exe 'my-pass'
nhttp.exe|'my-pass'
'my-pass'|nhttp.exe
nhttp.exe<fileWithpass.txt

[2388:0002-4180] The ID file being used is: C:\Program Files 
(x86)\IBM\Notes\myFileId.id 
[2388:0002-4180] Enter password (press the Esc key to abort):
Run Code Online (Sandbox Code Playgroud)

lotus-domino xpages

0
推荐指数
1
解决办法
70
查看次数