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

Today's topics:

* Can someone use invokeLater() to call a public method from a JPanel? - 4 
messages, 4 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/70ac1bf0cc54a090
* Java Applet loading in Applet Viewer but not in HTML page - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/959aa33144aeffb9
* Java Event Listener integer problem. - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/628a6e4b8e256d8d
* Eclipse CDT and JNI - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/31db287f12b81ee5
* Starting tomcat service with locale (characater encoding) - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9552c1fe2f426b7
* How do I make my JDialog's buttons respond to enter key? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/42d85a46a4a0b455
* Java application developped under Linux running ridiculously slow under Windows - 3 
messages, 3 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/accd6c66f1db2bc9
* Oracle JDBC XA question - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3ded1e7f0747a226
* String reuse - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7689b54f75702319
* Java is EVIL, it's the programming language of SATAN ! ! ! - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/195bb46ec0ebeeea
* Convert UTF-8 encoded data from file into unicode escape - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/518625c508ec82f8
* Release version 30 times slower than debug version - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2fb8ed01a0672310
* How to create a JAR file - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ea455ce0dfc0c521
* Materiale su agenti mobili - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/71d9febb6f29c02a
* Roll in the Doug $$$ - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bb16a301573648cc
* java 5 and eclipse. - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/96d308ea2e61db3f
  
==========================================================================
TOPIC: Can someone use invokeLater() to call a public method from a JPanel?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/70ac1bf0cc54a090
==========================================================================

== 1 of 4 ==
Date:   Sun,   Oct 24 2004 1:19 pm
From: Mark Thornton <[EMAIL PROTECTED]> 

Thomas G. Marshall wrote:

> Mark Thornton coughed up:
> 
>>defined. Yes it is true that some people have been surprised by the
>>fact that if a constructor uses a method which has been overridden in
>>a child class, then unlike in C++ it is the child's version which is
>>used.
> 
> 
> ....which is a disaster waiting to happen, because it can allow a superclass
> to access something that has not yet been initialized in the subclass.

Remember of course that Java's default initialisation (to zero/null) has 
occurred, so the consequences are well defined.

Mark Thornton



== 2 of 4 ==
Date:   Sun,   Oct 24 2004 2:43 pm
From: steve <[EMAIL PROTECTED]> 

On Sat, 23 Oct 2004 17:28:00 +0800, Alex Hunsley wrote
(in article <[EMAIL PROTECTED]>):

> ***C.Steamer*** wrote:
>> Basically I want the application to call invokeLater() to update the view 
>> of 
>> the gui. This is for a simple card game.I want to call a public method 
>> called updateHand(Hand hand) which I pass in a hand then it clears the 
>> items 
>> in the JPanel and adds a Label representing each of the cards to the 
>> Jpanel. 
>> For some reason if I call this method from the constructor of the JPanel 
>> but 
>> the invoke method doesn't work. This is my code in the application layer. 
>> Any suggestions why this isin't working?

I suspect it Is working, but that you GUI has not been fully rendered, so you 
are updating something that cannot be seen yet,then the changes are being 
over written.


> 
> For a start, post complete, compilable, working code that demonstrates 
> the problem. Snippets aren't much use.
> 
> Secondly - you are calling something from the constructor of JPanel, you 
> say? How do you mean? Have you edited/recompiled the JPanel source; or 
> overridden JPanel, or what? Anyway, sounds like you're suffering 
> Constructoritis, the disease of doing far too much in constructors. 
> Constructors should do very little - store passed in values, usually; 
> constructors should *not* call non-final or non-private methods, and 
> constructors shouldn't be doing GUI related things. Factor out that 
> stuff into other method(s) that you call after the Constructor has done 
> its stuff. Doing this may solve your problems.
> 
> alex

so  Alex , where should we draw the GUI? , because i am also  extending the 
JPanel deff, then calling the GUI  setup stuff in the constructor.


as in:

public personDet(){
        try {
            if (!initialized) {
                jbInit(); // call the stuff to setup & draw  the GUI
            }

            initialized = true;
        } catch (Exception e) {
            Error_stuff.handleError(e, EXEPTION_ERROR, -1);
        }
    }

I was doing:

     public void addNotify() {
        super.addNotify();

        try {
            if (!initialized) {
                jbInit(); // call the stuff to setup & draw  the GUI
            }

            initialized = true;
        } catch (Exception e) {
            Error_stuff.handleError(e, EXEPTION_ERROR, -1);
        }
    }

but that  "addNotify() " created the strangest bug i had ever seen!!.
 That one took days to find.




== 3 of 4 ==
Date:   Sun,   Oct 24 2004 3:15 pm
From: "Thomas G. Marshall" <[EMAIL PROTECTED]> 

Mark Thornton coughed up:
> Thomas G. Marshall wrote:
>
>> Mark Thornton coughed up:
>>
>>> defined. Yes it is true that some people have been surprised by the
>>> fact that if a constructor uses a method which has been overridden
>>> in a child class, then unlike in C++ it is the child's version
>>> which is used.
>>
>>
>> ....which is a disaster waiting to happen, because it can allow a
>> superclass to access something that has not yet been initialized in
>> the subclass.
>
> Remember of course that Java's default initialisation (to zero/null)
> has occurred, so the consequences are well defined.

Still a disaster.  It has to do with whether or not your code can actually
/use/ a member variable or not as you see it initialized.  You're right in
that it sure is gonna be zero/null.  But that can be a huge source of a
fairly opaque bug.

You know this, but here's the example:

Output:
---> run experiments.simple.BadIdea
B.helper()
B.y=0

package experiments.simple;

class A
{
    A()
    {
        helper();
    }

    void helper()
    {
        System.out.println("A.helper()");
        System.out.println("A.x="+x);
    }

    int x=5;
}


class B extends A
{
    void helper()
    {
        System.out.println("B.helper()");
        System.out.println("B.y="+y);    // ain't gonna see 6.
    }

    int y=6;
}


public class BadIdea
{
    public static void main (String[] args)
    {
        B b = new B();
    }
}



-- 
http://www.allexperts.com is a nifty way to get an answer to just about
/anything/.





== 4 of 4 ==
Date:   Sun,   Oct 24 2004 4:55 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On Mon, 25 Oct 2004 05:43:38 +0800, steve wrote:

> ...because i am also  extending the 
> JPanel deff, then calling the GUI  setup stuff in the constructor.
> 
> 
> as in:
> 
> public personDet(){

I will expand upon something mentioned in this conversation.

A compileable example (is much more useful than descriptions and snippets)
<http://www.physci.org/codes/sscce.jsp>

-- 
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: Java Applet loading in Applet Viewer but not in HTML page
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/959aa33144aeffb9
==========================================================================

== 1 of 2 ==
Date:   Sun,   Oct 24 2004 1:24 pm
From: [EMAIL PROTECTED] (Archana) 

Hi,

My Java Applet loads in an Applet Viewer perfectly but does not load
in any HTML browser(Netscape, IE). This applet is talking to the
oracle database using JDBC.

The exception found on the Java Console in Netscape is:
java.lang.NoClassDefFoundError:
Oracle/jdbc/driver/OraclePreparedStatement

I would highly appreciate any input/solution(s) for this problem.

Thanks!!
Archana



== 2 of 2 ==
Date:   Sun,   Oct 24 2004 4:41 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On 24 Oct 2004 13:24:57 -0700, Archana wrote:

> My Java Applet ..

URL?

>..loads in an Applet Viewer perfectly but does not load
> in any HTML browser(Netscape, IE). 

Running what versions of Java?

>..This applet is talking to the
> oracle database using JDBC.
> 
> The exception found on the Java Console in Netscape is:
> java.lang.NoClassDefFoundError:
> Oracle/jdbc/driver/OraclePreparedStatement

Where is thar class?  Did you include it in the applet 
Jar file?  Are they in a jar file referenced by the HTML?

> I would highly appreciate any input/solution(s) for this problem.

Supply more information.

-- 
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: Java Event Listener integer problem.
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/628a6e4b8e256d8d
==========================================================================

== 1 of 1 ==
Date:   Sun,   Oct 24 2004 1:38 pm
From: [EMAIL PROTECTED] (Mmm_moo_cows) 

Hi,

Pretty new to java and I have hit a small problem with event
listeners, so any help would be very much appreciated.

I wrote a simple program with a jframe and button.  When the button is
clicked, the event listener displays a simple confirmation message in
the console via the System.out.print command.

My problem is I have created an anonymouse inner class (I think its
called that), which is giving me alot of strife when I want to use
integers/objects from my main program.

The simplest example I would like to program is a simple button click
counter. i.e. every time you click a button a message could be
displayed in the console - "Number of clicks = " + counter .

This is what I have so far:-

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

class gui
{
        
        public static void main (String[] args)
        {
        
             
            JFrame frame = new JFrame("Frame");  
            frame.setSize(150, 70);
            
            Container content = frame.getContentPane();
            content.setBackground(Color.white);    
            content.setLayout(new FlowLayout()); 
            
            JButton clickme = new JButton("Click Me!");
            content.add(clickme);                    

            frame.setVisible(true);        
            
            
            clickme.addActionListener(new ActionListener() 
                {
            
                public void actionPerformed(ActionEvent e) 
                {
                    System.out.println("You clicked me");
                }
            }
        );
        }
        
}

Every time I try and include a variable from the main gui class as a
counter I get an error message:

'local variable a is accessed from within inner class; needs to be
declared final'

The real use/application I am looking for is if I had some text boxes
or combo boxes etc (i.e. user input) and a submit button or something.
So, when you click the button it goes into the action event listener
and pulls the input data from those input boxes on the first form, so
it can work something out.
An example may be having 2 text boxes for 2 numbers and a calculate
button which will add them us and display the result in the system
console. (keeping it simple for now!).  I'm not too sure how I would
get data from input boxes from within an inner class as well, i.e.
like getting ahold of those two numbers whilst in the inner class from
that example above.

Any help would be much appreciated.  I have been searching on the
internet and can only find information about setting the event
lisenter up to do an event, but nothing about actually using
objects/variables in the event.

Or am I approaching this a completely wrong way? if so could you
please point me in the right direction.

Thanks for any help in advance, it will be greatly appreciated.

Cheers, Jon




==========================================================================
TOPIC: Eclipse CDT and JNI
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/31db287f12b81ee5
==========================================================================

== 1 of 2 ==
Date:   Sun,   Oct 24 2004 1:55 pm
From: [EMAIL PROTECTED] (Ann) 

Hi,
    I am a newbie to eclipse, and wondering how I can setup the CDT. I
have installed the runtime and SDK files for the CDT.

Do I need to install Cygwin to make,build and debug a C project??

Can I make a dll from a c file?

I am working on a JNI project, and I am not sure if Eclipse would be
the best choice for this?


Please Suggest,

Thank You,
Ann



== 2 of 2 ==
Date:   Sun,   Oct 24 2004 5:38 pm
From: IchBin <[EMAIL PROTECTED]> 

Ann wrote:
> Hi,
>     I am a newbie to eclipse, and wondering how I can setup the CDT. I
> have installed the runtime and SDK files for the CDT.
> 
> Do I need to install Cygwin to make,build and debug a C project??
> 
> Can I make a dll from a c file?
> 
> I am working on a JNI project, and I am not sure if Eclipse would be
> the best choice for this?
> 
> 
> Please Suggest,
> 
> Thank You,
> Ann

Ann,
It might be better for you to post this question to the Eclipse 
newsgroups, 'news.eclipse.org', specifically the 'eclipse.tools.cdt'.
Not that someone here could not help out but better to talk there where 
you may be answered by one of the development team.

-- 

Thanks in Advance...
IchBin
__________________________________________________________________________

'Laughter is inner jogging'
- Norman Cousins, editor and author (1915-1990)




==========================================================================
TOPIC: Starting tomcat service with locale (characater encoding)
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9552c1fe2f426b7
==========================================================================

== 1 of 1 ==
Date:   Sun,   Oct 24 2004 2:16 pm
From: [EMAIL PROTECTED] (tosh) 

Hello,

I have set up a web service using Tomcat and Struts facilities.
Tomcat runs in a jail (chroot). I have put the /usr/share/locale
directory within the jail because i use latin encoding characters.

Now The facts (!) : When i start tomcat service (typing "service
tomcat start") in a root terminal, everything is fine. But when it
starts at startup (i have added it with the chkconfig command), tomcat
indeed starts but when i connect on my web page, i have noticed that
local character encoding is no more taken into account (e.g. when
typing "é" in a form, the "é" character has lost its "signification"
at the server side (it is replaced by weird character).

Can anyone help or suggest me some tests?
Thank you all in advance.
Regards.




==========================================================================
TOPIC: How do I make my JDialog's buttons respond to enter key?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/42d85a46a4a0b455
==========================================================================

== 1 of 1 ==
Date:   Sun,   Oct 24 2004 3:30 pm
From: [EMAIL PROTECTED] (Paul Tomblin) 

In a previous article, "Bryan Cooper" <[EMAIL PROTECTED]> said:
>I've put together a sample TestDialog and TestPanel class that use the
>DefaultKeyHandler class that I posted.  I think this test case matches the
>behavior you're looking for.  I don't think there is a one-line (or just a
>couple of lines of code) solution to this one because of how focus works in
>Java.
>
>Code is attached.  Hope this helps you.

Thanks a lot for this, Bryan.  I'll give it a try at work tomorrow.


-- 
Paul Tomblin <[EMAIL PROTECTED]> http://xcski.com/blogs/pt/
"low ping bastard: n. anybody getting more frags than the person running their
client on the server." - Steve Caskey




==========================================================================
TOPIC: Java application developped under Linux running ridiculously slow under Windows
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/accd6c66f1db2bc9
==========================================================================

== 1 of 3 ==
Date:   Sun,   Oct 24 2004 3:29 pm
From: "hshdude" <[EMAIL PROTECTED]> 

Hi,

I have been working with a time-criticial application written in Java by my
predecessors in the lab.  It's a server that keeps track of objects running
around in real time, with clients connecting via TCP/IP to get information
about those objects.  The clients can then display that information in
various (mostly graphical) ways and send requests to the server for a
particular object to change its behavior (e.g. speed).  Clients and server
initially ran in separate processes, but now run as separate threads within
the same process (in a largely unsuccessful attempt to speed things up).

The application has so far only been used under Linux but now the need arose
for it to be runnable under Windows.  Running it isn't really the problem,
the problem is the speed with which it runs.  There aren't any hard
computations involved and it runs much slower on Windows than on Linux even
when run on the same (physical) machine, to the extent that it's unusable as
it need to run in real time.  Does anyone have any idea what might be going
on here?

Thanks in advance

cheers,
Arnold


[I'm posting this on three groups at the same time that seem relevant.]





== 2 of 3 ==
Date:   Sun,   Oct 24 2004 4:43 pm
From: Michael Borgwardt <[EMAIL PROTECTED]> 

hshdude wrote:
> The application has so far only been used under Linux but now the need arose
> for it to be runnable under Windows.  Running it isn't really the problem,
> the problem is the speed with which it runs.  There aren't any hard
> computations involved and it runs much slower on Windows than on Linux even
> when run on the same (physical) machine, to the extent that it's unusable as
> it need to run in real time.  Does anyone have any idea what might be going
> on here?

There are programs called profilers that tell you exactly where an application
spends its time. Get one of these and use it.

Guesswork is a very bad basis for performance tuning.



== 3 of 3 ==
Date:   Sun,   Oct 24 2004 5:10 pm
From: "Ann" <[EMAIL PROTECTED]> 


"hshdude" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I have been working with a time-criticial application written in Java by
my
> predecessors in the lab.  It's a server that keeps track of objects
running
> around in real time, with clients connecting via TCP/IP to get information
> about those objects.  The clients can then display that information in
> various (mostly graphical) ways and send requests to the server for a
> particular object to change its behavior (e.g. speed).  Clients and server
> initially ran in separate processes, but now run as separate threads
within
> the same process (in a largely unsuccessful attempt to speed things up).
>
> The application has so far only been used under Linux but now the need
arose
> for it to be runnable under Windows.  Running it isn't really the problem,
> the problem is the speed with which it runs.  There aren't any hard
> computations involved and it runs much slower on Windows than on Linux
even
> when run on the same (physical) machine, to the extent that it's unusable
as
> it need to run in real time.  Does anyone have any idea what might be
going
> on here?
>
> Thanks in advance
>
> cheers,
> Arnold
>
>
> [I'm posting this on three groups at the same time that seem relevant.]
>

Does it use threads? The implementation of threads is different I believe.







==========================================================================
TOPIC: Oracle JDBC XA question
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3ded1e7f0747a226
==========================================================================

== 1 of 1 ==
Date:   Sun,   Oct 24 2004 3:59 pm
From: Lee Fesperman <[EMAIL PROTECTED]> 

spiderbug wrote:
> 
> Thanks a lot for replying, Lee. As far as the JDBC and JTA specs both
> say (I'm not sure about what the X/Open spec says) the transaction
> boundaries are demarcated by the start and end calls.
> 
> <quote>Your scheme would force the DBMS to support two separate
> transactions for a connection. </quote>
> That's what the XAresource interface is supposed to do, IMO. In fact
> the JTA spec quite clearly says this in an example - but not
> concurrently.  Of course, here 'only one transaction' means only one
> transaction at a single time - but what about one after the other,
> without commiting the first and use the same XAresource? Also, since
> the connection and the xaresource are tightly bound as far as marking
> transactional boundaries are concerned, there cannot be a case where
> the connection is operating in a different transaction than what the
> XAresource has been informed of through the start call.
> Hope the above paragraph was not confusing!! :) - Am a bit confused
> myself about the whole thing.

Good! Your response made me dig a little. I had mostly just consulted the XA spec, 
which 
was vague in that area. Looking deeper, I checked our (FirstSQL/J ORDBMS) XA code, 
which 
does support mixing global and local transactions in this manner, and checked the JTA 
spec.

Section 3.4.7 "Local and Global Transactions" in my JTA spec (1.01B) encourages a 
resource adapter (JDBC Driver & RDBMS) to support local transactions on a connection 
after being 'disassociated' from a global transaction with end(). OTOH, the section 
does 
also permits an RDBMS to disallow it and throw a native exception. Thus, Oracle seems 
to 
be compliant with JTA in this area.

I hope that clears up the confusion I promulgated with my earlier response.

-- 
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS  (http://www.firstsql.com)




==========================================================================
TOPIC: String reuse
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7689b54f75702319
==========================================================================

== 1 of 1 ==
Date:   Sun,   Oct 24 2004 4:07 pm
From: Lee Fesperman <[EMAIL PROTECTED]> 

John C. Bollinger wrote:
> 
> Lee Fesperman wrote:
> 
> > Tony Morris wrote:
> >
> >>The concept of a "String literal pool" is in fact a very abstract one, that
> >>should be used only to understand how String compile-time constants (JLS 2e
> >>15.28) are handled at runtime. That is, there is no 'actual pool'.
> >
> > Why do you say that? java.lang.String#intern() states that it uses the pool
> > (of unique strings.)
> 
> The class String maintains a pool of unique Strings, to which
> String.intern() method may add a String when invoked.  References to
> compile-time constant Strings are guaranteed to refer to an interned
> String.  However, as I was recently made aware, otherwise unreferenced
> String instances can be GC'd from the intern pool ("can" in the sense
> that recent Sun JVMs can be observed to do so), so it is not in general
> safe to assume that the String instance representing a particular
> compile-time constant String  at one point in your program's execution
> is the same instance that represents the same or an equal String at some
> other point in your program's execution.  Whether this is a reasonable
> behavior is subject to debate, but the fact that Sun's own JVM exhibits
> it makes the question rather moot.

Of course, my article was just to point out to Tony that the pool does exist. However, 
you bring up a good issue for discussion. I had assumed that the string pool never 
shrunk.

Thinking about it, it seems to be a good optimization for the JVM to make. Generally, 
an 
application couldn't even tell that unreferenced strings were dropped from the pool. 
The 
only ways to detect it would be to use WeakReference's, etc. or to retain the 
identityHashCode for an intern'ed string for later checking. The latter is not 
guaranteed to work, though.

-- 
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS  (http://www.firstsql.com)




==========================================================================
TOPIC: Java is EVIL, it's the programming language of SATAN ! ! !
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/195bb46ec0ebeeea
==========================================================================

== 1 of 2 ==
Date:   Sun,   Oct 24 2004 4:35 pm
From: [EMAIL PROTECTED] (Karl-Hugo Weesberg) 

Java is EVIL, it's the work of the devil, made to collect your
souls and to turn you into brainless slaves of hell.

If you like Java, you will lose your soul to be damned
for eternal torment in hell.Demons and devils will feast on your soul
for all eternity.

So stop using it now to save your soul.

Or the holy inquisition will come for you and burn your flesh to save
your soul, because the devil must not collect more souls or nobody can
prevent Armageddon.

Java is evil, using it is BLASPHEMY , only heretics and
witches like Java.And heretics and witches shall BURN !

Java = programming language written by SATAN in Hell's Kitchen in 666 minutes ! ! !



== 2 of 2 ==
Date:   Sun,   Oct 24 2004 5:25 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On 24 Oct 2004 16:35:12 -0700, Karl-Hugo Weesberg wrote:

> Java is ...

I got sucked in by one of these over on c.l.js.
<http://google.com/groups?selm=7666ed5f.0410222029.74ba0b%40posting.google.com>

Not this time.  Follow-ups set to 'someone.the.hell.who.cares'..

-- 
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: Convert UTF-8 encoded data from file into unicode escape
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/518625c508ec82f8
==========================================================================

== 1 of 1 ==
Date:   Sun,   Oct 24 2004 4:36 pm
From: Michael Borgwardt <[EMAIL PROTECTED]> 

Fritz Bayer wrote:
> I'm looking for a little program, which reads utf-8 data from a file
> and writes it in the form of unicode escape into another text file.

Sun distributes that program with its JDK/SDK. It's called
"native2ascii".




==========================================================================
TOPIC: Release version 30 times slower than debug version
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2fb8ed01a0672310
==========================================================================

== 1 of 1 ==
Date:   Sun,   Oct 24 2004 4:49 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On Sun, 24 Oct 2004 16:47:57 +0200, croeltgen wrote:

> I have a developped an applet in Visual J++ 6.0 and I encounter the
> situation that the when it runs in debug mode everything is fine, but
> when I run in release mode, the execution is 30 (thirty!) times
> slower. I didnt encounter this problem before and I use J++ since 2
> years already. Apart from a corrupted J++ I cannot image what the
> reason could be.

AFAIU, there are two distinct aspects to this problem.
1. 'slow'
2. 'Visual J++'

If you wish to continue using a tool not especially well
suited to writing Java (2.) your best bet is to take it
to the manufacturer (of the tool) or a group discussing same.

If you wish to receive help here, drag your source, (kicking
and screaming, if necessary) out of your tool and compile/run
it from the command line.  In the event the 30x difference 
remains, come back here with an SSCCE* for further advice.

* <http://www.physci.org/codes/sscce.jsp>

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: How to create a JAR file
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ea455ce0dfc0c521
==========================================================================

== 1 of 1 ==
Date:   Sun,   Oct 24 2004 4:51 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On 24 Oct 2004 05:16:22 -0700, Samar Hossam wrote:

> Dear everyone, ..

How many groups do you intend to multi-post this 
question to Samar?  Please don't multi-post.
<http://www.physci.org/codes/javafaq.jsp#xpost>

-- 
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: Materiale su agenti mobili
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/71d9febb6f29c02a
==========================================================================

== 1 of 2 ==
Date:   Sun,   Oct 24 2004 4:55 pm
From: "Gabrisal" <[EMAIL PROTECTED]> 

Ciao, chiunque sappia qualcosa sugli agenti mobili intelligenti java mi dica
dove posso trovare materiale utile per il loro utilizzo e altro...
Grazie.
Mandatemi qualcosa alla posta elettronica [EMAIL PROTECTED]





== 2 of 2 ==
Date:   Sun,   Oct 24 2004 5:22 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On Sun, 24 Oct 2004 23:55:58 GMT, Gabrisal wrote:

> Ciao, chiunque sappia qualcosa sugli agenti mobili intelligenti java mi dica
> dove posso trovare materiale utile per il loro utilizzo e altro...
> Grazie.
> Mandatemi qualcosa alla posta elettronica [EMAIL PROTECTED]

Google say..

Hello, anyone knows something on the agents furnish intelligent 
java says to me where I can find useful material for theirs I 
use and other...  Thanks.  

You send something to me to the e-mail Gabri...

I reply..

1) You need to realise this usenet newsgroup is based on English.
If you wish to participate and do not speak English, please use
Google 'translate' tools to post both languages.  There may also
be a group focused on Java that is Italian, there are German and
French ones, not sure about Italian.

2) Your words are not clear enough yet for me to help you, though
other may know what you are referring to.  Are you trying to find 
an 'intelligent agent' in Java?

3) This is not a 'help desk' where you post a question and can
expect someone to 'email you a reply'.  If you are too lazy to
come back here for a response, do not post in the first place,
Thank you.
____________________________________________________
1) avete bisogno di realizzate che questo newsgroup di USENET è basato
sull'inglese.  Se desiderate partecipare e non parlate inglese, usi prego
Google 'traducono 'gli attrezzi per inviare entrambe le lingue.  Ci può
anche essere un gruppo messo a fuoco su Java che è italiano, là è tedesco e
francesi un, non sicuro circa italiano.  

2) le vostre parole non sono abbastanza chiare ancora affinchè me li
aiutino, benchè altra possa conoscere a che cosasiete riferendosi iete
riferendosi.  State provando a trovare 'un agente intelligente 'in Java?  

3) questo non è 'un servizio d'assistenza 'dove inviate una domanda e
potete prevedere qualcuno 'email voi una risposta '.  Se siete troppo pigri
per ritornare qui per una risposta, non invii in primo luogo, grazie.

-- 
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: Roll in the Doug $$$
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bb16a301573648cc
==========================================================================

== 1 of 1 ==
Date:   Sun,   Oct 24 2004 5:14 pm
From: Sudsy <[EMAIL PROTECTED]> 

Enzo wrote:
<snip>

Does Doug know what you're writing about him?  ;-)

-- 
Java/J2EE/JSP/Struts/Tiles/C/UNIX consulting and remote development.





==========================================================================
TOPIC: java 5 and eclipse.
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/96d308ea2e61db3f
==========================================================================

== 1 of 1 ==
Date:   Sun,   Oct 24 2004 5:28 pm
From: "Jim McMaster" <[EMAIL PROTECTED]> 

At 10/21/2004 1:38:04 AM, steph wrote:

> Hello,
> 
> What is the best way to use Eclipse for Java5 programming (code
> editor and syntaxe highlighting, compilation) ?
> 
> Thanks in advance.

You have to use one of the 3.1 Milestone releases.  There was a
"Cheetah" extension you could download for 3.0, but they stopped
developing that when they rolled the Java5 code into the main branch
for 3.1.

Be aware, the Java5 support is not finished, and is not scheduled to be
until next spring.  The last posting I saw on the bug report says the
compiler now handles all the new features, but the JDT runtime does
not.  If you want to read the latest status, look at
http://www.eclipse.org, and find bug report 36938 [plan item] Add early
support for J2SE 1.5 features.

The latest estimates from that bug report are:

Current estimates (still draft) for full JDT/Core support (i.e.
compiler,
search, codeassist, codeselect, formatting, model, dom ast).
M3(nov05) - generics
M4(dec17) - autoboxing, static imports
M5(feb18) - varargs, enums
M6(apr01) - annotations

Note the compiler will always be ahead of the rest of the tooling, so
it will
be fully 1.5 enabled way before all tools have been leveraged (we
expect at
beginning of 2005).

-- 
Jim McMaster
[EMAIL PROTECTED]



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

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