Where should applet files be placed

LabKey Support Forum
Where should applet files be placed pdogra  2012-04-19 16:29
Status: Closed
 
Hi,

I have setup Labkey on a Windows XP machine and using Labkey version 11.3. I have uploaded my data and I have created a Javascript view that basically adds an applet to the HTML page. The applet that I want to display is the JavaTreeView applet. I have placed the applet .jar files in the <tomcat_home>/server/lib but I get an error that the .jar files and the applet class are not found. I am new to labkey and can't figure out where I should put these files so that they are accessible? Any help would be very much appreciated!

Thanks!
 
 
Matthew Bellew responded:  2012-04-19 18:07
Putting a jar in <tomcat_home>/server/lib makes it accessible to the code running on the server. It does not make it visible as a file to the user. Long term you may want to consider making a file-based module to put your applet in (see https://www.labkey.org/wiki/home/Documentation/page.view?name=simpleModules).

For short term, you might copy the file to the 'files' area in your home project.

* Go to the menu item "/Admin/Go to Modules/FileConent"
* Upload your jar file
* Select the file you uploaded
* the URL is shown in the details area it will look something like

   {my server}/_webdav/labkey/home/%40files/JavaTreeView.jar

Hope that helps,
Matt
 
pdogra responded:  2012-04-27 15:37
Thanks Matt! It worked!