>.. but the
> when i compile the programme that calls it i get a "cannot resolve symbol"
> on the "exec" line. which is 'exec(JarSignerPath);'
> > i'm
>
> Sentences that are easy to read are more likely to get
> read. Using an uppercase character at the beginning
> of a sentence helps to make posts easier to read.
You can read, 'I'm' but you can't read 'i'm'?
> >...invoking to use Java's 'exec' but the documentation says its in the
> > java.lang.runtime class..
[quoted text clipped - 8 lines]
>
> ditto.
Yo see I didn't know that and even then I don't take things as red because
if I do then knowing my luck a future version will not include them as red.
:\
>
[quoted text clipped - 4 lines]
> Please always copy/paste errors, or the first lines
> of stack traces.
I did,
"cannot resolve symbol"
> > The code for this class alone is below;
> 252 lines of uncompilable* code is unlikely to get much
> attention. If you need to post code, please post either
> a very short snippet, or an SSCCE.
> <http://www.physci.org/codes/sscce.jsp>
Look I'm not being funny but will you guys make up your minds? I got moaned
at for not posting the whole code now i did you moan at me. Why don't you
guys decide what you want and put it in the faq then we all know where we
are. or perhaps you have already and I missed it :)
> * had to fix code lines broken by being too wide, and
> hunt through the errors caused by the missing classes.
[quoted text clipped - 8 lines]
> exec(JarSignerPath);
> ^
<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html#exec(java.la
ng.String)>
> OK. 'exec(String)' is a method of a Runtime object. if we had
> a runtime object called 'runtime' you might invoke it using..
[quoted text clipped - 12 lines]
> ..where 'this' is an instance of Jarmaker, which has no 'exec'
> method.
hehe well i thought it would include it as i did the import
> The error is saying there is no 'exec(String)' method for
> the Jarmaker class, because that is where the compiler
> thinks you mean to find it.
>
> To get a instance of a Runtime object, see
<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html#getRuntime()
Many thanks. I replaced it with 'Runtime.getRuntime().exec(JarSignerPath);'
I know i could have done it tidier but it works.
> And, as 2 asides..
> 1) It pays to ask a question - though we've already been there. ;-)
Yeah i haven't read your reply to tthat yet :)
> 2) The best groups for helping those new to Java is..
> <http://www.physci.org/codes/javafaq.jsp#cljh>
Hey we should all help each other and my proggy isn't bad for one written by
a newbie :)
> HTH
It did. thanks a lot
Andrew Thompson - 15 Nov 2005 08:52 GMT
>>>The code for this class alone is below;
>
[quoted text clipped - 4 lines]
>
> Look I'm not being funny but will you guys make up your minds?
I am but one person, I have my opinions.
Some people agree with me, some people don't, others don't care
enough about what I have to say to listen long enough to make a
choice.
>..I got moaned
> at for not posting the whole code now i did you moan at me.
Who asked you for the whole code? I requested an *SSCCE*,
that is a very different thing, with some very specific
requirements. Requirements not met by your code.
Consider that there were fixes required to see the code run.
If two people wanted to see it, both of them had to fix the
errors, errors you might not have posted in the first place,
had you prepared an SSCCE.
>.. Why don't you
> guys decide what you want and put it in the faq
..Is this a troll, Darren? [1]
The closest thing that this group has to an FAQ is mentioned
in the Java mini-FAQ posted regularly to this, and several other
groups. The Java FAQ that is mentioned, resides at my site, and
was compiled by me, with the help of a number of other people.
Having said that, the words I put in that FAQ are not entirely
acceptable to all participants of these groups, and it is not
the 'official' FAQ of this (or any other) Java group.
[1] If so - "Ya' Got Me!" ;-)
>>2) The best groups for helping those new to Java is..
>><http://www.physci.org/codes/javafaq.jsp#cljh>
>
> Hey we should all help each other and my proggy isn't bad for one written by
> a newbie :)
I do not understand what you are getting at, but I will be more plain.
I would not normally offer the level of description and detail
I did in that post, at least, not here on c.l.j.programmer.
OTOH, I (as well as some other people who help out on c.l.j.h.)
set out to 'take more time' when answering questions on c.l.j.help.
Also, the general nature of the discussion on help is different,
there are things (accusations, derision..) flung about on
c.l.j.programmer without comment, that would prompt a severe
criticism on c.l.j.help.
>>HTH
> It did. thanks a lot
You're welcome. :-)
Darren - 15 Nov 2005 19:15 GMT
> >>>The code for this class alone is below;
> >
[quoted text clipped - 17 lines]
> that is a very different thing, with some very specific
> requirements. Requirements not met by your code.
I had to look up *SSCCE*
> Consider that there were fixes required to see the code run.
> If two people wanted to see it, both of them had to fix the
> errors, errors you might not have posted in the first place,
> had you prepared an SSCCE.
No problem, but it's misunderstanding like this that call for a group FAQ
and no that wasn't a troll.
> >.. Why don't you
> > guys decide what you want and put it in the faq
>
> ..Is this a troll, Darren? [1]
Nope. :)
> The closest thing that this group has to an FAQ is mentioned
> in the Java mini-FAQ posted regularly to this, and several other
> groups. The Java FAQ that is mentioned, resides at my site, and
> was compiled by me, with the help of a number of other people.
Perhaps the group might see it as a suitable one for this group.
> Having said that, the words I put in that FAQ are not entirely
> acceptable to all participants of these groups, and it is not
> the 'official' FAQ of this (or any other) Java group.
>
> [1] If so - "Ya' Got Me!" ;-)
LOL no, you still win, it wasn't a troll. :)
> >>2) The best groups for helping those new to Java is..
> >><http://www.physci.org/codes/javafaq.jsp#cljh>
[quoted text clipped - 6 lines]
> I would not normally offer the level of description and detail
> I did in that post, at least, not here on c.l.j.programmer.
It was very kind of you to do so.
> OTOH, I (as well as some other people who help out on c.l.j.h.)
> set out to 'take more time' when answering questions on c.l.j.help.
> Also, the general nature of the discussion on help is different,
> there are things (accusations, derision..) flung about on
> c.l.j.programmer without comment, that would prompt a severe
> criticism on c.l.j.help.
erm ok
> >>HTH
>
> > It did. thanks a lot
>
> You're welcome. :-)