Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Jar permanently on the client machine (Read 3261 times)
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Jar permanently on the client machine
Dec 10th, 2007 at 4:41am
Print Post  
Hi,

Is there any way I can make JDiagram.jar get permanently installed on the client side and I mention on every access to a diagramming page to point to that Jar?

I am interested in this because, there are different pages where I will be using JDiagram.jar. So, they have different URLs.

I don't want JDiagram it getting downloaded separately for each of these URLs.

Thanks,
Praveen
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Jar permanently on the client machine
Reply #1 - Dec 10th, 2007 at 6:53am
Print Post  
Hi,

Instead of having a different .jar copy for each of your pages, you could keep the .jar file in a shared location on your server and set the path to it in FlowChart.JarLocation. That will ensure that the JRE class loader will always use the cached version instead of downloading the .jar again.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Re: Jar permanently on the client machine
Reply #2 - Dec 17th, 2007 at 3:06am
Print Post  
Hi,

The jar can also be hosted from unrelated applications (different servers even). Can a copy of jar be kept on the client and I make all of these Jars point to that copy of the jar?

I don't mind using JDiagram.jar directly instead of NetDiagram, if it helps me in doing this.

Thanks,
Praveen
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Jar permanently on the client machine
Reply #3 - Dec 17th, 2007 at 7:32am
Print Post  
Hi,

If your clients have the jdiagram.jar available on the local system and it is in the Java CLASSPATH, then setting JarLocation to an empty string should make the Java class loader load the applet from the local system. You might have to create an installer that copies the JDiagram.jar somewhere locally and adds the .jar to the class path.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint