переписал
<div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">jar</div></div><div class="sp-body"><div class="sp-content"><!--shcode--><pre><code class='java'>public static void main(String[] args) {
QApplication.initialize(args);
lb2 testlb2 = new lb2();
testlb2.show();
//QApplication.exec();
QApplication.setQuitOnLastWindowClosed(false);
}
public lb2() {
ui.setupUi(this);
run();
ui.textEdit.toPlainText();
}[/CODE]положил его в ext
перезапустил нотес и дизайнер
выполняю:
<div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">агент</div></div><div class="sp-body"><div class="sp-content">
Код:
import java.*;
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
lb2 lb= new lb2();
lb.show();
}
catch(Exception e) {
e.printStackTrace();
}
}
}
в консоли все тоже:
<div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">Exception in thread "AgentThread: JavaAgent" java.lang.ExceptionInInitializerError</div></div><div class="sp-body"><div class="sp-content"> at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:58)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:167)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:167)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:167)
at JavaAgent.NotesMain(JavaAgent.java:10)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at lotus.domino.NotesThread.run(Unknown Source)
Caused by: java.security.AccessControlException: Access denied (java.lang.RuntimePermission shutdownHooks)
at java.security.AccessController.checkPermission(AccessController.java:108)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at COM.ibm.JEmpower.applet.AppletSecurity.superDotCheckPermission(AppletSecurity.ja
va:1440)
at COM.ibm.JEmpower.applet.AppletSecurity.checkRuntimePermission(AppletSecurity.jav
a:1302)
at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1516)
at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1455)
at java.lang.Runtime.addShutdownHook(Runtime.java:203)
at com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:63)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
... 9 more
причем если в агенте сделать псевдо изменение (пробел сохранить) и запустить второй раз выдает уже:
<div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">Exception in thread "AgentThread: JavaAgent" java.lang.NoClassDefFoundError: lb2 (initialization failure)</div></div><div class="sp-body"><div class="sp-content"> at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
at JavaAgent.NotesMain(JavaAgent.java:10)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at lotus.domino.NotesThread.run(Unknown Source)и так до перезапуска дизайнера....