 |
 |
Index ‹ java-programmer
|
- Previous
- 2
- importing Java-code into Rational Rose RealTimeIs there anyone who has managed to get existing java-code imported into
Rational Rose in order to get UML-diagrams?
The documentation shipped with Rational Rose is very spartan on that topic
and I've been trying for days now.
Thank you so much
- 3
- Problem with TableDear all,
I have a TextField and a TextFieldHandler implement ActionListener and
a Table.
How can I do the following function?
When the user type 111 in the TextField and press enter, item 111
information is retrieved from database and will be displayed in the
table.
When the user type 222 in the TextField and press enter, item 222
information is retrieved from database and will be displayed in the
table.
( I know how to detect the value entered in the TextField, but I donno
how to display the corresponding information with a Table)
Thanks for reply.
Victoria
- 3
- Oracle consultants available immediately with KraftwareContact : Mandar
Direct : 402 408 6601/402 408 3687
Email : email***@***.com
Hi,
We have the following Oracle consultants available immediately with
us:
1) Oracle HRMS techno-functional consultant
2) Oracle Apps financials consultant
3) Oracle PL/SQL developer
4) Oracle HRMS functional consultant
Please feel free to contact us for additional information.
Thanks & Regards,
Mandar
Direct: 402 408 6601/402 408 3687
Email: email***@***.com
- 3
- Hashtable: remove elements while Enumerating"Chris Berg" wrote:
> 1) Make a new Hashtable, copy all the 'good' entries into the new
> one, then replace the old one with the new one. This MAY be bad if
> another class still holds a reference to the old table.
>
> 2) make a new Vector in which you remember all keys of entries
> that shall be removed, and then remove them AFTER having finished
> the iteraton.
3) Copy (clone()) the Hashtable. Iterate over the copy. If you find an
entry in the copy that should be removed, remove it from the original.
Make sure that no other thread works the original Hashtable while you
enumerate over the copy and manipulate the original.
- 3
- New Forum For People Who Love To Discuss On Technical TopicsA new forum for everything in one place has launched at http://www.technicaltalk.net/
This is a cool forum where any one can discuss about many technical
things like Programming, Scripting, Design, Database, Operating
Systems, Testing and even a place where any one can read and post
articles. People will also find some helpfull site links, E-books.
Get registered at http://www.technicaltalk.net/ to explore more.....
http://www.technicaltalk.net/
- 3
- Repost:STILL Need help w. HTMLUtils class.
Steve R. Burrus wrote:
> Hi all, this is steve Burrus, and I will admit that it's been a while
> since I last checked in with this group! I was wondering whatever
> happened to the "always-perennial" roedy Green, and after scrolling
> down the list of postings in this group, I found his last post was on
> 8.1.2004 and it's now 8/09/04.
> Well anyway, I needed some help with "getting it right" with the
> HTMLUtils class which is used in quite a few of the various examples
> in a particular servlet book of mine. I always seem to get a compiler
> error whenever I try to compile a servlet with this class in it! Can
> anyone help me please with this problem as I am in anguish over it, I
> must admit. Incidentally, I put the folder with this class in it into
> my classpath env. variable, but that didn't seem to help any.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<br>
<br>
Steve R. Burrus wrote:<br>
<blockquote type="cite" cite="email***@***.com">
<meta http-equiv="Content-Type" content="text/html;">
<title></title>
<big><b><font face="Times New Roman, Times, serif">Hi all, this is steve
Burrus, and I will admit that it's been a while since I last checked in with
this group! I was wondering whatever happened to the "always-perennial" roedy
Green, and after scrolling down the list of postings in this group, I found
his last post was on 8.1.2004 and it's now 8/09/04.<br>
Well anyway, I needed some help with "getting it right" with the HTMLUtils
class which is used in quite a few of the various examples in a particular
servlet book of mine. I always seem to get a compiler error whenever I try
to compile a servlet with this class in it! Can anyone help me please with
this problem as I am in anguish over it, I must admit. Incidentally, I put
the folder with this class in it into my classpath env. variable, but that
didn't seem to help any. <br>
</font></b></big> </blockquote>
<br>
</body>
</html>
- 4
- [Swing] JScrollPane double MouseMotionListenerhi,
I am targetting JRE 1.5.
I have an image displayed within a jscrollPane (with scrollbars).
(in this way : new JScrollPane(new JLabel(new ImageIcon(image))))
I have a MouseMotionListener added to the JScrollPane, so when the
mouse goes over the visible part of the image, I can get the relative
coordinates of the mouse
My question is how to I get at the same time, the coordinate of the
mouse relative to the jscrollpane (the coordinates within the visible
part of the image) and the absolute coordinates (the coordinates of
the mouse relative to the whole image itself).
I tried adding also MouseMotionListener to the JLabel and that gives
me the the coordinates of the mouse relative to the whole image
itself, but then the event is lost for the jscrollpane's listener.
How can I achieve that simply ?
- 4
- jvm class path unicode native methodsOkay.. I'm having the following problem.. I've tried pretty much every
solution I can think of but always hit some brick wall.
I need to:
load classes from a jar in a unicode directory and register native
methods for those classes.
Before (the unicode) I was simply doing a -Djava.class.path=myjar.jar
And then registering the native methods..
But.. I can't find a way to send a unicode code string to through the
-Djava.class.path..
So I've tried:
1. sending the string as utf8.. nope.
2. setting environment variable classpath with
SetEnvironmentVariableW.. nope.
3. creating my own url class loader with the jar..
Loads fine.. BUT NATIVE METHODS DO NOT REGISTER CORRECTLY (even
though the jnienv says they do.. they don't.. apparently I can only
register native methods from classes loaded from the jnienv_ sucky..)
4. creating my own url class loader that loads the byte code directly
from the jar, then calls defineClass from the root class loader.
NOPE.. because classes reference each other.. therefore the entire
jar must be available when ever I reference one class.
5. found out the class Launcher and its methods getClassLoader,
appendblahblahfor instrumentation..
NOPE.. although.. I've sort of giving up now.. this is going too far.
Any help?
Surely there are some japanese programmers that have dealt with this
before.
-tim
- 5
- W32.Swen.A@mm goes ballistic!"Tim Tyler" <email***@***.com> wrote
> It fills the mailboxes of users with huge numbers of 140K attachments -
> making email practically unusable.
Well, no, it just takes perseverance. Being careful not to junk the
five real messages in 1995 others is a bit tedious, I'll grant from
experience.
> Non-Windows users - and the rest of the internet - are targetted
> as a result of Microsoft's security problem - as mindless zombie
> Windows boxes swarm to spread the virus.
Indeed; in 30 hours so far, I've removed roughly 3500 emails either
containing the virus or saying they were forwarded with the virus
removed. This to my Unix ISP account, where mailx() is my friend and
companion for weeding through the end results of Microsoft's sloppy
coding practices.
Too bad California's refusal to allow the M$ denial of "fitness for
merchantability" cannot be reflected world-wide; a class action lawsuit
for damages would redistribute all of M$'s wealth and capital equipment
to the Internet as a whole.
Meanwhile, 200,000,000+ flawed email clients are trying to find my email
box with their virus copies.
Sigh; it is going to be a long next few days.
xanthian.
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
- 7
- collaborative QA testingDoes free or cheap code to do this already exist? What is this
generic sort of product called?
I want to set up a collaborative QA checklist, so that many people can
be testing at once and reporting what they have tested. Everyone sees
the incoming results like on election night, so they can see what
still needs to be done. It also allows for crucial stuff to be tested
by more than one person, and to record their conflicting results.
It might have columns for different platforms, and some sort of HTML
script to describe the sections and tests.
The problem is getting emergency coverage testing done at the last
possible minute to deal with any "insignificant" last minute changes.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
- 7
- Possible to split a PrinterJob ??Hi all,
I am using java Printerjob with Book to create some page to print.
The problem I have is that the generation of all the page a pretty
long.
I usually gets 100 pages and each page take up to 2 seconds.
I would like to know if there is a way to start the printing process
as soon as page are ready and not wait 5 minutes to create the batch
and after that another 3-5 minutes with the printer ?
Can we append page to the book once the print is started ?
thanks,
- 9
- EJB Remote Calls - Serialization Restriction(s)Hi,
I have a simple HelloWorldApplication which uses SSbs.
I pass a Customer Object which has two attribute String name and
Address address;
I made Address not-serializable
so when i make calls to the SessionBean i get a remote Exception which
contains the not-serializable exception in WebPShere (as expected)
To my surprise this application ran without any problem in JRun4.0
Why would that be the case and what would the result in other APp
Servers like WebLogic be?
AFAIK, objects (parameters and Return types) must be serializable for
all Remote EJB Calls.
Note this applicaiton does not use Local Interfaces..
TIA
Manglu
- 11
- Latest models of Gibson guitarsReviews of latest models of best guitars, fender, gibson, yamaha, and
many more, with pictures and prices.
http://pro-guitars.blogspot.com/
And if you want to win a free guitar go here
http://freeguitars.blogspot.com/
- 11
- Java Native Interface: "Translate" java call to JNI, how to pass parameters, how to show exceptionHallo,
I am at least one step further, now I need to pass the properties to
the call and are now sure how:
Remember: The call I want to implement in Delphi is
java -Xmx256m -cp
"lib\fop\fop.jar;lib\fop\avalon-framework-4.1.3.jar;lib\fop\JimiProClasses.zip"
org.apache.fop.apps.Fop -fo "Data.xml" -c "lib\fop\Config.xml" -pdf
"Data.pdf"
So the parameters that have to be passed are:
-fo "Data.xml"
-c "lib\fop\Config.xml"
-pdf "Data.pdf"
If I do
JNIEnv.CallStaticVoidMethod(Cls, Mid, ['-fo "Data.xml" -c
"Config.xml"-pdf "Cover.pdf"']);
(all parameters in one string) or
JNIEnv.CallStaticVoidMethod(Cls, Mid, ['-fo "Data.xml"', '-c
"Config.xml"', '-pdf "Cover.pdf"']);
(each parameter in a separate string)
...then JNIEnv.ExceptionOccurred is not NULL after the call, thus some
exception occured.
The parameter Args in the call CallStaticVoidMethod() is an array of
const. In CallStaticVoidMethod() the array elements are converted to
JValues with ArgsToJValues().
The exemplary C++ code in the doc PDF works with an ObjectArray created
with NewObjectArray(). I tried that, but CallStaticVoidMethod() won't
accept an ObjectArray, nor would the similar procedures
CallStaticVoidMethodA() or CallStaticVoidMethodV().
By the way: My Delphi app runs in a window, its not a console
application. Can I get the description of the exception with any other
function, or how would I have to use ExceptionDescribe() in this
context?
Regards,
Christian Kirchhoff
- 16
- J2ME: allowing for "Allow HTTP traffic?" confirmation when doing a connection timeout mechanismI'm using threading in a J2ME app to allow a timeout on an attempt to
connect to server. However, I'm having an issue with the usual
confirmation the user gets on first connection attempt: you know, the
message that say something like "This application would like to send
HTTP traffic. Allow this?" The problem is that I have no idea of how
long the user takes to read this message before hitting "ok", so my
connection timeout could timeout before the user has even hit ok and
before any connection attempt has been made!
Is there any callback available so that I know when the user has
actually hit 'ok'?
My current workaround is to make a dummy first connection to a bad
address, e.g. "http://x", just to get the user to hit 'ok' and get that
out of the way before making my proper connection attempt.
Is there a better way though? This technique makes an attempted DNS
lookup which wastes a little time.
Thanks.
N.B.
I'm aware that in some cases the user can have a preference set so that
the HTTP traffic alert happens before *every* server communication, but
I'm ignoring this case for the moment.
|
| Author |
Message |
bherbst65

|
Posted: 2005-11-3 13:24:00 |
Top |
java-programmer, Help needed with BlueJ
Hi All,
Need help(procedures/steps) to execute
an application program using BlueJ.
I have downloaded the
BlueJTutorial.pdf, read
what is there, I can compile my program,
can make a jar,
but where is the "run" instruction
in the main menu?
Bob
|
| |
|
| |
 |
JS

|
Posted: 2005-11-3 17:20:00 |
Top |
java-programmer >> Help needed with BlueJ
There isnt a "run" instruction as such, you have to go to File, then
"export" then save it as a jar file then open the jar file from where you
exported it to. www.bluej.org may have some help on it though. Any more
problems let me know because David Barnes and Micheal Kolling (the BlueJ
authors) are lecturers at my uni so they are bound to be able to help.
JS
<email***@***.com> wrote in message
news:email***@***.com...
> Hi All,
> Need help(procedures/steps) to execute
> an application program using BlueJ.
> I have downloaded the
> BlueJTutorial.pdf, read
> what is there, I can compile my program,
> can make a jar,
> but where is the "run" instruction
> in the main menu?
>
> Bob
>
|
| |
|
| |
 |
bherbst65

|
Posted: 2005-11-3 22:28:00 |
Top |
java-programmer >> Help needed with BlueJ
Hi JS,
Thanks for help.
I have never been comfortable with x.jar as such because of the
near primitive means to get them to execute an application and the
complicated methods to create paths to the X.class files and image
files that accompany it. Since BlueJ has automated this .jar making
then that problem seems to be eliminated.
You might ask the authors of BlueJ how to deal with this problem:
When I work on code, I like to see if something needs an
adjustment/tweak of this or that for appearance sake and the like.
That is why I "would like to see it sooner" than before it is ready to
"hand in for final grading in a jar". Or is it a matter of constanly
modifying the version name of the program that you are writing and then
keep tossing out the older jars for the new one?
Thanks again for your help,
Bob
|
| |
|
| |
 |
Andrew Thompson

|
Posted: 2005-11-3 23:09:00 |
Top |
java-programmer >> Help needed with BlueJ
email***@***.com wrote:
> I have never been comfortable with x.jar as such because of the
> near primitive means to get them to execute an application and the
> complicated methods to create paths to the X.class files and image
> files that accompany it. Since BlueJ has automated this .jar making
> then that problem seems to be eliminated.
>
> You might ask the authors of BlueJ how to deal with this problem:
> When I work on code, I like to see if something needs an
> adjustment/tweak of this or that for appearance sake and the like.
> That is why I "would like to see it sooner" than before it is ready to
> "hand in for final grading in a jar". Or is it a matter of constanly
> modifying the version name of the program that you are writing and then
> keep tossing out the older jars for the new one?
I have read that several times but still do not
quite understand what you are saying.
OTOH, I will make this point.
Whether deploying as a Jar or (much less often) a series of class
files, developers almost always have easy access to throwing a
'work in progress' onto the screen to check the current changes.
They would have a hard time developing without that easy ability.
Either it should be very easy to create an launch a Jar from
the IDE, or alternately launch the application using the
unjarred class files.
Is 'Seeing the application on-screen after changes' the
basic nature of the problem?
|
| |
|
| |
 |
Redbeard

|
Posted: 2005-11-4 0:47:00 |
Top |
java-programmer >> Help needed with BlueJ
BlueJ is not a normal IDE. It is specifically designed as a teaching
tool, not a production tool. It focuses on visual representations of
objects to better help the student understand OOP concepts. In
BlueJ, for example, you can instantiate an object, call its methods,
and see the changes in its instance variables visually WITHOUT the need
to write a main method.
However, some things that are simple in a traditional IDE (or even from
the command line) are not that simple in BlueJ. For example, in most
IDE's, there is a button that will execute an application, but not in
BlueJ.
It is a popular teaching tool worldwide, but it is NOT something that
an actual developer would use.
|
| |
|
| |
 |
bherbst65

|
Posted: 2005-11-4 1:59:00 |
Top |
java-programmer >> Help needed with BlueJ
Thanks Andrew and Redbeard,
Maybe for the same reasons that I tossed BlueJ before: "jar it to see
it run" doesn't make sense to me.
These other lightwieghts have flaws too:
DrJava doesn't jar anything by itself.
GEL gets mixed up in its delivery and storage.
And JBuilder2005 overstuffs my computer.
At this point, as I have jdk1.5.0_05, any recommendations from either
of you for all around lightwieght IDE?
Bob
|
| |
|
| |
 |
JS

|
Posted: 2005-11-4 2:26:00 |
Top |
java-programmer >> Help needed with BlueJ
You can run classes and things without making them into a jar because all
you need to do is compile them then right click on the class you want to use
and selecting the "constructor (s)" shown. you can create as many classes as
you want that way. Also be careful creating jars with images. The version we
had, and I'm not sure if this has changed, only allowed us to include images
OR include a main method which made it runnable. we all found that out when
we had an assignment due and he neglected to tell us that so we were all
panicking about the file. It does have a very useful debugger and step
through tool which no other Java IDE I have seen does have. I was tempted to
write my own but I'm not sure how as yet and also havent really got time on
my side what with other projects that have more deadlines. Any ideas from
anyone or if anyone wants to work on one with me feel free to contact me.
I now use JCreator which I found to be pretty good. I'm not sure how it
works when it comes to jar files or javadocs yet because we mainly have to
submit .java and .class files for uni work but there must be a way. Netbeans
and Eclipse are also pretty good so I've heard but I havent really looked at
them and they are quite memory intensive on some machines.
Hope that helps and if anyone has any ideas then feel free to get in touch
JS
<email***@***.com> wrote in message
news:email***@***.com...
> Thanks Andrew and Redbeard,
>
> Maybe for the same reasons that I tossed BlueJ before: "jar it to see
> it run" doesn't make sense to me.
>
> These other lightwieghts have flaws too:
> DrJava doesn't jar anything by itself.
> GEL gets mixed up in its delivery and storage.
>
> And JBuilder2005 overstuffs my computer.
>
> At this point, as I have jdk1.5.0_05, any recommendations from either
> of you for all around lightwieght IDE?
>
> Bob
>
|
| |
|
| |
 |
bherbst65

|
Posted: 2005-11-4 21:52:00 |
Top |
java-programmer >> Help needed with BlueJ
JS,
Your clues: after compiling (above).....
Are you thinking that there is something that I can right click on the
BlueJ panel or is this some place else. Frankly, I don't see except in
the outermost frame of BlueJ: a white empty frame and the yellow-orange
shaded frame of the .java named program that are loaded . And after
compiling the right click on the yellow-orange shaded frame sets a red
box in the lower left and right clicking on it does nothing.
I have version 2.05 of BlueJ.
|
| |
|
| |
 |
Michael Ké°ling

|
Posted: 2005-11-6 7:29:00 |
Top |
java-programmer >> Help needed with BlueJ
Bob,
There is no need to create a jar file to execute something in BlueJ.
You can execute any program directly from within BlueJ.
In fact, you can execute more than in other IDEs: you can execute the
main method (as in other environments) or any other public method.
To execute the main method (if you have one), right-click the class in
the diagram (the "yellow-orange thingy") and select the main method
from the popup menu.
To execute other (non-static) methods, right-click the class, select a
constructor, and then right-click the created object (the "red box")
and select your methods.
This is described in much more detail in the tutorial. I suggest that
you read it again and work through it. Especially section 3.4
("Execution") and section 10.3 ("Calling main and other static
methods").
Regards,
Michael
|
| |
|
| |
 |
Steve Horsley

|
Posted: 2005-11-7 2:03:00 |
Top |
java-programmer >> Help needed with BlueJ
email***@***.com wrote:
> Hi JS,
> Thanks for help.
>
> I have never been comfortable with x.jar as such because of the
> near primitive means to get them to execute an application and the
> complicated methods to create paths to the X.class files and image
> files that accompany it. Since BlueJ has automated this .jar making
> then that problem seems to be eliminated.
>
> You might ask the authors of BlueJ how to deal with this problem:
> When I work on code, I like to see if something needs an
> adjustment/tweak of this or that for appearance sake and the like.
> That is why I "would like to see it sooner" than before it is ready to
> "hand in for final grading in a jar". Or is it a matter of constanly
> modifying the version name of the program that you are writing and then
> keep tossing out the older jars for the new one?
>
> Thanks again for your help,
>
> Bob
>
To run it as an application, you need a "main class" with a method:
public static voin main(String[] args) {
Once you have written this method, you can start the application
from within BlueJ by right-clicking the class icon that contains
this method, and choosing that method from the pop-up list. You
will be prompted to supply the String[] argument.
Steve
|
| |
|
| |
 |
bherbst65

|
Posted: 2005-11-7 21:11:00 |
Top |
java-programmer >> Help needed with BlueJ
Michael, Steve, and All,
Thanks for the help, I appreciate it.
While reading the BlueJ Tutorial, my mind was focused on the idea that
this was "prescriptive" with assurances this is the way it was to
look. I failed to read: "you should see something similar to the window
shown in Figure 1 except on your machine ... the differences should be
minor.
For the record here: Using a sample java application program of mine,
titled "lab1", and after compilation, right clicking the title bar of
the application on the main page that has the diagram (the
"yellow-orange thingy") brings a pop up with many choices. Selecting
from the list of choices with a left or right click:
"void main(Strings[] args) " and from the next popup window which
appears as:
BlueJ: Method Call
void main(Strings[] args)
lab1.main({ })
Note: I made no changes in the entry of the "{ }".
Clicking OK does a "execute" or a "run" of the java program.
Thanks again to all for responding.
Bob
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Is i irrational? (was Re: Versionincrementaphobia)In comp.lang.java.advocacy, James Westby
<email***@***.com>
wrote
on Tue, 07 Mar 2006 20:34:56 GMT
<Q7mPf.94623$email***@***.com>:
> Ian Pilcher wrote:
>> James Westby wrote:
>>
>>>What makes you think that i is rational?
>>
>>
>> I'll bite. What do you put after the decimal point?
>>
>
> I don't know, but I imagine that I couldn't write it in closed form. For
> that matter what do you pu in front?
>
> I always assumed that i would be irrational, but maybe it is neither
> irrational nor rational.
An interesting philosophical question. If a number is
rational it can be expressed as p/q, where p and q are
integers, q != 0. Therefore i is not rational.
However, it's not clear whether i is irrational or not,
since irrational also means "not rational", but I for one
would think that an irrational number is real, and i is
not real.
Also, there are at least two different ways of defining
a real number (Dedekind cuts and Cauchy sequences), and
neither can be used for i, since i is not part of the
total real ordering, nor can it be the limit of any sequence of
rationals, even allowing for silly claims such as -1 = 1+2+4+8+... .
(Briefly: if x = 1+2+4+..., then 2*x=2+4+8+... = x-1;
therefore 2*x = x-1 or x = -1, despite all partial sums
of the series being positive. But it's not i.)
On the flip side, though,
http://mathworld.wolfram.com/IrrationalNumber.html simply
defines an irrational number as any number which cannot
be a quotient p/q of two integers, but the definition is a
bit sloppy since it implies irrational numbers have decimal
expansions (though it has real and imaginary parts, which can).
This appears to be a "definitional bug".
It gets bizarre though, as i is an algebraic integer,
and a unit of the algebraic number field. (There are a
lot of units in that field, as opposed to the two units +1
and -1 in the rational field.)
So now we have a non-rational algebraic unit. At this
point it's probably best to head out for a coffee or
tea break as one's brain is probably screaming for aspirin
at this point. :-)
Followups to a slightly more logical discussion area. :-)
>
>
> James
--
#191, email***@***.com
It's still legal to go .sigless.
- 2
- Difficulty with swingswe r beginners in java, creating an application similar to paintbrush.
(still working on the frontend)what r the different packages and classes that we could use to create a new window by selecting the "New" option from the MenuBar.What other sites could we visit for help?what r the recommended books that we could refer to ?
Thank you in advance.
--
Message posted via http://www.javakb.com
- 3
- have tomcat run a c binary via cgiAnyone know how to make tomcat run an actual exe?
I'm using windows 2000.
I can get it to print the binary contents of the exe to the web page,
but not actually execute it.
The docs indicate that you specify an executable in web.xml where you
specify cgi and that the default is perl, but I don't need an
interpreter to run an exe.
thanks
- 4
- OT. Being Ronald L. Grossi. (Brother Ronald has a website).D-word wrote:
> Smokie Darling (Annie) wrote:
> > Zippy wrote:
> > > alt.drugs.hard, alt.support.arthritis, comp.lang.java.programmer,
> > > alt.sports.football.pro.ne-patriots, alt.security.terrorism.
> > >
> > > Can someone please tell me what all these groups have in common
> that
> > > they are in such urgent need of salvation? these kind of posts
> always
> > > have the same selection of newsgroups. I can only assume that it
is
> > the
> > > same person or group of people doing the posting. But the
newsgroup
> > > list still intrigues me.
> > >
> > > Answers please - sensible or not, humorous or not, in fact
> whatever.
> > Go
> > > on humour me.
> > >
> > > Zippy
> >
> > Nothing other than the fact that posting through Google, one can
only
> > send to 5 groups at a time, and apparently Yahoo caught on to Ron
> > Gossi, so now he's being more creative with his name? Trust me,
> he'll
> > be posting to almost every other group available on Google through
> out
> > the day. That'd be his MO
>
>
>
> Usenet isn't the only forum he spams, according to google
> (http://www.groupsrv.com/science/post-784999.html).
>
>
> Ron can (apparently) be reached for comment at: 919-553-7901
>
Correction, that number could be wrong, it is registered to "Dufresne."
*HOWEVER* This just in. Brother Ronald has a website.
Let's hear it for "Triumphant Ministries" (http://tinyurl.com/c96dw),
"Internet Evangelist" Ronald L. Grossi, and the power of the one true
god, Google. Can I get an Amen?
http://www.arkwebshost.com/advice/host/
- 5
- URGENT RXTX SERIAL PORTHello
This is my situation :
A PC under OS MandrakeLinux 10.1
A machine branched on the serial port
I use jdk1.5 and the rxtx API
Opening the port seems good, i send data to the machine but when i read
th response i have a buffer with bytes null.
I have tried to sniff the serial port but i don't understand the data i
intercept, i don't recognize my protocol !
I don't know how i can debug to know what's wrong.
Any help will be welcome.
Thanks
Nanou
- 6
- Eclipse Appearance ProblemHi all,
I have Eclipse (version: 3.2.2) and JRE (version:1.6.0.1) installed on
my Windows Vista System. When I am working regularly with Eclipse I
encounter with disappearance of some regions of Eclipse window.
Specifically package explorer and console regions are becoming a white
area right after I switch(focus/bring to front) from another
application to Eclipse. If I resize the Eclipse window or just make
some mouse gestures over those white area, they return back to normal.
I have no idea about the problem so I could not goggled it. Here is a
screenshot: http://www.imagehosting.com/show.php/502707_20070421132840.png.html
- 7
- To correct my program. please, check to find errors and correct me.import. Java.io.*;
import. Java.text.NumberFormat;
public class commander
public. static.void man(String[]args)throws IOException
BufferedReader in =
new BufferedReader(New InputStreamReader(Systemin));
int (commander);
System.out.println("Enter your code");
code = integer.parseint(in.readLine());
switch(commander)
{
case 1:
System.out.println("The status of president of United States);
break;
case 2:
System.out.println("The status of secretary of Defense);
break;
case 3:
System.out.println("The status of the Air force);
break;
case 4:
System.out.println("The status of Air force chief staff);
break;
case 5:
System.out.println("The status of Air university commander);
break;
case 6:
System.out.println("The status of Air commader);
break;
default:
System.out.println(" The status of commander is children");
-------------------------------------------------------------------------------
please correct me.
this is switch statement to make program.
- 8
- java/74574: Making NetBeans 4.0 available
>Number: 74574
>Category: java
>Synopsis: Making NetBeans 4.0 available
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-java
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Dec 01 06:00:49 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Manfred N. Riem
>Release: 5.3-RELEASE
>Organization:
>Environment:
FreeBSD lord.home 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 email***@***.com:/usr/obj/usr/src/sys/GENERIC i386
>Description:
The latest version of the NetBeans IDE is 3.6 and currently the 4.0 releases are in release candidate phase. I have the necessary files for
the port but I don't know whom to send it to.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 9
- 3 way if"Roedy Green" <email***@***.com> wrote:
> If you were to devise a syntax for 3 way if that gave you clauses to
> execute if the expression were positive, negative or zero what sort of
> syntax would you come up with? I find this pattern showing up all the
> time in writing Comparators.
Sure, because it is the output of the comparision functionality.
Trouble is it is too broad, you only need three values, not two ranges
and a central value.
I put a wrapper interface (named "Sortable") around the comparision
functionality so that it would emit specifically -1, 0, or +1, as
manifest constants named LESS_THAN, EQUAL_TO, and GREATER_THAN, on which
I can then use a simple, symmetric, and clean switch syntax.
Given enumerations, that would presumably be even easier, because then
you could exhaust the enumeration type to the satisfaction of the
compiler, and wouldn't have to include a "default" switch case, the only
wart in my current setup.
xanthian.
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
- 10
- Renamed: Lutus alert [Re: how many tomcat instances on one machine]This is a multi-part message in MIME format.
"Kathy Benson" <email***@***.com> wrote in message news:email***@***.com...
That should not be a problem as long as each one of them is listening on a different port and you have enough memory. We have an application that uses embedded Tomcat and I can start about 15 instances without any problem. I have about 1GB of memory and the initiali heap for Tomcat is set the the default, which I bellieve is 2 MB.
KB
--
------------------------------------------------------------------------------
This email is certified to be Spam free by Spam Marshall
You don't pay to get spam, why pay to clean it?
Visit http://www.spammarshall.com to create an account for free
------------------------------------------------------------------------------
Andy Fish wrote:
Hi,
Just curious to see if anyone has run lots of separate tomcat instances on
one machine. I currently have 2 which works fine, but I wonder if anyone has
ever done 10? 50?
I'd like to be able to host a number of separate instances of my app on the
same box for evaluation purposes and this seems the easiest way of doing it.
They will not be heavily used, so I guess RAM is the biggest factor.
Unfortunately I am on windows 2000 not *nix, so paging will be an issue.
Any comments would be appreciated
Andy
Lutus alert!!!! Hey, looks like SPAM in a signature that advertises a no SPAM product. Is this signature recursive??
--
Gary
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.2800.1264" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV>"Kathy Benson" <<A
href="mailto:email***@***.com">email***@***.com</A>> wrote in
message <A
href="news:email***@***.com">news:email***@***.com</A>...</DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">That
should not be a problem as long as each one of them is listening on a
different port and you have enough memory. We have an application that uses
embedded Tomcat and I can start about 15 instances without any problem. I have
about 1GB of memory and the initiali heap for Tomcat is set the the default,
which I bellieve is 2 MB.<BR><BR>KB<BR>
<DIV class=moz-signature>-- <BR>
<STYLE type=text/css>P {
FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: Tahoma, Arial, Verdana
}
H1 {
}
H2 {
}
H3 {
}
HR {
WIDTH: 80%; COLOR: #cc0000; LINE-HEIGHT: 1; HEIGHT: 1px; TEXT-ALIGN: left
}
A {
}
A:visited {
}
A:active {
}
A:hover {
}
BODY {
FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: Tahoma, Arial, Verdana
}
TABLE {
FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Tahoma, Arial, Verdana
}
</STYLE>
<HR>
This email is certified to be Spam free by Spam Marshall<BR>
<P>You don't pay to get spam, why pay to clean it?<BR>Visit <A
class=moz-txt-link-freetext
href="http://www.spammarshall.com">http://www.spammarshall.com</A> to create
an account for free<BR><A href="http://www.spammarshall.com"
target=_blank><IMG
src="http://www.spammarshall.com/SpamMarshall/images/logo-c.gif" border=0>
</A></P>
<HR>
</DIV><BR><BR>Andy Fish wrote:<BR>
<BLOCKQUOTE cite=midwJNjb.275$email***@***.com type="cite"><PRE wrap="">Hi,
Just curious to see if anyone has run lots of separate tomcat instances on
one machine. I currently have 2 which works fine, but I wonder if anyone has
ever done 10? 50?
I'd like to be able to host a number of separate instances of my app on the
same box for evaluation purposes and this seems the easiest way of doing it.
They will not be heavily used, so I guess RAM is the biggest factor.
Unfortunately I am on windows 2000 not *nix, so paging will be an issue.
Any comments would be appreciated
Andy
</PRE></BLOCKQUOTE><BR><FONT face=Arial size=2>Lutus alert!!!! Hey, looks
like SPAM in a signature that advertises a no SPAM product. Is this
signature recursive??<BR>-- <BR>Gary</FONT></BLOCKQUOTE></BODY></HTML>
- 11
- Somone got a 4096x4096 pixel screen at sunWell at least it looks like that if you try to look at this new, quite
helpful "poster-map" from sun:
http://java.sun.com/developer/onlineTraining/new2java/javamap/index.html
I had to go to full-screen mode in my browser, otherwise the controls at
the bottom wouldn't appear and I couldn't see more than 5% of the poster
and navigate around.
It's also downloadable as PDF here
http://java.sun.com/developer/onlineTraining/new2java/javamap/Java_Technolo
gy_Concept_Map.pdf
CU
Ren?
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
- 12
- Tomcat, creating threadsI am trying to do some thread profiling on a website that consists
almost entirely of JSPs. When I create a thread in my application, I
give it a relevant name.
The problem is, I am seeing other threads that are calling my classes.
Are these threads being created by Tomcat?
The "unknown" threads have names like: Thread-17, Thread-18, etc.
I'm not sure, but I think these threads are being created every time my
JSPs try to access a session. Is there any way to tell where these
threads are coming from? Or, if they are being created by tomcat, can
I tell tomcat to name them something different?
Thanks in advance.
- 13
- main() parametersWhat's the difference in these parameters?
main(String[] args) and main(String args[]) ?
public class app extends Applet{
public static main void (String[] args)....
Bill
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
- 14
- Deployment problem with messge driven beans.When deploying a message driven bean I get the following error. Can
anyone help?
boss-3.0.8/server/default/deploy/TextMDB.jar
14:11:06,681 INFO [EjbModule] Creating
14:11:06,711 INFO [EjbModule] Deploying TextMDB
14:11:06,811 INFO [JMSContainerInvoker] Creating
14:11:06,821 INFO [JMSContainerInvoker] Created
14:11:06,831 INFO [EjbModule] Created
14:11:06,841 INFO [EjbModule] Starting
14:11:06,851 WARN [MessageDrivenContainer]No resource manager found
for jms/QCF
The ejb-jar.xml and jboss.xml is as follows:
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<message-driven>
<ejb-name>TextMDB</ejb-name>
<ejb-class>com.gbst.socketlistener.TextMDB</ejb-class>
<transaction-type>Container</transaction-type>
<acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
<resource-ref>
<res-ref-name>jms/QCF</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</message-driven>
</enterprise-beans>
</ejb-jar>
<?xml version="1.0"?>
<jboss>
<enterprise-beans>
<message-driven>
<ejb-name>TextMDB</ejb-name>
<destination-jndi-name>queue/ListenerQueue</destination-jndi-name>
<resource-ref>
<res-ref-name>jms/QCF</res-ref-name>
<jndi-name>QueueConnectionFactory</jndi-name>
</resource-ref>
</message-driven>
</enterprise-beans>
</jboss>
Jamie
- 15
- Comparables and GenericsHow do I express "A Comparable that can be compared to itself" in generics?
I have a method that takes as parameter an array of Comparables.
Whilst trying to "modernize" this code, I can no longer write simply:
public void myMethod(Comparable[] primaryKeyValues)
but need to add "generic info" to Comparable.
The only requirement I have is that the objects should be able to run a
compareTo() on an instance of their own classes.
--
Josef Garvi
"Reversing desertification through drought tolerant trees"
http://www.eden-foundation.org/
new income - better environment - more food - less poverty
|
|
|