🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.together.integrations
5 messages
5 total messages Started by Simon Smithson Fri, 27 May 2005 02:36
Modifing the classpath at runtime
#60
Author: Simon Smithson
Date: Fri, 27 May 2005 02:36
16 lines
1507 bytes
Hi I'm  trying to write a module for Together and I need a module 
loaded into the class path. I have tried using this code but have 
run into a brick wall. It seems to modify the classpath but still
throws a class not found exception. The code is thus...

System.setProperty("java.class.path", System.getProperty("java.class.path") + ":$TGH_HOME/modules/com/togethersoft/modules/interchange/interchange.jar");

I have actually changed $TGH_HOME to the Together home 
directory.

When the following code is run I get a ClassNotFoundException.

Class.forName("com.togethersoft.modules.interchange.xmi.xmiexport.XMI11Export", false, this.getClass().getClassLoader());

Does anybody have any ideas?
Re: Modifing the classpath at runtime
#61
Author: ElenaA
Date: Fri, 27 May 2005 07:57
26 lines
2017 bytes
you can add interchange.jar to your module classpath... To do this, you need 
to add the following line to module manifest file:
Class-Path: 
$TGH_HOME/modules/com/togethersoft/modules/interchange/interchange.jar

"Simon Smithson" <simon@jim.cx.nz> wrote in message 
news:429687bd$1@newsgroups.borland.com...
>
> Hi I'm  trying to write a module for Together and I need a module
> loaded into the class path. I have tried using this code but have
> run into a brick wall. It seems to modify the classpath but still
> throws a class not found exception. The code is thus...
>
> System.setProperty("java.class.path", 
> System.getProperty("java.class.path") + 
> ":$TGH_HOME/modules/com/togethersoft/modules/interchange/interchange.jar");
>
> I have actually changed $TGH_HOME to the Together home
> directory.
>
> When the following code is run I get a ClassNotFoundException.
>
> Class.forName("com.togethersoft.modules.interchange.xmi.xmiexport.XMI11Export", 
> false, this.getClass().getClassLoader());
>
> Does anybody have any ideas? 
Re: Modifing the classpath at runtime
#62
Author: Simon Smithson
Date: Mon, 30 May 2005 01:09
57 lines
2788 bytes
Sorry but I'm still having problems getting this to work.

This is what my modules/MANIFEST.MF looks like, It still seeems to throw this class not found exception.

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 1.4.2_04-b05 (Sun Microsystems Inc.)
Built-By:  simon
Class-Path: $TGH_HOME/modules/com/togethersoft/modules/interchange/interchange.jar

Name: ITSModule
Main-Class: simon.modules.ITSModule
Folder: simon
Time: OnDemand
Options: General
DependsOn: simon.Debugger

Name: Debugger
Main-Class: simon.modules.Debugger
Folder: simon
Time: OnDemand
Options: General
Services: simon.Debugger

Appologies if this is a dumb question...


"ElenaA" <Elena.Alekseeva@borland.com> wrote:
>you can add interchange.jar to your module classpath... To do this, you need 
>to add the following line to module manifest file:
>Class-Path: 
>$TGH_HOME/modules/com/togethersoft/modules/interchange/interchange.jar
>
>"Simon Smithson" <simon@jim.cx.nz> wrote in message 
>news:429687bd$1@newsgroups.borland.com...
>>
>> Hi I'm  trying to write a module for Together and I need a module
>> loaded into the class path. I have tried using this code but have
>> run into a brick wall. It seems to modify the classpath but still
>> throws a class not found exception. The code is thus...
>>
>> System.setProperty("java.class.path", 
>> System.getProperty("java.class.path") + 
>> ":$TGH_HOME/modules/com/togethersoft/modules/interchange/interchange.jar");
>>
>> I have actually changed $TGH_HOME to the Together home
>> directory.
>>
>> When the following code is run I get a ClassNotFoundException.
>>
>> Class.forName("com.togethersoft.modules.interchange.xmi.xmiexport.XMI11Export", 
>> false, this.getClass().getClassLoader());
>>
>> Does anybody have any ideas? 
>
>
Re: Modifing the classpath at runtime
#63
Author: ElenaA
Date: Mon, 30 May 2005 08:30
65 lines
3149 bytes
did you try replacing $TGH_HOME with real path?

"Simon Smithson" <simon@jim.cx.nz> wrote in message 
news:429a67bf$1@newsgroups.borland.com...
>
> Sorry but I'm still having problems getting this to work.
>
> This is what my modules/MANIFEST.MF looks like, It still seeems to throw 
> this class not found exception.
>
> Manifest-Version: 1.0
> Ant-Version: Apache Ant 1.6.2
> Created-By: 1.4.2_04-b05 (Sun Microsystems Inc.)
> Built-By:  simon
> Class-Path: 
> $TGH_HOME/modules/com/togethersoft/modules/interchange/interchange.jar
>
> Name: ITSModule
> Main-Class: simon.modules.ITSModule
> Folder: simon
> Time: OnDemand
> Options: General
> DependsOn: simon.Debugger
>
> Name: Debugger
> Main-Class: simon.modules.Debugger
> Folder: simon
> Time: OnDemand
> Options: General
> Services: simon.Debugger
>
> Appologies if this is a dumb question...
>
>
> "ElenaA" <Elena.Alekseeva@borland.com> wrote:
>>you can add interchange.jar to your module classpath... To do this, you 
>>need
>>to add the following line to module manifest file:
>>Class-Path:
>>$TGH_HOME/modules/com/togethersoft/modules/interchange/interchange.jar
>>
>>"Simon Smithson" <simon@jim.cx.nz> wrote in message
>>news:429687bd$1@newsgroups.borland.com...
>>>
>>> Hi I'm  trying to write a module for Together and I need a module
>>> loaded into the class path. I have tried using this code but have
>>> run into a brick wall. It seems to modify the classpath but still
>>> throws a class not found exception. The code is thus...
>>>
>>> System.setProperty("java.class.path",
>>> System.getProperty("java.class.path") +
>>> ":$TGH_HOME/modules/com/togethersoft/modules/interchange/interchange.jar");
>>>
>>> I have actually changed $TGH_HOME to the Together home
>>> directory.
>>>
>>> When the following code is run I get a ClassNotFoundException.
>>>
>>> Class.forName("com.togethersoft.modules.interchange.xmi.xmiexport.XMI11Export",
>>> false, this.getClass().getClassLoader());
>>>
>>> Does anybody have any ideas?
>>
>>
> 
Re: Modifing the classpath at runtime
#66
Author: Simon Smithson
Date: Thu, 02 Jun 2005 00:53
72 lines
3330 bytes
Yeah I tried that but I'm still stumped...


"ElenaA" <Elena.Alekseeva@borland.com> wrote:
>did you try replacing $TGH_HOME with real path?
>
>"Simon Smithson" <simon@jim.cx.nz> wrote in message 
>news:429a67bf$1@newsgroups.borland.com...
>>
>> Sorry but I'm still having problems getting this to work.
>>
>> This is what my modules/MANIFEST.MF looks like, It still seeems to throw 
>> this class not found exception.
>>
>> Manifest-Version: 1.0
>> Ant-Version: Apache Ant 1.6.2
>> Created-By: 1.4.2_04-b05 (Sun Microsystems Inc.)
>> Built-By:  simon
>> Class-Path: 
>> $TGH_HOME/modules/com/togethersoft/modules/interchange/interchange.jar
>>
>> Name: ITSModule
>> Main-Class: simon.modules.ITSModule
>> Folder: simon
>> Time: OnDemand
>> Options: General
>> DependsOn: simon.Debugger
>>
>> Name: Debugger
>> Main-Class: simon.modules.Debugger
>> Folder: simon
>> Time: OnDemand
>> Options: General
>> Services: simon.Debugger
>>
>> Appologies if this is a dumb question...
>>
>>
>> "ElenaA" <Elena.Alekseeva@borland.com> wrote:
>>>you can add interchange.jar to your module classpath... To do this, you 
>>>need
>>>to add the following line to module manifest file:
>>>Class-Path:
>>>$TGH_HOME/modules/com/togethersoft/modules/interchange/interchange.jar
>>>
>>>"Simon Smithson" <simon@jim.cx.nz> wrote in message
>>>news:429687bd$1@newsgroups.borland.com...
>>>>
>>>> Hi I'm  trying to write a module for Together and I need a module
>>>> loaded into the class path. I have tried using this code but have
>>>> run into a brick wall. It seems to modify the classpath but still
>>>> throws a class not found exception. The code is thus...
>>>>
>>>> System.setProperty("java.class.path",
>>>> System.getProperty("java.class.path") +
>>>> ":$TGH_HOME/modules/com/togethersoft/modules/interchange/interchange.jar");
>>>>
>>>> I have actually changed $TGH_HOME to the Together home
>>>> directory.
>>>>
>>>> When the following code is run I get a ClassNotFoundException.
>>>>
>>>> Class.forName("com.togethersoft.modules.interchange.xmi.xmiexport.XMI11Export",
>>>> false, this.getClass().getClassLoader());
>>>>
>>>> Does anybody have any ideas?
>>>
>>>
>> 
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads