|
| Re: A weird problem with using user-defined jar file in TDI 6.0 |
 |
Mon, 03 Mar 2008 14:06:12 +010 |
Class and function names are case-sensitive, as you
know already, and TDI does not require anything other
than standard Java naming.
What does your script code look like when you access
CreateFile?
var cf = new packages.mystuff.CreateFile();
or similar?
Also, make sure that the old .jar (with name "test") is
gone from the jars folder.
If all else fails, put your .jar file here and I'll have
a go.
-Eddie
yf wrote:
> In addition, I just tried the following:
> In the test.jar in which the test.class can work, I added in
> CreateFile.class. So both test.class and Create.class are in test jar,
> and they both have exactly the same methods.
> Calling methods of test.class from assembly line was successful;
> however, calling methods from CreateFile.class always failed. The error
> returned was always: undefined: undefined is not a function.
> :(
>
> YF
>
> "yf" <vrcat101@gmail.com
<mailto:vrcat101@gmail.com>> wrote in
> message news:fqg318$mo3i$1@news.boulder.ibm.com...
> Further to my previous note.
> in the test.jar file, I have tried to name the jar and the class
> file differently, but it didn't work either.
> i.e. the jar file is called* myUtil.jar*, and the class is called
> *CreateFile.class*
> **
>
> Thank you.
> YF
>
> "yf" <vrcat101@gmail.com
<mailto:vrcat101@gmail.com>> wrote in
> message news:fqg122$1m47e$1@news.boulder.ibm.com...
> Hi All,
>
> To test the use of user-defined jar file, I created a *test.jar*
> file containing test.class, put it under <IDI home dir>\jars
> also modified solution.properties file to include the path to
> the *test.jar*.
>
> It appeared to be working properly when I called methods from
> test.class in assembly lines. Then I modified my test.class to
> be a more sensible name *CreateFile.class*, and also the jar
> file's name to be *CreateFile.jar*.
>
> Nothing's changed except the file name (of course, I restarted
> IDI and even rebooted the pc). After that, methods could not be
> run successfully any more. It always returns: *undefined:
> undefined is not a function*. I can't understand why IDI6.0
> likes lower-case jar/class while not jar/class with capital
> letters. Could some one please help me how to get this solved?
>
> Thanks very much in advance!
>
>
|
| Post Reply
|
| Re: A weird problem with using user-defined jar file in TDI 6.0 |
 |
Mon, 03 Mar 2008 14:19:46 +010 |
Eddie was really meaning
var cf = new Packages.mystuff.CreateFile();
(that is, with a capital P letter);
Christian
Eddie Hartman wrote:
> Class and function names are case-sensitive, as you
> know already, and TDI does not require anything other
> than standard Java naming.
>
> What does your script code look like when you access
> CreateFile?
>
> var cf = new packages.mystuff.CreateFile();
>
> or similar?
>
> Also, make sure that the old .jar (with name "test") is
> gone from the jars folder.
>
> If all else fails, put your .jar file here and I'll have
> a go.
>
> -Eddie
>
> yf wrote:
>
>> In addition, I just tried the following:
>> In the test.jar in which the test.class can work, I added in
>> CreateFile.class. So both test.class and Create.class are in test
>> jar, and they both have exactly the same methods.
>> Calling methods of test.class from assembly line was successful;
>> however, calling methods from CreateFile.class always failed. The
>> error returned was always: undefined: undefined is not a function.
>> :(
>>
>> YF
>>
>> "yf" <vrcat101@gmail.com
<mailto:vrcat101@gmail.com>> wrote in
>> message news:fqg318$mo3i$1@news.boulder.ibm.com...
>> Further to my previous note.
>> in the test.jar file, I have tried to name the jar and the class
>> file differently, but it didn't work either.
>> i.e. the jar file is called* myUtil.jar*, and the class is called
>> *CreateFile.class*
>> ** Thank you.
>> YF
>>
>> "yf" <vrcat101@gmail.com
<mailto:vrcat101@gmail.com>> wrote in
>> message news:fqg122$1m47e$1@news.boulder.ibm.com...
>> Hi All,
>> To test the use of user-defined jar file, I created a
>> *test.jar*
>> file containing test.class, put it under <IDI home
dir>\jars
>> also modified solution.properties file to include the path to
>> the *test.jar*.
>> It appeared to be working properly when I called
>> methods from
>> test.class in assembly lines. Then I modified my test.class
to
>> be a more sensible name *CreateFile.class*, and also the jar
>> file's name to be *CreateFile.jar*.
>> Nothing's changed except the file name (of course, I
>> restarted
>> IDI and even rebooted the pc). After that, methods could not
be
>> run successfully any more. It always returns: *undefined:
>> undefined is not a function*. I can't understand why IDI6.0
>> likes lower-case jar/class while not jar/class with capital
>> letters. Could some one please help me how to get this solved?
>> Thanks very much in advance!
|
| Post Reply
|
| A weird problem with using user-defined jar file in TDI 6.0 |
 |
Mon, 3 Mar 2008 15:07:13 +1000 |
Hi All,
To test the use of user-defined jar file, I created a test.jar file containing
test.class, put it under <IDI home dir>\jars also modified
solution.properties file to include the path to the test.jar.
It appeared to be working properly when I called methods from test.class in
assembly lines. Then I modified my test.class to be a more sensible name
CreateFile.class, and also the jar file's name to be CreateFile.jar.
Nothing's changed except the file name (of course, I restarted IDI and even
rebooted the pc). After that, methods could not be run successfully any more.
It always returns: undefined: undefined is not a function. I can't understand
why IDI6.0 likes lower-case jar/class while not jar/class with capital letters.
Could some one please help me how to get this solved?
Thanks very much in advance!
YF |
| Post Reply
|
| Re: A weird problem with using user-defined jar file in TDI 6.0 |
 |
Mon, 3 Mar 2008 15:40:54 +1000 |
Further to my previous note.
in the test.jar file, I have tried to name the jar and the class file
differently, but it didn't work either.
i.e. the jar file is called myUtil.jar, and the class is called
CreateFile.class
Thank you.
YF
"yf" <vrcat101@gmail.com> wrote in message
news:fqg122$1m47e$1@news.boulder.ibm.com...
Hi All,
To test the use of user-defined jar file, I created a test.jar file containing
test.class, put it under <IDI home dir>\jars also modified
solution.properties file to include the path to the test.jar.
It appeared to be working properly when I called methods from test.class in
assembly lines. Then I modified my test.class to be a more sensible name
CreateFile.class, and also the jar file's name to be CreateFile.jar.
Nothing's changed except the file name (of course, I restarted IDI and even
rebooted the pc). After that, methods could not be run successfully any more.
It always returns: undefined: undefined is not a function. I can't understand
why IDI6.0 likes lower-case jar/class while not jar/class with capital letters.
Could some one please help me how to get this solved?
Thanks very much in advance!
YF |
| Post Reply
|
| Re: A weird problem with using user-defined jar file in TDI 6.0 |
 |
Mon, 3 Mar 2008 22:25:45 +1000 |
In addition, I just tried the following:
In the test.jar in which the test.class can work, I added in CreateFile.class.
So both test.class and Create.class are in test jar, and they both have exactly
the same methods.
Calling methods of test.class from assembly line was successful; however,
calling methods from CreateFile.class always failed. The error returned was
always: undefined: undefined is not a function.
:(
YF
"yf" <vrcat101@gmail.com> wrote in message
news:fqg318$mo3i$1@news.boulder.ibm.com...
Further to my previous note.
in the test.jar file, I have tried to name the jar and the class file
differently, but it didn't work either.
i.e. the jar file is called myUtil.jar, and the class is called
CreateFile.class
Thank you.
YF
"yf" <vrcat101@gmail.com> wrote in message
news:fqg122$1m47e$1@news.boulder.ibm.com...
Hi All,
To test the use of user-defined jar file, I created a test.jar file
containing test.class, put it under <IDI home dir>\jars also modified
solution.properties file to include the path to the test.jar.
It appeared to be working properly when I called methods from test.class in
assembly lines. Then I modified my test.class to be a more sensible name
CreateFile.class, and also the jar file's name to be CreateFile.jar.
Nothing's changed except the file name (of course, I restarted IDI and even
rebooted the pc). After that, methods could not be run successfully any more.
It always returns: undefined: undefined is not a function. I can't understand
why IDI6.0 likes lower-case jar/class while not jar/class with capital letters.
Could some one please help me how to get this solved?
Thanks very much in advance!
YF |
| Post Reply
|
|
|