I am writing a Java script library and every time I make a change, I have to restart Notes to have the changes take affect. This is the first time I’m using Java in Notes. I know in older versions, you could recompile all script to force all the elements to see the changes in the script libraries, but I can’t find that option in 8.5.1.
This is frustrating since I am trying to debug and an making minor changes each time.
I’ve tried searching this forum, but haven’t been able to find anything.
Thanks,
Chris
Subject: Thank you for the feedback… Some questions
Thanks for the feedback. I request for some more information to reproduce the issue.
It would be helpful if you could provide the details steps how you perfom “recompile all” with Java scripts. Please provide the steps and expected outcome which is leading to error.
Subject: Recompile
I know lotus script libraries have the recompile all lotusscript under the tools menu. I was wondering if there was something like this for the java.
When I make changes to my java code, I have to restart Notes for the changes to take affect.
Thanks, Chris
Subject: Sadly there no “recompile all” for Java…
-
In a normal Eclipse environment, “Clean” followed by “Build” would perform this function.
-
Via PMR Lotus has explicitly indicated that “Clean” in DDE does not in fact clean at all, so the normal route to a full rebuild in Java is closed. There is supposed to be an SPR in for it, but that doesn’t mean this defect will be corrected, if Lotus should decree “it is working as designed”. How “Clean” can be designed to not clean is a real head-scratcher, but there it is.
-
If this information should be incorrect, I would be ecstatic to hear it, because I want to do exactly the same thing … force a full rebuild on Java … and XPages automagic generated code, which is also Java.
Hope this helps…
Subject: Need more information…
It would be great if you could let us know is steps wise details scenario in which you need to restart Notes to take effect on any changes to Java script library. It should not be the case and would be helpful to know the illustrated scenario.
Thanks
-santosh
Subject: Recompile Java Script library
When I make a change to a Java script library (not a Javascript library), the calling code doesn’t see the changes when run in the client.
I have a document with a button that calls the code in the library. I make the change in the script library (like adding a System.out.println()). To test the change, I create a new document and click the button. The new code is not executed - the old is. I have even tried to back completely out of the database in both the client and designer. The only way I can get it to use the new code in the script library is to close both designer and the client and restart.
This is frustrating when trying to debug and I’m just adding and removing output lines.
Thanks,
Chris
Subject: same here
I use a lots of different Java libraries inside Lotus Notes applications and these constant restarts are really time consuming… and frustrating