KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dappit > Dapper > Configuration


1 package com.dappit.Dapper;
2
3 import java.io.File JavaDoc;
4
5 import com.dappit.Dapper.parser.EnviromentController;
6
7 /* This file should be renamed to Configuration.java and configured */
8 public class Configuration {
9   
10
11 /**
12  * @return
13  */

14 public static String JavaDoc getMozillaComponentsPath() {
15     try
16     {
17         File JavaDoc distBinDirectory = new File JavaDoc("mozilla.dist.bin."+EnviromentController.getOperatingSystemName());
18         return distBinDirectory.getAbsolutePath();
19     }
20     catch (Exception JavaDoc e)
21     {
22         e.printStackTrace();
23         return null;
24     }
25 }
26
27 }
28
Popular Tags