comp.lang.java.programmer
http://groups-beta.google.com/group/comp.lang.java.programmer
[EMAIL PROTECTED]

Today's topics:

* hi java programmer - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/66dc1ef1bf5a0c2e
* java.util.regex ^ problem - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8557b1f56abfcb4d
* Java implementation of crypt() wanted! - 8 messages, 5 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c9d4b7c65f13df2a
* Java trick - 2 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bfd25be52dc6a3ad
* Undo - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7434631ea0c81ec8
* Problem in executing pl/sql block through jdbc - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8c96714693c45cc1
* Select and Edit a Record in a Table of JSP page - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b5a1fe050df12660
* problem with Panel in an applet - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c5c3a2df7fd4b725
* different handling of the default locale in java/javaw - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4d0370d3ff90eeb5
* java.lang.OutOfMemoryError - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/36b148a9072c44cb
* Web Start, local classpath? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2dbf202f1c3add8f
* Beginner Advice Sought - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b96a0a430a102e22
* JTable Column names - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/61028e9a560138b1
* Using own classloader inside J2EE to load and unload own classes. - 1 messages, 1 
author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fdfcf1acc7ac513a
  
==========================================================================
TOPIC: hi java programmer
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/66dc1ef1bf5a0c2e
==========================================================================

== 1 of 2 ==
Date:   Mon,   Sep 20 2004 9:26 pm
From: Mohd Fadil Ismail <[EMAIL PROTECTED]> 


hi all,
i need java compiler for windows98 but i couldn't find any. pls someone
help

"Give me enough medals, and I'll win any war."





== 2 of 2 ==
Date:   Mon,   Sep 20 2004 9:29 pm
From: Chris Smith <[EMAIL PROTECTED]> 

Mohd Fadil Ismail wrote:
> i need java compiler for windows98 but i couldn't find any. pls someone
> help

http://java.sun.com/, and click on the link to download "J2SE 1.4.2 
SDK" on the right.  Be sure to get the SDK, not the JRE.

-- 
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation




==========================================================================
TOPIC: java.util.regex ^ problem
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8557b1f56abfcb4d
==========================================================================

== 1 of 2 ==
Date:   Mon,   Sep 20 2004 9:38 pm
From: Glenn Meter <[EMAIL PROTECTED]> 

I'm trying to use the regex package to match strings at the beginning 
of lines within files. However, it looks like ^ is only matching on 
items at the start of the string, not at the start of a line.

This sets b to true, with m.start() returning 0 [the beginning of text]:

                        Pattern p = Pattern.compile("^foo");
                        Matcher m = p.matcher("foo\nmatch bar\n");
                        boolean b = m.find();

This leaves b as false:

                        Pattern p = Pattern.compile("^match");
                        Matcher m = p.matcher("foo\nmatch bar\n");
                        boolean b = m.find();

Since the top test succeeds, it looks like it's taking '^' as a 
boundary marker instead of the "not this character" marker.
The fact that RegexTestHarness only checks one line at a time isn't 
giving me great confidence that multi-line input was thoroughly tested.

Any clues would be greatly appreciated.

Thanks,
Glenn




== 2 of 2 ==
Date:   Mon,   Sep 20 2004 9:43 pm
From: Chris Smith <[EMAIL PROTECTED]> 

Glenn Meter wrote:
> I'm trying to use the regex package to match strings at the beginning 
> of lines within files. However, it looks like ^ is only matching on 
> items at the start of the string, not at the start of a line.

>From the API documentation for java.util.Pattern:

    By default, the regular expressions ^ and $ ignore line terminators
    and only match at the beginning and the end, respectively, of the
    entire input sequence. If MULTILINE mode is activated then these
    expressions match just after or just before, respectively, a line
    terminator or the end of the input sequence with the exception that
    the expression ^ never matches at the end of input, even if the last
    character is a newline.

So try:

    Pattern p = Pattern.compile("^match", Pattern.MULTILINE);
    Matcher m = p.matcher("foo\nmatch bar\n");
    boolean b = m.find();

I haven't tried it, but I suspect it will work.

-- 
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation




==========================================================================
TOPIC: Java implementation of crypt() wanted!
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c9d4b7c65f13df2a
==========================================================================

== 1 of 8 ==
Date:   Mon,   Sep 20 2004 10:17 pm
From: Mark Marcus <[EMAIL PROTECTED]> 

On Mon, 20 Sep 2004 21:44:16 -0400, Sudsy <[EMAIL PROTECTED]>
wrote:

>Mark Marcus wrote:
><snip>
>> You obviously looked up crypt, and found the Unix specification for
>> it.  Great!  Now how is that going to help a Java programmer?  Surely
>> you must've been in the position where you're looking for a solution,
>> and can't find it in the search engines---I don't know about you, but
>> that's when I usually post a question in the comp.lang groups.
>> Irresponsible responses like yours is why I'm finding it more useful
>> to go to the pay-as-you-go websites than Usenet.  The people on those
>> pay-as-you-go are interested in providing a solution rather than an
>> ego-stroking unhelpful reply.
>> 
>> Once upon a time, Usenet was so much more useful.  What happened?
>
>Hold your horses there, pardner! Andrew is pointing out that people
>who do their own research are usually rewarded for their efforts in
>a more timely manner than by waiting for replies to a post on Usenet.
>Nothing has changed except that the resources available these days
>are hugely improved yet not everyone knows how to use them.
>Using search engines is an acquired skill and involves distilling a
>request down to the essence of two or three terms. It also helps to
>know the standard syntax, namely that adding the plus sign to the
>beginning of a term means that the results MUST include the word or
>phrase (enclosed in quotes in the case of a phrase).
>So I went to the archives and entered the string "+java +crypt
>+algorithm" and was pleased to find all manner of relevant posts.
>We should all be indebted to Digital Equipment Corporation (may it
>rest in pieces) and people like Andrew who try to steer people in a
>direction which will be benificial.
>Sorry that you didn't like the message, but don't shoot the messenger.
>I've made similar exhortations in the past as there's a wealth of
>knowledge to be found at <http://groups.google.com/>. If you can't
>find an answer in more than two decades of postings then your query
>is likely unique, or nearly so. In that case, most people would be
>more than happy to reply and share their experiences.
>Fair enough?

Bah!  I put in your search string exactly as you said.  The first 100
hits are totally irrelevant.

Why is it that people like you think that others are so stupid they
won't do a google search themselves?  The amount of bandwidth wasted
in a nonsense reply like "use google" must be staggering.  Instead, if
we could use this human protocol:

if (do_not_know_the_answer) then do_not_post
else post_answer.

If you use this protocol, then your much vaunted "google searches"
would tend to return more relevant links instead of a slough of
irrelevant posts that tell the searcher to "use google."


Mark Marcus
Protect Your Email Address and Make Money too!
http://www.xhome.org  My Sales Code is 22819



== 2 of 8 ==
Date:   Mon,   Sep 20 2004 10:46 pm
From: Mark Murphy <[EMAIL PROTECTED]> 

Mark Marcus wrote:
> On Mon, 20 Sep 2004 11:58:03 GMT, Andrew Thompson
> <[EMAIL PROTECTED]> wrote:

>>Do you mean this?
>><http://www.opengroup.org/onlinepubs/007908799/xsh/crypt.html>
>>
>>>..Can somebody help me?
>>
>>I dunno.  Can you help yourself?  Do you Google?
>>
>>Ten minutes ago I had not heard of crypt, but I figure 
>>some of these 8,130 hits might assist your solution..
>><http://google.com/search?q=unix+crypt+java+%22source+code%22>
>>
>>HTH
> 

> You know, Andrew, I think you mean well... but this kind of response
> in a newsgroup simply doesn't do.  It's very rude, and doesn't do the
> Java community any benefit.  If you don't know the answer, then don't
> post a reply.  Your snide "Use google" isn't helping anyone.

Mark, I can't disagree with you more. I'm new with Java but in no way 
new to newsgroups. The problem is that as mentioned people find it 
easier for others to do research for them. The big problem with 
newsgroups is not that those contributors like Andrew are not around, 
it's that they are overwhelmed by the lack of effort on some peoples 
part. It's not that people are unwilling to help, but how many times do 
you what to answer the same question? This is nothing new, you always 
have a few people who are more leaches then contributors.

Andrew is a big contributor, I know this because as a newbie I have been 
lurking in the Java newsgroups everyday. Learning from others. When I 
have a question and after searching google, and google groups I post. 
You will also notice I don't post much and what I do I do it in the 
appropriate group, java.help (for beginners)

Andrew could have worded his response in a kinder manner, but he was on 
the money. If on the other hand the requester had supplied the link to 
the spec showing he did some work for himself I'm sure he would have 
received a different response. I guess I am more sensitive to this since 
I deal with this type of behavior on a daily basis at work.

 > Once upon a time, Usenet was so much more useful.  What happened?
Your right he should have used "RTFM!" a Usenet staple.

Mark Murphy



== 3 of 8 ==
Date:   Mon,   Sep 20 2004 11:16 pm
From: Tor Iver Wilhelmsen <[EMAIL PROTECTED]> 

Mark Murphy <[EMAIL PROTECTED]> writes:

> Mark, I can't disagree with you more. I'm new with Java but in no way
> new to newsgroups. The problem is that as mentioned people find it
> easier for others to do research for them.

But newsgroups is a delayed-response-if-any-at-all source of
information, compared to Google and the like. This is why I don't
understand people saying URGENT! about their questions in newsgroups;
they are meant for discussions, not immediate response to something.



== 4 of 8 ==
Date:   Mon,   Sep 20 2004 11:52 pm
From: Mark Murphy <[EMAIL PROTECTED]> 

Tor Iver Wilhelmsen wrote:
> Mark Murphy <[EMAIL PROTECTED]> writes:
> 
> 
>>Mark, I can't disagree with you more. I'm new with Java but in no way
>>new to newsgroups. The problem is that as mentioned people find it
>>easier for others to do research for them.
> 
> 
> But newsgroups is a delayed-response-if-any-at-all source of
> information, compared to Google and the like. This is why I don't
> understand people saying URGENT! about their questions in newsgroups;
> they are meant for discussions, not immediate response to something.

The URGENT thing does not fly, it's like someone posts the night before 
a project is do and then expects an answer by the time the have to turn 
in their assignment. ( school reference intended ). Yes I have waited 
till the last minute before, but that was my problem, my fault not the 
people I looked to for help.

Not to pick a fight but googleing on "java unix crypt" resulted in:
"Java Implementations of Unix Crypt" - Several Crypt classes
"Java Implementation Of Crypt" - "Eric Young's C code and translate it 
into java"



== 5 of 8 ==
Date:   Tues,   Sep 21 2004 12:22 am
From: Mark Marcus <[EMAIL PROTECTED]> 

On Mon, 20 Sep 2004 22:46:31 -0700, Mark Murphy <[EMAIL PROTECTED]>
wrote:

>Mark Marcus wrote:
>> On Mon, 20 Sep 2004 11:58:03 GMT, Andrew Thompson
>> <[EMAIL PROTECTED]> wrote:
>
>>>Do you mean this?
>>><http://www.opengroup.org/onlinepubs/007908799/xsh/crypt.html>
>>>
>>>>..Can somebody help me?
>>>
>>>I dunno.  Can you help yourself?  Do you Google?
>>>
>>>Ten minutes ago I had not heard of crypt, but I figure 
>>>some of these 8,130 hits might assist your solution..
>>><http://google.com/search?q=unix+crypt+java+%22source+code%22>
>>>
>>>HTH
>> 
>
>> You know, Andrew, I think you mean well... but this kind of response
>> in a newsgroup simply doesn't do.  It's very rude, and doesn't do the
>> Java community any benefit.  If you don't know the answer, then don't
>> post a reply.  Your snide "Use google" isn't helping anyone.
>
>Mark, I can't disagree with you more. I'm new with Java but in no way 
>new to newsgroups. The problem is that as mentioned people find it 
>easier for others to do research for them. The big problem with 
>newsgroups is not that those contributors like Andrew are not around, 
>it's that they are overwhelmed by the lack of effort on some peoples 
>part. It's not that people are unwilling to help, but how many times do 
>you what to answer the same question? This is nothing new, you always 
>have a few people who are more leaches then contributors.
>
>Andrew is a big contributor, I know this because as a newbie I have been 
>lurking in the Java newsgroups everyday. Learning from others. When I 
>have a question and after searching google, and google groups I post. 
>You will also notice I don't post much and what I do I do it in the 
>appropriate group, java.help (for beginners)
>
>Andrew could have worded his response in a kinder manner, but he was on 
>the money. If on the other hand the requester had supplied the link to 
>the spec showing he did some work for himself I'm sure he would have 
>received a different response. I guess I am more sensitive to this since 
>I deal with this type of behavior on a daily basis at work.
>
> > Once upon a time, Usenet was so much more useful.  What happened?
>Your right he should have used "RTFM!" a Usenet staple.
>
>Mark Murphy

But Andrew's alternative is to simply remain silent.  It would've
accomplished the same thing.  As a newb, you probably haven't yet
bumped up against the problem of looking for a solution that is a
proverbial needle in a haystack.  Gawd! He said he got 8,130 hits!
How in hell could that be construed as being helpful?!


Mark Marcus
Protect Your Email Address and Make Money too!
http://www.xhome.org  My Sales Code is 22819



== 6 of 8 ==
Date:   Tues,   Sep 21 2004 12:24 am
From: Andrew Thompson <[EMAIL PROTECTED]> 

On Mon, 20 Sep 2004 14:47:58 -0700, Mark Marcus wrote:
..
> Once upon a time, Usenet was so much more useful.  What happened?

It became infested with 'AOL' posters and whining
'blow-in' posters such as yourself.
<http://groups.google.com/groups?as_uauthors=marc%20markus>

I am trying to do my bit to give these new posters 
the fishing rod and you moan about how I do not give 
them fish (battered and cooked, with chips).  

Well, good for you Marc, I assume you will be making 
random posts over the next two weeks[1] to try and 
convince me, yourself and anyone else that cares
(read 'no-one') that you are so much *nicer* than I am.

Go for it dude.  That short respite will take an
(ever so slight) load off the shoulders of the people
around here who are in for the long haul.

If OTOH, you want to see my *nice* posts, try the 
ones I make to the group meant for starters..
<http://google.com.au/groups?as_ugroup=comp.lang.java.help&as_uauthors=andrew+thompson>

[1] The 'pattern' with these random blow-in posters 
is to arrive at the group whining, then make a few 
'really "nice" and helpful' posts over the next week
or two before vanishing into thin air.

And to Zsolt.

Please do not be put off by this ..series of posts
on your thread.  Everybody in this thread wants to
help you, we just have different ideas about how 
best to do it.

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.lensescapes.com/  Images that escape the mundane



== 7 of 8 ==
Date:   Tues,   Sep 21 2004 12:35 am
From: Mark Marcus <[EMAIL PROTECTED]> 

On Mon, 20 Sep 2004 23:52:09 -0700, Mark Murphy <[EMAIL PROTECTED]>
wrote:

>Tor Iver Wilhelmsen wrote:
>> Mark Murphy <[EMAIL PROTECTED]> writes:
>> 
>> 
>>>Mark, I can't disagree with you more. I'm new with Java but in no way
>>>new to newsgroups. The problem is that as mentioned people find it
>>>easier for others to do research for them.
>> 
>> 
>> But newsgroups is a delayed-response-if-any-at-all source of
>> information, compared to Google and the like. This is why I don't
>> understand people saying URGENT! about their questions in newsgroups;
>> they are meant for discussions, not immediate response to something.
>
>The URGENT thing does not fly, it's like someone posts the night before 
>a project is do and then expects an answer by the time the have to turn 
>in their assignment. ( school reference intended ). Yes I have waited 
>till the last minute before, but that was my problem, my fault not the 
>people I looked to for help.

But guess what, no one is asking you to do "research."  Someone might
just actually know the answer and would have the common decency to
actually answer.  

If Andrew had remained silent, the original poster would never had
known--he'd just know that the answer didn't appear.  No bandwidth,
same result.

And if someone had the answer because he just so happened to have been
looking through directories for a Base64 encoder, then he'd post his
findings.

>
>Not to pick a fight but googleing on "java unix crypt" resulted in:
>"Java Implementations of Unix Crypt" - Several Crypt classes
>"Java Implementation Of Crypt" - "Eric Young's C code and translate it 
>into java"

But guess what?  change it to "crypt java" and you get a bunch of
irrelevant links.  You're a better guesser than I am.  Andrew's post
didn't even suggest that--his post was "I searched for crypt and got
8000+ hits, now go find that needle."  

In what universe (other than, apparently, Usenet) is that considered
helpful?


Mark Marcus
Protect Your Email Address and Make Money too!
http://www.xhome.org  My Sales Code is 22819



== 8 of 8 ==
Date:   Tues,   Sep 21 2004 1:42 am
From: Jacob <[EMAIL PROTECTED]> 

Andrew Thompson wrote:

> I am trying to do my bit to give these new posters 
> the fishing rod and you moan about how I do not give 
> them fish (battered and cooked, with chips).  

In general: If you cannot contribute to the answer of a question
(how stupid it might be) then don't, as you wast other people's
bandwidth.

Stupid questions are not always as stupid as you might think they
are (other people with different experience than you might read
it quite differently), but if they really are, ignoring them is a
very strong signal to the poster to phrase it differently (or go
elsewhere for an answer) the next time around.

It is a fact that some highly qualified individuals (including
Roedy Green, Dale King and Jon Skeet among others) has disappeared
from this newsgroup recently; I would not be surprised if the
level of "teach-newbies-how-to-post-correctly"-noise and general
rudeness and agressiveness in some of the posts has something
to do with it.

Earlier I'd *first* go to c.l.j.p with a Java question and if not
successful (unlikely) I'd Google (or AltaVista as it used to be
called :-) for an answer. These days I would actually much rather
use Google as some of the replies I get in this NG would spoil my
day.







==========================================================================
TOPIC: Java trick
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bfd25be52dc6a3ad
==========================================================================

== 1 of 2 ==
Date:   Mon,   Sep 20 2004 10:23 pm
From: Timo Kinnunen <[EMAIL PROTECTED]> 

On Mon, 20 Sep 2004 12:21:14 -0600, Chris Smith wrote:

I'll just comment on this.

> (And I don't think the scenario is very believable in the 
> first place; devices where one extra class file overhead makes a 
> difference aren't being written in bytecode-compiled Java.  Native 
> compilers can address this issue and use no less space in multiple 
> classes than in only one.)

One class is not a problem, that's true. 400Kb of normal class files into a
64Kb jar-file, that's a problem. It is doable, but it isn't painless and
it's not pretty. Native compilation is right out of the question due to
security conserns. It's J2ME on mobile phones.



== 2 of 2 ==
Date:   Mon,   Sep 20 2004 10:23 pm
From: Timo Kinnunen <[EMAIL PROTECTED]> 

On Mon, 20 Sep 2004 11:23:36 -0700, P.Hill wrote:

> Timo Kinnunen wrote:
>> But the motivation for the change is optimization. 
> 
> If the motivation is optimization, you DONT want to
> be making extra objects just so you cna jump through them.
> Static dispatch is always faster than dynamic.

I'm not. The variables are static, they are never initialized and they are
only used for their type, so it's easy for an obfuscator to remove them.
The result should be the same bytecode as if I had used class names.




==========================================================================
TOPIC: Undo
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7434631ea0c81ec8
==========================================================================

== 1 of 1 ==
Date:   Mon,   Sep 20 2004 11:25 pm
From: "Adam" <[EMAIL PROTECTED]> 

Yes, this seems to be what I need.
I'll try that out.

Thanks againg,
Adam 






==========================================================================
TOPIC: Problem in executing pl/sql block through jdbc
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8c96714693c45cc1
==========================================================================

== 1 of 1 ==
Date:   Mon,   Sep 20 2004 11:42 pm
From: [EMAIL PROTECTED] (Anand) 

Thanks for your reply; there was problem with file parsing. Used
bufferedReader's readLine() instead of read() alongwith little bit of
tweaking with code and everything got sorted out.

Anand




==========================================================================
TOPIC: Select and Edit a Record in a Table of JSP page
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b5a1fe050df12660
==========================================================================

== 1 of 1 ==
Date:   Mon,   Sep 20 2004 11:47 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On 20 Sep 2004 19:01:13 -0700, John Rizzo wrote:

> ...a new screen open up and take all values of the
> selected row.

If you attempt to create new (pop-up) windows for 
your users, you will spend more time fixing (trying 
to fix) this app. than programming it.

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.lensescapes.com/  Images that escape the mundane




==========================================================================
TOPIC: problem with Panel in an applet
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c5c3a2df7fd4b725
==========================================================================

== 1 of 1 ==
Date:   Mon,   Sep 20 2004 11:57 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On Mon, 20 Sep 2004 20:13:48 +0200, Christian "Raistlin" Gulich wrote:

> Andrew Thompson schrieb:
(C.R.G.)
..
> Is there anything else, I should do?
> 
>> Browser, this is an applet?  URL?
> 
> URL is a bit difficult. The applet is the client part of a client server 
> architecture and the server isn't reachable to the public.

The only other thing I can suggeest is preparing a 
SHORT example that demonstrates the problem..
<http://www.physci.org/codes/sscce.jsp>

..and please read that carefully before you come 
back and whine plaintively about your complex panels
and server, etc..  Try creating a two relatively simple 
panels and swapping between them 1000 time etc.

HTH

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.lensescapes.com/  Images that escape the mundane




==========================================================================
TOPIC: different handling of the default locale in java/javaw
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4d0370d3ff90eeb5
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 21 2004 12:13 am
From: [EMAIL PROTECTED] (Christian Marko) 

Hi to all!

As I read in the bug report on the Sun website, the bug, that java and
javaw uses different default locales should be fixed with 1.4.2, but I
use 1.4.2_04 and this bug still occurs.

I use the same jar-package and once I start it with java.exe, then
everything works fine and the default locale in the application is set
to the currently selected os(user) language. If I start it with javaw.exe
the default locale is set to I don't know, maybe the language of the
os version or so.

Thanks in advance
Chris




==========================================================================
TOPIC: java.lang.OutOfMemoryError
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/36b148a9072c44cb
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 21 2004 12:26 am
From: "Richard Chrenko" <[EMAIL PROTECTED]> 

On Mon, 20 Sep 2004 15:15:01 GMT, Flop Meister <[EMAIL PROTECTED]> wrote:

> mamin wrote:
>
>> Help!!!
>> I create two threads.
>> wysylka w1 = new wysylka();
>> new Thread(w1).start();
>>  wysylka w2 = new wysylka();
>> new Thread(w2).start();
>>  In every one I'm executing a query to database.As a result of that  
>> query a
>> have 700000 rows in ResultSet. While executing a query the
>> java.lang.OutOfMemoryError
>> appears.Anyone have idea what to do with it?
>>
>
> The following command line parameters might help, by increasing the  
> maximum heap size. These are for the Sun JDK version of java.exe on  
> Windows, but the documentation indicates they are also available for  
> Linux and Solaris.
>
>     -Xms<size>        set initial Java heap size
>     -Xmx<size>        set maximum Java heap size
>     -Xss<size>        set java thread stack size
>

Careful if you will be distributing your application. The documentation  
states that -X command line arguments are 'unsupported' and may change or  
disappear in future Java versions.




==========================================================================
TOPIC: Web Start, local classpath?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2dbf202f1c3add8f
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 21 2004 12:26 am
From: Andrew Thompson <[EMAIL PROTECTED]> 

On 20 Sep 2004 09:39:23 -0700, JW wrote:
> Andrew Thompson <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
>> On 20 Sep 2004 00:42:33 -0700, JW wrote:
>> 
>>> I am using JBuilder to create a
>>> application, which is basically a swing
>>> client that accesses session beans deployed
>>> on Weblogic 8 server.

> Clients will have permanent internet connection.

In that case it would seem to make more sense
to keep the D/B and beans on the server, and 
simply  have each client connect back to ithe server
for the beans themselves.

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.lensescapes.com/  Images that escape the mundane




==========================================================================
TOPIC: Beginner Advice Sought
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b96a0a430a102e22
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 21 2004 12:29 am
From: Andrew Thompson <[EMAIL PROTECTED]> 

On Tue, 21 Sep 2004 05:06:33 -0600, Joe Beck wrote:

> I was considering using an IDE in my quest for learning the basics of
> Java...unless there is a better approach, or reason to go with the
> commandline compiler.

I recommend the command line, till you have the hang of it..
<http://www.xdweb.net/~dibblego/java/faq/answers.html#q34>

(Oh, OK! I'll admit that even I wanted an editor 
that had keyword highlighting, so I use TextPad)

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.lensescapes.com/  Images that escape the mundane




==========================================================================
TOPIC: JTable Column names
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/61028e9a560138b1
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 21 2004 12:46 am
From: Babu Kalakrishnan <[EMAIL PROTECTED]> 

Paul Lutus wrote:
> 
>>I'm wondering if someone can show me 
>>how to use the following to change the column names, in the seeming
>>absence of a TableModel.
> 
> 
> Your assumption is flawed, but the header value is not set by the table
> model anyway.
> 
> TableColumn column = table.getColumnModel().getColumn(colNum);
> 
> column.setHeaderValue(newValue);
> 

One caveat here :

The OP needs to also remember that "colNum" here would refer to the 
column number in the View - not the model. So if the user reorders the 
columns by dragging on the headers, you might end up assigning the 
header value to the wrong column if you aren't careful. (This can of 
course happen only if the above code is executed at some later phase 
after the table has been shown).

A more robust approach would be to modify the first line to :

TableColumn column = 
table.getColumnModel().getColumn(table.convertColumnIndexToView(colNum));

where "colNum" now refers to the model rather than the view.


BK




==========================================================================
TOPIC: Using own classloader inside J2EE to load and unload own classes.
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fdfcf1acc7ac513a
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 21 2004 1:11 am
From: Stefan Siegl <[EMAIL PROTECTED]> 

Hello it's me again,

I am currently writing my master thesis about a customer relationship 
management (CRM) system. The special thing about this component is that 
the model (the way the CRM data is described) can be changed at runtime. 
That means I do not have the model at compile time. I already posted 
here to get general hints from you guys (sry don't know how to link to 
the other news message, but the name was: Compile java sources inside 
J2EE component)

I specified the component in more detail and am currently trying to 
integrate a persistence layer to persist data. My approach is to create 
classes at runtime that reflect the current model and use instances of 
these classes to represent data entered according to this model.

The classes are loaded by an own classloader and are not part of the 
classpath of the J2EE container. If the model changes, new classes are 
created internally and a new classloader instance is used to load these 
classes. The old instance of my own classloader will not be used 
anymore. Therefore the old classes will not be used anymore. Is this 
possible or will I face problems with the J2EE container?


Another question is the integration of persistence:

What I need is a persistence framework that can deal with this changing 
of the classes at runtime. I thought that it might be possible with an 
JDO implementation. As far as i understand, the PersistenceManager is 
the central point of any JDO implementation and is responsible for 
persisting objects. I wanted to use JDO with the JCA adapter inside a 
J2EE application and provide the PersistenceManager with my own 
classloader to provide the JDO implementation with the needed classes 
that are created at runtime. The JDO specification defines that the 
class should be loaded by a classForName method. Do you think it is 
feasible (or possible) to change this method to use my own classloader 
instead?

Thanks for your advice :)
Stefan



=======================================================================

You received this message because you are subscribed to the
Google Groups "comp.lang.java.programmer".  

comp.lang.java.programmer
[EMAIL PROTECTED]

Change your subscription type & other preferences:
* click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe

Report abuse:
* send email explaining the problem to [EMAIL PROTECTED]

Unsubscribe:
* click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe


=======================================================================
Google Groups: http://groups-beta.google.com 

Reply via email to