Results 1 to 20 of 21
- 08-10-2010, 08:14 AM #1
Senior Member
- Join Date
- Mar 2009
- Posts
- 126
- Rep Power
- 0
hi guys help me in connecting lotus notes with applet
hi guys ,
please help me , i know you are all expert and can help me
i have one incomplete project which deals with the java applet connecting with IBM lotus notes ,the main aim of this project is to display gantt chart using Jfreechart when we open the Lotus notes document .
now i have a incomplete java applet this should be used in IBM Lotus notes client,so i want to know
1. how to compile a "java applet code" and to see the result of applet in lotus notes client ?
can any one please give me idea how to do this in effective best manner ....please please help me . :confused::confused::confused:
- 08-10-2010, 02:04 PM #2
I assume that you have a package(s) to read and display the contents of a lotus notes file.
So I'll address the use of applets.
How will the applet get the lotus notes file? Will it be reading it from a server?
- 08-10-2010, 05:16 PM #3
Senior Member
- Join Date
- Mar 2009
- Posts
- 126
- Rep Power
- 0
thank you very much for your reply dude ,
Actually sorry i am weak in english , i couldn't get you exactly :(
Upto my understanding on your reply , yes there is some package to read and display the contents
and No dude , it will read it from client ,Java Code:import lotus.domino.*;
The main purpose of this project is to make the applet to display Gantt chart for the Lotus notes client by using jfreechart . I hope you will clearly understand now mate .
please see bellow for the packages used in this applet :
please tell me the purpose of the above packages .. dude please please ...thanks in advanceJava Code:import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.text.DateFormat; import java.util.Calendar; import java.util.Date; import java.util.Vector; import javax.swing.*; import lotus.domino.*; import org.jfree.chart.*; import org.jfree.chart.axis.CategoryAxis; import org.jfree.chart.axis.DateAxis; import org.jfree.chart.labels.IntervalCategoryToolTipGenerator; import org.jfree.chart.labels.StandardCategoryToolTipGenerator; import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.renderer.category.CategoryItemRenderer; import org.jfree.chart.renderer.category.GanttRenderer; import org.jfree.chart.urls.StandardCategoryURLGenerator; import org.jfree.data.category.CategoryDataset; import org.jfree.data.category.IntervalCategoryDataset; import org.jfree.data.gantt.Task; import org.jfree.data.gantt.TaskSeries; import org.jfree.data.gantt.TaskSeriesCollection; import org.jfree.data.time.SimpleTimePeriod;
- 08-10-2010, 05:39 PM #4
Applets are not allowed to read files from a client's disk without permission. Giving permission requires signing the jar file the applet is in.it will read it from client
What I said in my first post was the I know somethings about how to use applets. I know NOTHING about lotus notes.Last edited by Norm; 08-13-2010 at 07:28 PM.
- 08-10-2010, 05:54 PM #5
Senior Member
- Join Date
- Mar 2009
- Posts
- 126
- Rep Power
- 0
- 08-10-2010, 06:03 PM #6
Why do you want to use an applet for this application if you want to read a file from the user's disk. Applets require permission to read from a user's disk. There is a discussion in the Java Tutorial about Applets and how to give it permission. More than can be discussed here if you don't know anything about it.
An application does not require permission.
- 08-10-2010, 06:54 PM #7
Senior Member
- Join Date
- Mar 2009
- Posts
- 126
- Rep Power
- 0
thank you my friend,
I will clearly explain you what is the thing i wanted to learn my friend ,
Actually one guy in net have done this connecting lotus notes with java applet and he tells how he did it , but i couldn't able to understand it , below i have coded his speech please read it and see my question below
Now i want to know the following thing to be learned and to be done from the above sentence:(Java Code:I've created an shared resource which is called "Gantt". In this resource are three jar files: 1.) LNGantt.jar (My Jar with my classes) 2.) jfreechart-1.0.6.jar 3.) jcommon-1.0.10.jar After this I created an Page with an included Java-Applet. I've added all three files to this Applet to the "Current Script Library Files". The last thing I did was to name the class which has to be executed (Gantt). When I start the preview in default browser (Firefox) it works. Also in IE.
1.what is shared resource ? is that folder he is mentioning ?Java Code:I've created an shared resource which is called "Gantt".
2. how to create .jar files?
3.this line he tells about creating a html page, so this is clearly instructed in our Applet tutorial in our java tutorial section so no problem i will do it . thank youJava Code:After this I created an Page with an included Java-Applet.
4.what is "Current Script Library Files"?Java Code:I've added all three files to this Applet to the "Current Script Library Files".
sorry i know this will be the most newbie question in the internet history sorry ..Last edited by funkygarzon; 08-10-2010 at 07:44 PM.
- 08-10-2010, 07:45 PM #8
Sorry, I don't know anything about Lotus notes and the list of jar files you posted.
I have no idea what "Current Script Library Files" is.
- 08-10-2010, 07:52 PM #9
Senior Member
- Join Date
- Mar 2009
- Posts
- 126
- Rep Power
- 0
- 08-10-2010, 07:56 PM #10
Use the jar tool that comes with the JDK. Its use is documented in the API doc.
Here's a sample usage I have in a batch file:
@Rem Create the TestJar.jar file:
SET JarName=TestJar.jar
jar -cf %JarName% AppletTest2*.class
ECHO ---- Created: %JarName% ----
MORE
- 08-10-2010, 08:15 PM #11
Senior Member
- Join Date
- Mar 2009
- Posts
- 126
- Rep Power
- 0
- 08-10-2010, 08:20 PM #12
I'm on WinXP. All the commands are MSDOS batchfile commands. Copy the file to your computer as a .bat file and execute it.
- 08-10-2010, 09:28 PM #13
Senior Member
- Join Date
- Mar 2009
- Posts
- 126
- Rep Power
- 0
- 08-11-2010, 06:39 AM #14
Senior Member
- Join Date
- Mar 2009
- Posts
- 126
- Rep Power
- 0
Now please help me in applet mate , I have one applet program i wanted to run it and check its result on firefox or IE , can you please tell me how to compile and run the applet program mate ? please .thank you sir :)
- 08-11-2010, 02:56 PM #15
Use the javac command to compile the program. It will create .class files.
Create an HTML file with an <APPLET tag in the same folder with the class files.
Open that HTML file in a browser.
- 08-11-2010, 04:21 PM #16
Senior Member
- Join Date
- Mar 2009
- Posts
- 126
- Rep Power
- 0
- 08-13-2010, 05:33 AM #17
Senior Member
- Join Date
- Mar 2009
- Posts
- 126
- Rep Power
- 0
@Norm ,
my dear friend there is a big problem here in my applet , i think i have to run it in some IDE because many function in my applet is using "Jfreechart " which is used to give the pie chart ,GANTT chart ext when the applet is executed .But now it is showing me error in "jfreechart" when i simply compile my applet , so i think i have to use some IDE and i have to include this "Jfreechart" ,
so please tell me how to include this "Jfreechart" into my applet using some IDE particularly in "NETBEAN IDE OR ECLIPSE" ..please help me mate ...thanks in advanceLast edited by funkygarzon; 08-13-2010 at 06:03 AM.
- 08-13-2010, 12:56 PM #18
Sorry, I don't know how to use any of those IDEs.
To add jar libraries to a compile, use the javac's -classpath option:
javac -classpath library1.jar;lib2.jar;lib3.jar ssource.java
- 08-13-2010, 03:48 PM #19
Senior Member
- Join Date
- Mar 2009
- Posts
- 126
- Rep Power
- 0
thank you very much for your useful information mate , i hope it will surely help me in this problem mate . But the thing is i don't know where to put this path to make the jar work , so please please guide me with some example to put this path mate . thank you hope you understand me mate ....:confused:
- 08-13-2010, 04:41 PM #20
Copy all of the jar files to one directory. Open a command prompt in that directory.i don't know where to put this path to make the jar work
Then issue the following kind of javac command, replacing ALL of my jar names with the names of your jar files:
javac -classpath library1.jar;lib2.jar;lib3.jar YOUR_Source.java
Similar Threads
-
Applet connecting to server
By zenMarko in forum Java AppletsReplies: 1Last Post: 11-15-2008, 04:32 PM -
Connecting database from Applet
By Preethi in forum New To JavaReplies: 5Last Post: 05-21-2008, 08:14 AM -
Form Notes
By creel in forum Java AppletsReplies: 0Last Post: 02-02-2008, 01:25 AM -
How to create Lotus Notes controlled-access using java?
By menes in forum New To JavaReplies: 0Last Post: 01-22-2008, 03:31 AM -
Connecting to DB from Applet
By ibanez270dx in forum New To JavaReplies: 1Last Post: 11-13-2007, 11:51 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks