88 |
int GCJPluginFactory::s_started = 0; |
int GCJPluginFactory::s_started = 0; |
89 |
|
|
90 |
GCJPluginFactory::GCJPluginFactory () |
GCJPluginFactory::GCJPluginFactory () |
|
: m_class_AppletContextImpl (NULL) |
|
|
, m_appletContext (NULL) |
|
91 |
{ |
{ |
92 |
DEBUG ("GCJPluginFactory::GCJPluginFactory\n"); |
DEBUG ("GCJPluginFactory::GCJPluginFactory\n"); |
93 |
|
|
94 |
m_casspath = strdup (getenv ("CLASSPATH")); |
m_classpath = strdup (getenv ("CLASSPATH")); |
95 |
} |
} |
96 |
|
|
97 |
GCJPluginFactory::~GCJPluginFactory () |
GCJPluginFactory::~GCJPluginFactory () |
246 |
|
|
247 |
len_cp = strlen (m_classpath); |
len_cp = strlen (m_classpath); |
248 |
len_path = strlen (dirPath); |
len_path = strlen (dirPath); |
249 |
tmp = malloc (len_cp + len_path + 2); |
tmp = (char*) malloc (len_cp + len_path + 2); |
250 |
strcpy (tmp, m_classpath); |
strcpy (tmp, m_classpath); |
251 |
strcpy (&tmp [len_cp], ":"); |
strcpy (&tmp [len_cp], ":"); |
252 |
strcpy (&tmp [len_cp + 1], dirPath); |
strcpy (&tmp [len_cp + 1], dirPath); |