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

Today's topics:

* program arguments - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/44d9b350ac879ea0
* Version 1.3.1 Versus 1.4.2_04 - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/65e179ef76a09f65
* Full Screen Game - 8 messages, 4 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/512b4296a1e5c69f
* explanations about the Decorator design pattern - 2 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cdc793ab3b8e63d7
* Problems with axis, connecting to web service - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/708b0772d7caad79
* Help with Eclipse Plugins - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/499fba8c336aae9f
* jsps and tomcat - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/97a1ba7b22c7b8dd
* How to tell if a drive is local or remote in Java ???? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/373f029a6fac31a9
* How to write an efficient maximum function? - 3 messages, 3 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f759ff7cc130859e
* Creating primitive data types from contents of String - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4d8fc307a0b9125d
* jfreechart - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/706a52d3d94eff
* IE not detecting Java plug in. - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ca11ea82f98b83f
* How to create a excute file - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/453049a84ae975c2
* use com port as parallel port - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/43f0abc240232d51
* CD label - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1298a2877b52cf73
* Using java.util.regex in JDK 1.3 - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2a4390453d4e5927
* Where do I get the javacc java api document? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6c8f306325d131f4
* Any blackberry newsgroups or good links? Suggestions on project? - 1 
messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/94b17a3dc82f8d70
  
==========================================================================
TOPIC: program arguments
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/44d9b350ac879ea0
==========================================================================

== 1 of 2 ==
Date:   Mon,   Nov 15 2004 3:12 pm
From: Jeff Kish <[EMAIL PROTECTED]> 

Hi.

It seems to be occuring at the command line outside of eclipse also, so... 
Could 
someone explain the unrolling/expansion under Windows XP of the commandline
wildcard parameter? I can try under an OS group if that would be better.

Thanks

Here is the beginning of the output:

C:\eclipse3.1\workspace\RunXQuery>java RunXQuery -InputFiles 
c:\Merlin\Resources\Presentations\*.xml
-XQueryFile c:\Merl
in\Resources\Presentations\RunXQueryTest.xq
In main
arg0 = -InputFiles
arg1 = c:\Merlin\Resources\Presentations\action.xml
arg2 = c:\Merlin\Resources\Presentations\actionscfg.xml
arg3 = c:\Merlin\Resources\Presentations\activity.xml
arg4 = c:\Merlin\Resources\Presentations\asset.xml
arg5 = c:\Merlin\Resources\Presentations\assetcat.xml
arg6 = c:\Merlin\Resources\Presentations\bboard.xml
arg7 = c:\Merlin\Resources\Presentations\books.xml
arg8 = c:\Merlin\Resources\Presentations\calendr.xml
arg9 = c:\Merlin\Resources\Presentations\change.xml


Here is the start of my main class:

public static void main (String[] args) throws Throwable
  {
        //private static Logger logger = 
Logger.getLogger(Parameters1.class.getName());
        System.out.println("In main");

        if (args.length < 4) 
        {
        printUsage();
        System.exit(1);
    }
    Vector vInputFiles = new Vector();
    String stXQueryFile = null;
    boolean gettingInputFiles = false;
    boolean gettingXQueryFile = false;
    
        String stDebug = new String();
    for (int currentArg = 0; currentArg < args.length; currentArg++)
    {
        stDebug = "arg" + currentArg + " = " + args[currentArg];
        System.out.println(stDebug);
        :
        :
        :




== 2 of 2 ==
Date:   Tues,   Nov 16 2004 12:32 am
From: Thomas Weidenfeller <[EMAIL PROTECTED]> 

Jeff Kish wrote:
> Don't really know java or eclipse well enough yet..
> I want to pass a parameter to the program.
> In the debug I add these parameters:
> "-inputfiles c:\xmlfiles\*.xml"
> 
> When I get in my main I find that instead of what I expected:
> args[0] "-inputfiles"
> args[1] "c:\xmlfiles\*.xml"
> 
> I get:
> args[0] "-inputfiles"
> args[1] "c:\xmlfiles\file1.xml"
> args[2] "c:\xmlfiles\file2.xml"
>       :
>       :
> args[n] "c:\xmlfiles\filen.xml"
> 
> 
> So it seems to "unroll" my parameter with a wildcard into a list of files.
> 
> Is this normal "java" thing, or is this something eclipse is doing or what?

This has nothing to do with Java. Read about your shell (or whatever 
your command line environment is called), and look up how to properly 
quote arguments to avoid expansion by the shell.

/Thomas




==========================================================================
TOPIC: Version 1.3.1 Versus 1.4.2_04
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/65e179ef76a09f65
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 3:15 pm
From: [EMAIL PROTECTED] (Kevin Simonson) 

Michael Borgwardt <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...

=> do you have "." - the current directory in the class path ? try to add "."
=> in the classpath  when you compile the second class.
=
=Or better yet, don't set the classpath environment variable at all.

     I think both machines I ran that program on were Linux machines.
How do I go about finding out if the "classpath" variable is set, and
how to change it if it is?

                                ---Kevin Simonson

"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_

-------------------------------------------------------------------------------
nail:Ncl/Java_bash-2.05b$ hostname
nail.cs.byu.edu
nail:Ncl/Java_bash-2.05b$ java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
nail:Ncl/Java_bash-2.05b$ cat Bug.java
public class Bug
{
  int bug;

  public Bug ( int bg)
  {
    bug = bg;
  }

  public int bugSquared ()
  {
    return bug * bug;
  }
}
nail:Ncl/Java_bash-2.05b$ cat BugDriver.java
public class BugDriver
{
  public static void main ( String[] arguments)
  {
    System.out.println
      ( "(new Bug( 7)).bugSquared() == " + (new Bug( 7)).bugSquared() + '.');
  }
}
nail:Ncl/Java_bash-2.05b$ javac Bug.java
nail:Ncl/Java_bash-2.05b$ javac BugDriver.java
nail:Ncl/Java_bash-2.05b$ java BugDriver
(new Bug( 7)).bugSquared() == 49.
nail:Ncl/Java_bash-2.05b$
-------------------------------------------------------------------------------
[EMAIL PROTECTED] Rid3]$ hostname
star
[EMAIL PROTECTED] Rid3]$ java -version
java version "1.3.1"
jdkgcj 0.2.3 (http://www.arklinux.org/projects/jdkgcj)
gcj (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[EMAIL PROTECTED] Rid3]$ cat Bug.java
public class Bug
{
  int bug;

  public Bug ( int bg)
  {
    bug = bg;
  }

  public int bugSquared ()
  {
    return bug * bug;
  }
}
[EMAIL PROTECTED] Rid3]$ cat BugDriver.java
public class BugDriver
{
  public static void main ( String[] arguments)
  {
    System.out.println
      ( "(new Bug( 7)).bugSquared() == " + (new Bug( 7)).bugSquared() + '.');
  }
}
[EMAIL PROTECTED] Rid3]$ javac Bug.java
[EMAIL PROTECTED] Rid3]$ javac BugDriver.java
BugDriver.java: In class `BugDriver':
BugDriver.java: In method `BugDriver.main(java.lang.String[])':
BugDriver.java:6: Class `Bug' not found in type declaration.
         ( "(new Bug( 7)).bugSquared() == " + (new Bug( 7)).bugSquared() + '.');
                                                   ^
1 error
[EMAIL PROTECTED] Rid3]$
------------------------------------------------------------------------------




==========================================================================
TOPIC: Full Screen Game
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/512b4296a1e5c69f
==========================================================================

== 1 of 8 ==
Date:   Mon,   Nov 15 2004 3:21 pm
From: Todd Carnes <[EMAIL PROTECTED]> 

I'm not sure, but I think this might be related to what you're looking 
for...if you're using Swing components. I don't think you really said.

http://java.sun.com/docs/books/tutorial/uiswing/14painting/index.html

Also, you might want to check ot this link.

http://www.sdsc.edu/~nadeau/Courses/SDSCjava3d/

I hope this helps.

Todd



== 2 of 8 ==
Date:   Mon,   Nov 15 2004 3:30 pm
From: "Mike" <[EMAIL PROTECTED]> 

Thanks a lot for the links Carl and Todd, I have skimmed them briefly
right now, and added them to my list of sites to look through more
carefully.  Most specifically, the java3d link intersts me, not really
for this program, but I am also intersted in learning j3d in general.

As I mentioned before, I have found several solutions to my custom gui
problem.  Right now, I plan to use the synth package
(javax.swing.plaf.synth).  I am already in the process of making the
images and xml document.  I hope to have a working test by the end of
today.




== 3 of 8 ==
Date:   Mon,   Nov 15 2004 4:06 pm
From: Todd Carnes <[EMAIL PROTECTED]> 

Andrew Thompson wrote:

<snip>

This has absolutely NOTHING to do with this thread, but I just wanted to 
thank you for your web page at

http://www.physci.org/codes/javafaq.jsp#cljh

It's been a lot of help for me as I try to learn Java.



== 4 of 8 ==
Date:   Mon,   Nov 15 2004 4:22 pm
From: Todd Carnes <[EMAIL PROTECTED]> 

Mike wrote:
> Thanks a lot for the links Carl and Todd, I have skimmed them briefly
> right now, and added them to my list of sites to look through more
> carefully.  Most specifically, the java3d link intersts me, not really
> for this program, but I am also intersted in learning j3d in general.
> 
> As I mentioned before, I have found several solutions to my custom gui
> problem.  Right now, I plan to use the synth package
> (javax.swing.plaf.synth).  I am already in the process of making the
> images and xml document.  I hope to have a working test by the end of
> today.
> 

How about this one.

http://java.sun.com/docs/books/tutorial/extra/fullscreen/doublebuf.html



== 5 of 8 ==
Date:   Mon,   Nov 15 2004 4:26 pm
From: Todd Carnes <[EMAIL PROTECTED]> 

Todd Carnes wrote:
> Mike wrote:
> 
>> Thanks a lot for the links Carl and Todd, I have skimmed them briefly
>> right now, and added them to my list of sites to look through more
>> carefully.  Most specifically, the java3d link intersts me, not really
>> for this program, but I am also intersted in learning j3d in general.
>>
>> As I mentioned before, I have found several solutions to my custom gui
>> problem.  Right now, I plan to use the synth package
>> (javax.swing.plaf.synth).  I am already in the process of making the
>> images and xml document.  I hope to have a working test by the end of
>> today.
>>
> 
> How about this one.
> 
> http://java.sun.com/docs/books/tutorial/extra/fullscreen/doublebuf.html

Ack! I meant this...

http://java.sun.com/docs/books/tutorial/extra/fullscreen/index.html



== 6 of 8 ==
Date:   Mon,   Nov 15 2004 7:10 pm
From: marcus <[EMAIL PROTECTED]> 

Was helpful.  Learn to think, and learn how to effectively use 
resources.  Just read his babble in response to my post.  Kid can't think.

don't feel sorry for my son -- he is an A student at the Naval Academy 
and having the time of his life.  And he can think on his own.

Todd Carnes wrote:
> marcus wrote:
> 
>> I decided to reply before reading andrew's responses, so consider this 
>> a less friendly enhancement.
>>
>> Mike wrote:
>>
>>> Sup everyone,
>>> I'm still only a scenior
>>
>>
>>
>> spelling, and frankly I don't care
> 
> 
> <snip>
> 
> There really was no reason to be rude and obnoxious to the kid. He 
> wasn't hurting you.
> 
> If you didn't have any REAL help to offer him, you could have just 
> ignored his post and moved on to something that DID interest you.
> 
> I have teenage sons myself & quite frankly I had no problem 
> understanding his request. He sounded like every other teenager out 
> there. In fact, he was a lot more polite than many I have run into.
> 
> Frankly, if you would "ream" your son for such a harmless post as the 
> one Mike posted, then I feel sorry for your son.




== 7 of 8 ==
Date:   Mon,   Nov 15 2004 7:11 pm
From: marcus <[EMAIL PROTECTED]> 

Nah -- when I'm in a bad mood I erase everything and don't post hehe

[EMAIL PROTECTED] wrote:
> marcus <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> 
>>I decided to reply before reading andrew's responses, so consider this a 
>>less friendly enhancement.
> 
> 
> (Snip!)
> 
> 
>>I have a teen-age son who is currently in the US Naval Academy, and I 
>>can assure you if he displayed logic as vacuous as this during his high 
>>school years he would have been thoroughly reamed.
>>
>>Next time, if you need specific help with a specific problem, be sure to 
>>check out C.L.J.help.  Otherwise, learn to paint if you want pretty.
> 
> 
> 
> Good lord, Marcus, what a mood you're in today!
> 
> Mike, sorry, I don't have any answers to your questions, but do let us
> know when your game's finished: it sounds interesting.
> 
> .ed
> 
> www.EdmundKirwan.com - Home of The Fractal Class Composition




== 8 of 8 ==
Date:   Mon,   Nov 15 2004 10:49 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On Mon, 15 Nov 2004 19:06:22 -0500, Todd Carnes wrote:

(snip)
> ....I just wanted to 
> thank you for your web page at
> 
> http://www.physci.org/codes/javafaq.jsp#cljh

You are welcome.   :-)

> It's been a lot of help for me as I try to learn Java.

I'll accept your kind words on my Java FAQ on behalf of the 
people who have contributed significant input to it so far..
<http://www.physci.org/codes/javafaq.jsp#contrib>

-- 
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: explanations about the Decorator design pattern
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cdc793ab3b8e63d7
==========================================================================

== 1 of 2 ==
Date:   Mon,   Nov 15 2004 3:25 pm
From: [EMAIL PROTECTED] (Jean Lutrin) 

"xarax" <[EMAIL PROTECTED]> wrote in message 

(snip)

> What's wrong with just extending Inefficient and
> overriding doSomeTask() ?

Hi Xarax,

I could have done it, and that's why I precised that
I decided not too. But I didn't explain why.

First reason is that I prefer to use the higher
abstraction as possible. As Tony Morris pointed out, the
method I employed is very similar to (if not exactly) a
Proxy and:

"Classes for proxy objects are declared in a way that usually
eliminates client object's awareness that they are dealing
with a proxy."

I made this choice by myself though, because it somehow
felt, to me, the right thing to do.

The second reason is that, in my particular case, it looks
like this (oversimplified and class names changed to 
protect the innocent ;) :


abstract class Solver {...}

class SlowSolver extends Solver {...}

class FastSolver extends Solver {...}



It would feel really strange, in this code, to have 
a FastSolver extends a SlowSolver.

As a little plus, if I decide one day to completely rewrite
all the methods, I can just remove the private, enclosed,
inefficient object and delete the inefficient class, without
the code requiring any other modification.

The object is really, in this example, a Solver, not a
SlowSolver: the fact that it internally uses a SlowSolver
is, to me, an implementation detail.

I don't know if it makes any sense though !?

See you soon on cljp,

 Jean



== 2 of 2 ==
Date:   Mon,   Nov 15 2004 3:32 pm
From: [EMAIL PROTECTED] (Jean Lutrin) 

Hi Tony,

"Tony Morris" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...

(snip)

> I have sincere doubts that this is the cause of
> a performance bottleneck.

Oops, sorry for my french. I didn't explain myself
correctly :(

This design choice is not the bottleneck: the bottleneck
was there before I started using the Proxy: it was
coming from a very computational (and memory) intensive
method. So I decided to find a workaround: behing able to
optimize this method, without having to re-implement all
the other methods from the class.

It looks indeed like a Proxy :)

But the Proxy design pattern is so fundamental (pun intended ;)
that I missed it !

Thanks again, and thanks for your explanations about the
Decorator. Everything is much clearer now.


  Jean




==========================================================================
TOPIC: Problems with axis, connecting to web service
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/708b0772d7caad79
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 3:40 pm
From: "Jbjones" <[EMAIL PROTECTED]> 

All of a sudden my service that was having no problem being consumed is
starting to barf on me.  When I try to connect in java, I get this
error message:

<error>
E:\24Heather>java Soap24hours
Exception in thread "main" AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: Premature end of file.
faultActor:
</error>

I am not at all knowledgable of troubleshooting axis faults, but what I
have figured is that this means that the server did not return a full
file to me.  However, could it mean that I did not send it a complete
request?  Since I have not changed anything, would this mean the server
and the way it operates changed, or that I somehow managed to change
something on my system.
Any ideas on where I should begin to even attempt to mess with this?





==========================================================================
TOPIC: Help with Eclipse Plugins
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/499fba8c336aae9f
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 4:03 pm
From: Alex Fitzpatrick <[EMAIL PROTECTED]> 

Anirudh wrote:
> Hi,
>    I am a new user of eclipse. i have learnt how to create views as
> plugins in eclipse. Now i need to create a perspective wherein various
> views communicate with each other (a button click in one view should
> translate to an action in another). Can anyone please help me with
> this - either by providing source of any information or the
> information on how to go about doing it itself.
>     Thanx in advance :)

Short answer is open the plugin.xml file (in eclipse, so that the form 
UI is showing), go to the Extensions tab and define a new extension on 
org.eclipse.ui.perspectives.

I don't know if there's an example of a perspective in the FAQ, but it's 
an essential read:

- http://www.eclipsefaq.org

Ed Burnett's RCP tutorial has an example perspective:

- http://eclipse.org/articles/Article-RCP-1/tutorial1.html

For more focused discussion on eclipse issues, you should check out the 
eclipse newsgroups:

- http://eclipse.org/newsgroups/index.html


-- 
Alex




==========================================================================
TOPIC: jsps and tomcat
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/97a1ba7b22c7b8dd
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 5:10 pm
From: "Ryan" <[EMAIL PROTECTED]> 

how do i know what tomcat has in its classpath?
"kaeli" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> In article <[EMAIL PROTECTED]>, 
> [EMAIL PROTECTED]
> enlightened us with...
>> I have a jsp that is running. it converts to a servlet and compiles when 
>> i
>> run call the screen with my IE browser. I opened the servlet that was
>> generated and placed in the 'work' directory.
>>
>> i cannot compile the servlet. why? It was just compiled by tomcat. I was
>> able to compile it a little while ago.
>>
>> I would like to be able to test compile the generated servlet, since it
>> tells me more information when i have bugs.
>>
>> do i need to place certain things in my classpath to compile the servlet
>> with 'javac'?
>
> Yes.
> Whatever Tomcat has in its classpath should do fine.
> Or you can dissect the error messages you get and place each required 
> thing
> in your classpath. But just copying/pasting Tomcat's is quicker.
>
> -- 
> --
> ~kaeli~
> Do cemetery workers prefer the graveyard shift?
> http://www.ipwebdesign.net/wildAtHeart
> http://www.ipwebdesign.net/kaelisSpace
> 






==========================================================================
TOPIC: How to tell if a drive is local or remote in Java ????
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/373f029a6fac31a9
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 5:32 pm
From: "nwc" <[EMAIL PROTECTED]> 

Why does it matter to you? If it's matter of choosing among available
drives for temp space, for example, you could select one based on how long
it takes to write something and read it back.





==========================================================================
TOPIC: How to write an efficient maximum function?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f759ff7cc130859e
==========================================================================

== 1 of 3 ==
Date:   Mon,   Nov 15 2004 6:00 pm
From: Ahmed Moustafa <[EMAIL PROTECTED]> 

Hello,

What would be the most efficient to write a maximum function in Java?

Initially, I had the comparisons that looked for the maximum inside the 
main method and then moved it inside its own method (code is below) to 
be called from within the main method (to make the code look prettier), 
but that cost me almost 3 additional seconds processing time:

<code>
private static float maximum (float a, float b, float c, float d) {
        float t1 = a > b ? a : b;
        float t2 = c > d ? c : d;
        return t1 > t2 ? t1 : t2;
}
</code>

Is there something like C's macros to keep the code clean but to save 
the processing time for calling the macro?

Thanks in advance,

Ahmed



== 2 of 3 ==
Date:   Mon,   Nov 15 2004 10:12 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On Tue, 16 Nov 2004 02:00:51 GMT, Ahmed Moustafa wrote:

> Initially, I had the comparisons that looked for the maximum inside the 
> main method and then moved it inside its own method (code is below) to 
> be called from within the main method (to make the code look prettier), 
> but that cost me almost 3 additional seconds processing time:

Provide an SSCCE that supports this extraordinary claim.
<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



== 3 of 3 ==
Date:   Mon,   Nov 15 2004 11:58 pm
From: thirdrock <[EMAIL PROTECTED]> 

Ahmed Moustafa wrote:

> 
> Is there something like C's macros to keep the code clean but to save 
> the processing time for calling the macro?

Er, use *inline* ?




==========================================================================
TOPIC: Creating primitive data types from contents of String
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4d8fc307a0b9125d
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 6:06 pm
From: "Alberto" <[EMAIL PROTECTED]> 

Although you are not describing too much about your project/assignment,
it sounds to me that you are trying to build some sort of a small
interpreter Somewhat like Perl and scalars (which instead of a
compiler, it uses an interpreter).  If this is your real goal, you need
to remember that interpreters are really using a lot of abstractions.
Most of them use a lookup table (although there are many other ways to
simulate this) keeping record of the variables during the run-time
(e.g. Hashmap, Hashtables).  For all you care, their values (or even
types if you want to get more fancy) can be stored as strings. These
values can later be interpreted to their correct meaning according to
your design.

Once again,  it would help you a lot if you start thinking of
generating the abstraction that those two variables var1 and var2 are
working together, rather than looking to have the compiler do the
interpretation for you.  Remember that in this realm of thinking about
"abstractions", there are many approaches you could take.





==========================================================================
TOPIC: jfreechart
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/706a52d3d94eff
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 7:26 pm
From: "John B. Matthews" <[EMAIL PROTECTED]> 

In article <[EMAIL PROTECTED]>,
 "leGrandCigar" <[EMAIL PROTECTED]> wrote:

> i am trying to make dynamic chart with jfreechart packet,but have proble
> compiling the example MemoryUsage program from the documentation...If
> someone have expiriance with this i woukd appriciate if you could help me
> with example code and the right version that goes with it...i have actualy
> bought the documentation,but constructor for //XYPlot xyplot = new
> XYPlot(dataset, domain, range); is diferent in package it takes
> 
> public XYPlot() { }
>   public XYPlot(XYDataset dataset, ValueAxis domainAxis, ValueAxis
> rangeAxis, XYItemRenderer renderer) { }
> 
> 
> if someone could help i would appriciate it very much,thank you

You might try the JFreeChart forum:

http://www.jfree.org/phpBB2/index.php

-- 
John
----
jmatthews at wright dot edu
www dot wright dot edu/~john.matthews/




==========================================================================
TOPIC: IE not detecting Java plug in.
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ca11ea82f98b83f
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 7:51 pm
From: [EMAIL PROTECTED] (Guru) 

It is a internal URL. You can not access it.
My main problem is IE not detecting the Java plug in installed
in the system.

Andrew Thompson <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> On 15 Nov 2004 07:49:44 -0800, Guru wrote:
> 
> > I am using IE 6.0. and i was having JRE 1.4.1_02.
> > In my application, there was an applet ..
> 
> URL?




==========================================================================
TOPIC: How to create a excute file
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/453049a84ae975c2
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 8:24 pm
From: [EMAIL PROTECTED] (b3ny) 

> > I want to create an execute file (only one .exe file for Windows) for my
> > project. 
use jsmooth, a freeware exe wrapper tool -> http://jsmooth.sourceforge.net
but java needs to be installed on the target machine

else you can use exelsior jet, a powerful native compiler,
but the programs compiled with the free version work only on the machine
on wich u created them... and the full version is fu**** expensive...


> > This project uses some available component such as JFree for
> > creating report or mysql-connector to connect to a mySQL database)... . So
> > when I want to create the file, do I have to add all of those libraries 
> > into
 no prop wir jsmooth, u only need to include the jar packages of JFree ...


peace beny




==========================================================================
TOPIC: use com port as parallel port
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/43f0abc240232d51
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 8:31 pm
From: [EMAIL PROTECTED] (b3ny) 

hello everybody, short question
is it possible to use the serial com port with the comm api as
parallel port
and check every single input channel (if it is high)??

i'am trying to create a extern media controller, that has buttons for
play, stop, next,volume up... and i want to keep everything
simple(without parallel/seriell converter)...

thanx 4 help beny




==========================================================================
TOPIC: CD label
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1298a2877b52cf73
==========================================================================

== 1 of 2 ==
Date:   Mon,   Nov 15 2004 9:42 pm
From: "Hans Bijvoet" <[EMAIL PROTECTED]> 

Within a java program I want to read CD information such as: label, disc 
number, and used space. How can I accomplish this?
Greetings,
Hans 





== 2 of 2 ==
Date:   Tues,   Nov 16 2004 12:21 am
From: Thomas Weidenfeller <[EMAIL PROTECTED]> 

Hans Bijvoet wrote:
> Within a java program I want to read CD information such as: label, disc 
> number, and used space. How can I accomplish this?

Not with Java alone. You will need platform specific JNI calls. Or 
consider using another language, better suited for system programming.

/Thomas




==========================================================================
TOPIC: Using java.util.regex in JDK 1.3
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2a4390453d4e5927
==========================================================================

== 1 of 1 ==
Date:   Tues,   Nov 16 2004 12:18 am
From: "sks" <[EMAIL PROTECTED]> 


"Chris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> We've written an app that depends on the regex capability in JDK 1.4, and
> now the app has to run under 1.3. Rather that do a rewrite to use another
> regex package, I extracted the java.util.regex.* classes from 1.4 and put
> them in their own .jar. If I put that .jar on the classpath, then
everything
> compiles fine under 1.3. When I try to run the app, though, I get this
error
> message:
>
> java.lang.SecurityException: Prohibited package name: java.util.regex

That's because you're not allowed to name your packages java.*






==========================================================================
TOPIC: Where do I get the javacc java api document?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6c8f306325d131f4
==========================================================================

== 1 of 1 ==
Date:   Tues,   Nov 16 2004 12:29 am
From: Thomas Weidenfeller <[EMAIL PROTECTED]> 

mike wrote:
> regards:
> 
> Where do I get the javacc java api documents?

 From the same place where you get javacc - the project page somewhere 
on java.net. You could also try Google.

/Thomas




==========================================================================
TOPIC: Any blackberry newsgroups or good links? Suggestions on project?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/94b17a3dc82f8d70
==========================================================================

== 1 of 1 ==
Date:   Tues,   Nov 16 2004 1:11 am
From: "Cirene" <[EMAIL PROTECTED]> 

I'm an experienced programming, but have no java experience.  I need to make 
a local application that resides on a blackberry device.

Any newsgroups or good blackberry links that I can refer to?

The app will, among other things:
- Store a list of locations and survey questions associated with each 
location.
- Allow the user to select a location.
- Allow the user to answer survey answers.
- Click 'send' to send the answers to a website.

Any suggestions/examples on how to do this would be appreciated as well.

Thanks. 





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

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