Delving into Java a little bit more....
This week I've been delving more into Java to determine what benefits it will provide me on the Lotus Notes development side. I've wrote about doing this a few times in the past but never really pursued it. I think I haven't pursued it becauase there really isn't a lot so far that I can do with Java that I can't do with LotusScript and plust I haven't really had a need for Java until a couple of weeks ago. But I would like to start using it more to widen the possibilities a little. I wrote about a Java agent to lookup the sAMAccountName in active directory a couple of weeks ago which was a good start at using Java a little bit more. Also today I dug out the sample database and slides from the LotusPhere 2006 Java Jumpstart session presented by Julian Robichaux and Thomas Duff to come up with some statistics reporting for an application that was wanting a couple of charts. I think this just goes to show what kind of information gets put out at sessions like these especially being that it is still very relevant today.
I've been using the Eclipse IDE with the Domiclipse plug-in. I really like this setup but when you start having to use Java Libraries it doesn't bring that import over into Domino. It includes an import statement in the code, but that doesn't work, you've got to click the "Edit Project" button in Domino Designer and point it to the Java Library. That's really no biggie but for someone just starting that's kind-of confusing.
So hopefully I will start to find more uses for Java in my day to day duties as so far I really like coding it. But the biggest problem is I don't know yet just when it "should" be used and when it "shouldn't" be used. Also, I'm not sure of my capabilities of adding useful features to the applications I develop using Java. Such as... Can you do ABC with this new application? I can't do it with LotusScript but can I do it with Java??? I don't know, but we'll find out I guess.
So, I know I've been rambling on now, so hopefully I'll start progressing more and more with Java and it'll become a useful part of my developer toolbox. I look forward to learning more about it.
Keith











Comments
Posted by Kevin Pettitt At 10:29:53 PM On 08/25/2007 | - Website - |
I guess I'll figure this out with time after I've been using it for awhile. But for now that seems to be the most difficult part for me.
Posted by Keith Strickland At 03:46:22 PM On 08/26/2007 | - Website - |
I don't quite get your solution. Would you mind a bit more detail?
Posted by simon boulton At 12:18:59 PM On 09/03/2007 | - Website - |
If you create a Java Agent in domino designer, at the bottom of the screen is a button called "Edit Project" here you can define additional JAR files, graphics files, etc. or pick a Java Library that resides within the database (same place as a LotusScript Library).
HTH
Keith
Posted by Keith Strickland At 12:49:48 PM On 09/03/2007 | - Website - |
Posted by simon boulton At 08:37:10 AM On 09/04/2007 | - Website - |
{ Link }
Posted by simon boulton At 08:56:29 AM On 09/04/2007 | - Website - |
From what I can figure out, the reason why it won't compile sometimes is because if you look at the very top of the agent while it's open in designer (before you import from Eclipse) there is a little gray bar that has the name of the class (I think, not sure) but at this point it's named "- JavaAgent.java". Once the import from Eclipse happens it's named "- agent/AgentName/JavaAgent.Java". This is the only thing I can gather as to why it won't compile. Also, if there are any import statements for Java Libraries, you need to remove those and instead use the "Edit Project" button to include those Java Libraries.
Oh yeah, one more thing, you also need to define any special JAR/Image/Sound/etc. files here also that you may have defined in Eclipse and was included in an import statement or some other way.
Sorry I can't be of more help as I've been developing in Java now off and on for about a month, so I'm by no means the source on this stuff. Also, try looking at the domiclipse forums { Link } you can post questions there and Keith Smillie seems to check the questions pretty regularly and provide answers if he can.
Keith
Posted by Keith Strickland At 09:04:03 AM On 09/04/2007 | - Website - |