Page 1 of 2 12 LastLast
Results 1 to 20 of 21
  1. #1
    funkygarzon is offline Senior Member
    Join Date
    Mar 2009
    Posts
    126
    Rep Power
    0

    Default 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:

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default

    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?

  3. #3
    funkygarzon is offline Senior Member
    Join Date
    Mar 2009
    Posts
    126
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    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?
    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

    Java Code:
    import lotus.domino.*;
    and No dude , it will read it from client ,

    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 :

    Java 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;
    please tell me the purpose of the above packages .. dude please please ...thanks in advance

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default

    it will read it from client
    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.

    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.

  5. #5
    funkygarzon is offline Senior Member
    Join Date
    Mar 2009
    Posts
    126
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    Drop the "dude". That is very old slang and with poor connotations ie it's rude.


    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.

    What I said in my first post was the I know somethings about how to use applets. I know NOTHING about lotus notes.
    sorry my dear friend i am extremely sorry i don't know "dude" is used for rude purpose sorry .

    yes of course , please tell me "what is giving permission to jar file that contains applet" ?

    thank you very much for the quick reply mate :)

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default

    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.

  7. #7
    funkygarzon is offline Senior Member
    Join Date
    Mar 2009
    Posts
    126
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    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.

    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
    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.
    Now i want to know the following thing to be learned and to be done from the above sentence:(

    1.
    Java Code:
    I've created an shared resource which is called "Gantt".
    what is shared resource ? is that folder he is mentioning ?

    2. how to create .jar files?

    3.
    Java Code:
    After this I created an Page with an included Java-Applet.
    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 you

    4.
    Java Code:
    I've added all three files to this Applet to the "Current Script Library Files".
    what is "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.

  8. #8
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default

    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.

  9. #9
    funkygarzon is offline Senior Member
    Join Date
    Mar 2009
    Posts
    126
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    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.
    thank you for the reply my friend ,
    please help me in the following things mate that is more than enough

    1. how to create jar file?
    thank you for your patients my friend :)

  10. #10
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default

    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

  11. #11
    funkygarzon is offline Senior Member
    Join Date
    Mar 2009
    Posts
    126
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    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:
    thank you ,
    sorry i am slightly confused ,i think you are telling in linux or some other unix operating system . I am in windows platform so please tell me commands in msdos mate .thank you :)

  12. #12
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default

    I'm on WinXP. All the commands are MSDOS batchfile commands. Copy the file to your computer as a .bat file and execute it.

  13. #13
    funkygarzon is offline Senior Member
    Join Date
    Mar 2009
    Posts
    126
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    I'm on WinXP. All the commands are MSDOS batchfile commands. Copy the file to your computer as a .bat file and execute it.
    oh ok mate thank you , i will do that .bat file and execute it and will come back mate :)
    Last edited by funkygarzon; 08-10-2010 at 09:32 PM.

  14. #14
    funkygarzon is offline Senior Member
    Join Date
    Mar 2009
    Posts
    126
    Rep Power
    0

    Default

    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 :)

  15. #15
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default

    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.

  16. #16
    funkygarzon is offline Senior Member
    Join Date
    Mar 2009
    Posts
    126
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    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.
    thank you mate let me do that and come back here :)
    Last edited by funkygarzon; 08-11-2010 at 04:24 PM.

  17. #17
    funkygarzon is offline Senior Member
    Join Date
    Mar 2009
    Posts
    126
    Rep Power
    0

    Default

    @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 advance
    Last edited by funkygarzon; 08-13-2010 at 06:03 AM.

  18. #18
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default

    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

  19. #19
    funkygarzon is offline Senior Member
    Join Date
    Mar 2009
    Posts
    126
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    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
    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:

  20. #20
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,458
    Rep Power
    25

    Default

    i don't know where to put this path to make the jar work
    Copy all of the jar files to one directory. Open a command prompt in that directory.
    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

Page 1 of 2 12 LastLast

Similar Threads

  1. Applet connecting to server
    By zenMarko in forum Java Applets
    Replies: 1
    Last Post: 11-15-2008, 04:32 PM
  2. Connecting database from Applet
    By Preethi in forum New To Java
    Replies: 5
    Last Post: 05-21-2008, 08:14 AM
  3. Form Notes
    By creel in forum Java Applets
    Replies: 0
    Last Post: 02-02-2008, 01:25 AM
  4. Replies: 0
    Last Post: 01-22-2008, 03:31 AM
  5. Connecting to DB from Applet
    By ibanez270dx in forum New To Java
    Replies: 1
    Last Post: 11-13-2007, 11:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •