| Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing. |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- Problem With ReportViewer ObjectHello,
i have a problem eith the class mencioned in above ( ReportViewer.class) that
i've downloaded and puted in my aplication GUI.
Aparently everything is ok, just in the moment that i try to use that object.
the code that i used is:
void jButton1_mouseClicked(MouseEvent e) {
try{
ReportViewer b = new ReportViewer();
b.setReportName("http://localhost:8080/?report=file:c:
/SAMPLE_REPORTS/BalanceSheet.rpt");
b.setShowGroupTree(false);
b.init();
}catch(Exception e1){
}
.....
the error that appears is:
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
can anybody help me ???
- 2
- Why Generics?>> It was the C++ weenies, definitely.You're entirely
>> correct: The C++ saboteurs have contaminated Java with
>> generics simply and only to make the language unattractive
>> and cause its ultimate demise. The Java people have been
>> suckered into kissing the Bjarne Stone.
"Mike Schilling" <email***@***.com> wrote in message
news:_vtee.2703$email***@***.com...
> Why C++, in particular? The next version of C# has generics, and the
> current one has auto-boxing, variable-length argument lists, for-loops
over
> collections, etc. Given that Java competes for mindshare with .NET, I
think
> competition with C# is a more likely motive for the 1.5 changes.
Would be the least bit surprised if C++ weenies infected the C# design as
well.
Or it could be that it's not so much as competing for C# mindshare as
competing to get the C++ mindshare. All those people who bought into C++
because it was hyped as the early 90's "it" language and too late realized
what an amazing piece of ATROCIOUS language design it is, and how much
money it is costing them.
Y'know... if I may..this all reminds me of what I see here in my home state
of NH.
In the 80s NH had the 2nd lowest per-capita taxes in the nation and modest
services. In sharp contrast our southern neighbors in Massachussetts had
very nearly the HIGHEST per-capita taxes (source: US Statistical Abstract).
So in the late 80s and 90s, there was a wave of Mass refugees moving to NH
attracted by the lower taxes. And the first things they started to do was
ask for new government services to be added - the sort of things that caused
their MA tax rates to be so high.
It's like they couldn't make the connection between services and taxes.
I think we might see something similar here with Java.
My understanding is that C++ is dying (I wish *I* could be the one to pull
out the feeding tube). Everyone is hearing about the advantages of the
modern languages like C# and Java.
So they're all moving to these other languages and trying to drag their
familiar C++ methods with them not recognizing that it's their ABSENCE that
made Java and C# so attractive.
- 2
- Jre 1.6 and CDEJRE 1.6 Swing app freezes my Solaris 8 CDE desktop with dtwm running
at 100% of the CPU. It works fine with JRE 1.5. Has anyone had such
problem? Any solutions? Thanks
- 2
- About Polling Chat Server (Personal Chatting)Hello,
I am in the process of writing a Chat Server for Intranet.
I completed the message-to-all part of it.
The Server (Polling Chat Server) part of it act in a non-blocking mode,
it creates new connections with the clients, read message from a client
and sends it to all the clients.
The Client part just accepts the message typed on a text field, send it
to the server and appends the message received from the server to a
text field.
This is the global chatting part.
Now I need help about the personal-chatting of the clients.
Each client must be able to chat with any other client which is
connected to the server in the global chatting.
How to carry out this?
Presently both Client and Server are Single-threaded ones.
Can anybody gives me logical flow of the program to carry out the
personal-chatting stuff? I am able to program using non-blocking
ClientSockets.
How many threads will be there on the Server and on client and what
each thread will do?
Please help me ASAP.
-Sameer Shinde
- 5
- Published Web Architecture Reference Code for N-Tier Systems?Is there any published system that includes sample source code, that
illustrates a good presentation / business / data layer partitioning of a
web based n-tier application?
The papers and books I have seen all deal with generalizations that are
mostly obvious and aren't very useful in committing something to code.
Everyone agrees that a well structured application should have presentation
layer, business layer, and data layer. The devil is always in details,
and no one publishes details. I want to see code for a large well
structured system that actually holds together and is easier to expand by
virtue of how it implements a layered multi-tier design.
The sample code I have seen, such as Microsoft's multi-tier sample
applications, appear to be completely amateurish efforts by college students
or people with no real commercial code experience. They are mostly
implemented in absolutely random ways that simply trivialize the value of
good architectural layering. I guess they are mainly meant as ways to run
Microsoft APIs.
I'm particularly interested in seeing:
- How authentication is handled, what kinds of cookies are created, and what
kinds of information is stored in each cookie. If authentication protocols
like Kerberos are being used, how are those integrated? Having code to
show just this piece alone would be highly desirable.
- How is the interface between the presentation layer that creates XML and
the business layer that handles business transactions handled, particularly
when the business layer is run on a separate computer? Getting the right
level of granularity in this interface seems hard. If you have all of the
data validation methods in your business layer, your presentation code is
making too many calls into the business layer, and that hurts performance if
you move that business layer to another machine.
--
Will
- 6
- Wrap text in the list boxHi All
There are four list boxes in four different columns of a row In the
table in a jsp page. this table has a fixed width. But There are few
long items in the fourth list box, that results in the expansion of the
list box, hence table width too. Now due to the specified reason data
is going outside the specified area, hence affecting the view. I'm
using struts framework.
So is there any way to "wrap the text in listbox" OR "set small font
size for the list items".
Thanks
Rahul
- 7
- Newbie-help! API 0 Results = errorpage.jsp, i need the 0 returnedHi,
Im using the Google API in a JSP project which fires off queries to
google. In the returned object im interested in the
getEstimatedTotalResultsCount() statistic, I just need to know how many
results have been returned, including if 0 have been returned.
However, when I enter a term which should produce 0 results the JSP
throws an exception and directs me to the errorpage.jsp instead of
reurning a GoogleSearchResult object with 0
getEstimatedTotalResultsCount().
Other people on this forum dont seem to have this problem.
Would very much appreciate the help.
nickname-at-oppositeOfColdMail.com
- 8
- Jeff and his Trackball
Just seen:
New image of Jeff Relf and His Trackball.
http://www.ottawaathleticclub.com/images/trackballs.jpg
Yes, Jeff, the buttons are falling apart...the contacts worn, the MicroCrud
drivers bit-cracking with every click -- XP has made the TrackBall unusable
-- that's right -- a M$ product, destroying any backwards compatibility to
the insipid FOOLS who purchased a trackball.
BUT you go, you go on, clinging to your track ball -- muttering 'my driver,
my driver' and weeping, near a poorly sealed medical waste canister near
Harborview...
--
W '04 <:> Open
- 8
- double "^" operations ???...Greetings all,
I am having a hard time performing exponential operations on doubles.
My code looks like
public double getExpon(double a, double b) {
double ans = a ^ b;
return(ans);
}
and I am getting the compiler error:
operator ^ cannot be applied to double,double
double ans = a^b;
Does anyone know why? I am totally bewildered.
- 9
- get and set Attribute for EJB Context (Storing objects)Are there any methods like getAttribute and setAttribute off the EJB
Context object like there is for Servlet context?
Currently I did not see any in the API. How then are we supposed to
store objects that we want to exist for the life of the app server and
to be accesible by our beans?
Thanks for any suggestions.
- 14
- The Fence Between Heaven And HellJTK <email***@***.com> wrote in message news:<AUgUb.177317$email***@***.com>...
> anoncoward wrote:
>
> > JTK wrote:
> >
> >>>
> >>> Are you telling me that the greatest nation on earth,
> >>> the nation that installed SH in the first place,
> >>> could not think of a single other way of removing him
> >>> than declaring war and invading?
> >>>
> >>> Give me a break. How naive are you guys?
> >>>
> >> WHAT OTHER "WAYS" YOU PIECE OF FILTH?
> >
> > See, that's exactly what I mean - half assed.
>
> WHAT OTHER "WAYS" YOU PIECE OF FILTH?
>
> > You shouldn't even put your foot in the pool
>
> WHAT OTHER "WAYS" YOU PIECE OF FILTH?
>
> > if you don't know how to swim.
>
> WHAT OTHER "WAYS" YOU PIECE OF FILTH?
Oh dear, the prepubescent is having a hissy fit.
Like I said, if you don't know how to swim,
don't get in the pool.
- 14
- Java problemSee my 7-26-07 message. I get an Error message everytime I try to download
Java software: Error 1722. What does that mean?
Ilhan
- 14
- South Florida Software Symposium - May 18 - 20, 2007Greetings!
We are happy to announce the South Florida Software Symposium.
The NFJS Symposium Tour is coming to South Florida on May 18 - 20,
2007. Get ready to have three intensive days of learning and
networking.
The No Fluff Just Stuff Software Symposium Series is designed to cover
the latest in trends, best practices, and newest developments in
Enterprise Java, Java/Groovy, ESB/SOA, Ajax, Web Services, Agility,
and Architecture.
Soon we will have available all the conference details at
http://www.nofluffjuststuff.com and http://www.miamijug.org.
This is the first of the many events we are coordinating to have in
South Florida. With your support and our commitment we will see many
more. We are working hard to promote South Florida within the Global
Software Community.
South Florida Software Symposium is brought to you by NFJS and Miami
Java Users Group.
We are looking forward to see you there,
Maudrit Martinez
Miami Java Users Group Leader
email***@***.com
http://www.miamijug.org
"A designer knows he has achieved perfection not when there is nothing
left to add, but when there is nothing left to take away" ~Antoine de
Saint-Exupery
- 14
- war or earhi there, I'm a newbie here. what is the difference between enterprise
archive & web archive? anyone has a url that explains this? also, is there a
complete design specification of the J2EE Petstore application. url anyone?
many thanks. lai...
- 15
- Java Fonts under Microsoft JVMHello,
I have an applet which I want to run under various VM's, including the
Microsoft VM that (used to) be part of Internet Explorer.
When I create a font for a component, as so:
setFont (new Font ("DIALOG", Font.PLAIN, 20));
the font show up just right -- it's 20 units high. Except when the applet
is running inside the Microsoft VM, which always shows the same, small,
sans-serif font.
Has anyone else experienced this, and found a workaround?
Thanks!
Gregory Hassett
|
| Author |
Message |
Alan Balmer

|
Posted: 2005-9-13 0:54:00 |
Top |
java-programmer, Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
On Sat, 10 Sep 2005 14:42:07 GMT, DevarajA <email***@***.com> wrote:
>
>When you write an open bracket, immediately write the closing one. Then
>write the code between them, and you won't forget anything. This is what
>I always do and I've nevere left out a bracket.
Long ago, I programmed Slickedit to produce a right bracket every time
I typed a left bracket.
--
Al Balmer
Balmer Consulting
email***@***.com
|
| |
|
| |
 |
Alan Balmer

|
Posted: 2005-9-13 0:54:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
On Sat, 10 Sep 2005 14:42:07 GMT, DevarajA <email***@***.com> wrote:
>
>When you write an open bracket, immediately write the closing one. Then
>write the code between them, and you won't forget anything. This is what
>I always do and I've nevere left out a bracket.
Long ago, I programmed Slickedit to produce a right bracket every time
I typed a left bracket.
--
Al Balmer
Balmer Consulting
email***@***.com
|
| |
|
| |
 |
Alan Balmer

|
Posted: 2005-9-13 0:57:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
On Mon, 12 Sep 2005 15:44:19 GMT, "Oliver Wong" <email***@***.com>
wrote:
> DevarajA, your advice about always putting the closing bracket when you
>put an opening bracket is an excellent one, and one that I've been following
>myself. Incidentally, if you use the Eclipse IDE, it will automatically put
>the closing bracket for you.
>
>"DevarajA" <email***@***.com> wrote in message
>news:rVCUe.45294$email***@***.com...
>> Right now I realized that if you have many nested blocks it could be hard
>> to tell where the one to delete ends. In this case you can count the open
>> brackets and subtract one each close bracket you encounter. The close
>> bracket taking you to '0' is the last one. Hit del.
>
> In Eclipse, Visual Studio, and probably many other IDEs, you can put
>your cursor on the opening bracket of the block you want to delete, and the
>IDE will highlight the corresponding closing bracket, so you don't even need
>to do this counting manually.
>
Slickedit can be asked to highlight the entire block, and the delete
key does the rest.
--
Al Balmer
Balmer Consulting
email***@***.com
|
| |
|
| |
 |
Bruce Roberts

|
Posted: 2005-9-13 1:01:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Skybuck Flying" <email***@***.com> wrote in message
news:dfspg5$7s7$email***@***.com...
> I have proven that one style is cumbersome and therefore dumb and one
style
> is handy and therefore smart.
Debatable. What you have really proven is that you do not understand the
grammar.
|
| |
|
| |
 |
Skybuck Flying

|
Posted: 2005-9-13 6:00:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Andrew McDonagh" <email***@***.com> wrote in message
news:dfub8f$t01$email***@***.com...
> Skybuck Flying wrote:
> > "Andrew McDonagh" <email***@***.com> wrote in message
> > news:dfsv1i$fmd$email***@***.com...
> >
> >>Skybuck Flying wrote:
> >>
> >>>Sometime ago on the comp.lang.c, I saw a teacher's post asking why C
> >
> >
> >>snipped very long message about badly written code and how to 'fix' it
> >>by making indentation better....
> >>You are missing the point....
> >
> >
> > No, I think you didn't read my post well enough.
>
> I did, I just don't agree with your premise.
No, you didnt read or understand it well enough.
>
> >
> > Here are the main points:
> >
> > Point 1: With the pascal style bracketing/layout it is easier to spot
> > missing brackets.
>
> The choice of '{}', 'begin end', ';', and any other language block
> scoping identifiers is irrelevant - they all suffer the same problems of
> people not aligning them.
I agree the choice of {} begin/end etc is irrelevant.
The aligning is most relevant.
The pascal style aligns it properly vertically like so:
if a<b then
begin
end;
Some C styles dont align like so:
if (A<b) {
}
Making it harder to spot where the brackets start and end in an eye's blink
like shown in previous examples.
Again you didnt read it well enough or didnt understand it ;)
>
> You may find the words 'begin & end' to be easier to read and thats fine
> - others find them cumbersome.
No you dont understand.
>
> > Point 2: Indentation can be used by the computer/compiler to spot
missing
> > brackets.
> > (It can figure out where statement blocks start and stop and where
missing
> > brackets are and can simply stop the flow of error messages. )
>
> In some languages yes, but not all languages could.
>
> >
> >
> >>Any modern IDE has a format code option which will layout the code
> >>regardless of your brackets - allowing you to see where the problem is.
> >
> >
> > I dont know about that maybe I am missing some points or maybe you
making
> > this up.
>
> Not making anything up...
> >
> > Some questions:
> >
> > Does borland delphi 2005 have such a code formatting option ?
> > Does visual studio .net 2003 have such a code formatting option ?
> > Does borland delphi 7 have such a code formatting option ?
> >
>
>
> I'm not sure about Delphi 2005 or VS2005 as haven't seen them...but let
> me google it...hang on in there... I can't find much info about VS or
> Delphi 2005 and Delphi 7 and earlier does not natively support
> formatting, but there are plenty of add-ons...
>
>
http://www.google.co.uk/search?hl=en&q=delphi+7+code+formatting&btnG=Google+Search&meta=
>
>
>
> > Can you name any modern IDE which has the claimed feature ?
>
> Eclipse, IntelliJ, jbuilder and more.....
>
> >
> >
> >>Second any method/procedure which is so long that its hard to see the
> >>logical parts of it, is too long....making smaller will help in numerous
> >>ways, not least making it easier to see the indent problems.
> >
> >
> > Point 2 does this automatically for you.
> > Point 1 helps you narrow it down.
> >
>
> True they would help with the symptom, but the cure would be not to
> create such long methods/procedures which cause mismatching blocks in
> the first place.
>
> The smaller a method the easier to read and see, add in code formatters
> and the problem 'justGoesAway'
>
> > Bye,
> > Skybuck.
> >
> >
>
> cheerio
>
> Andrew
|
| |
|
| |
 |
Skybuck Flying

|
Posted: 2005-9-13 6:33:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Bruce Roberts" <email***@***.com> wrote in message
news:2wiVe.1321$email***@***.com...
>
> "Skybuck Flying" <email***@***.com> wrote in message
> news:dfspg5$7s7$email***@***.com...
>
> > I have proven that one style is cumbersome and therefore dumb and one
> style
> > is handy and therefore smart.
>
> Debatable.
You can debate it all you want. Tests however will prove that one style is
fast at finding missing brackets and the other style is slow at it ;)
> What you have really proven is that you do not understand the
> grammar.
I don't feel there is anything wrong with it lol... but that's just me being
used to the dutch grammar.
I guess the correct english grammar could be:
I proofed... etc. instead of I have proven.
The difference could be something like this:
I proofed.... meaning: I did something
I have proven meaning: I own my own actions, I have done that... etc ;)
Bye,
Skybuck.
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2005-9-13 22:34:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Skybuck Flying" <email***@***.com> wrote in message
news:dg4vf1$53u$email***@***.com...
>
> "Bruce Roberts" <email***@***.com> wrote in message
> news:2wiVe.1321$email***@***.com...
>> What you have really proven is that you do not understand the
>> grammar.
>
> I don't feel there is anything wrong with it lol... but that's just me
> being
> used to the dutch grammar.
I think Bruce referring to the context-free grammar that describes the
Java language, not your usage of the English grammar.
- Oliver
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2005-9-13 22:36:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
<email***@***.com> wrote in message
news:email***@***.com...
> As a test I loaded this snippet of code into a test.cpp
> file and sure enough the code folding quickly identified
> the missing bracket.
In other words, this is (and has long been) a solved problem. Something
Skybuck seems to have trouble understanding. :/
- Oliver
|
| |
|
| |
 |
Bruce Roberts

|
Posted: 2005-9-13 22:55:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Oliver Wong" <email***@***.com> wrote in message
news:ErBVe.271041$on1.217553@clgrps13...
> I think Bruce referring to the context-free grammar that describes the
> Java language, not your usage of the English grammar.
Actually, since I was posting from a Delphi ng, I was referring to the
context-free grammar that describes Delphi. Not that it makes any
difference. The fact is that the suggestion that layout impart grammatical
structure is not as simple as resolving matching compound statement
bracketing.
In Pascal a While loop has the grammar
While <expression> Do <statement>
With a layout dependant grammar one would have to define it
While <expression> Do <newline> <indent> <statement>
Seems to me to be an awful lot of extra fluff for little gain.
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2005-9-13 23:24:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Bruce Roberts" <email***@***.com> wrote in message
news:9MBVe.2018$email***@***.com...
>
> "Oliver Wong" <email***@***.com> wrote in message
> news:ErBVe.271041$on1.217553@clgrps13...
>
>> I think Bruce referring to the context-free grammar that describes
>> the
>> Java language, not your usage of the English grammar.
>
> Actually, since I was posting from a Delphi ng, I was referring to the
> context-free grammar that describes Delphi.
Yeah, immediately after I had hit "send", I said to myself "Oh wait,
this guy crossposted to the C and Delphi guys too, right? Damn."
> Not that it makes any
> difference. The fact is that the suggestion that layout impart grammatical
> structure is not as simple as resolving matching compound statement
> bracketing.
>
> In Pascal a While loop has the grammar
>
> While <expression> Do <statement>
>
> With a layout dependant grammar one would have to define it
>
> While <expression> Do <newline> <indent> <statement>
>
> Seems to me to be an awful lot of extra fluff for little gain.
Agreed. And if Skybuck is really serious about this idea, (s)he should
probably move the discussion to comp.compilers where it's more appropriate
to discuss language design issues.
- Oliver
|
| |
|
| |
 |
Andrew McDonagh

|
Posted: 2005-9-14 6:17:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
Skybuck Flying wrote:
snipped
>
>
>>>Here are the main points:
>>>
>>>Point 1: With the pascal style bracketing/layout it is easier to spot
>>>missing brackets.
>>
>>The choice of '{}', 'begin end', ';', and any other language block
>>scoping identifiers is irrelevant - they all suffer the same problems of
>>people not aligning them.
>
>
> I agree the choice of {} begin/end etc is irrelevant.
>
good...
> The aligning is most relevant.
bad... you are missing the point....
>
> The pascal style aligns it properly vertically like so:
>
> if a<b then
> begin
>
> end;
>
> Some C styles dont align like so:
>
> if (A<b) {
>
> }
>
snipped
As I said earlier - the real problem is the size of the method.
Trying to help enforce or aid alignment is focusing upon fixing the
symptom - not the real problem.
if your method only contains one use of blocks, then it does not matter
what alignment strategy the language or developer uses.
As soon as another block is needed, its a good indicator that the method
is trying to do more than one job.
so...
>>>
>>
>>True they would help with the symptom, but the cure would be not to
>>create such long methods/procedures which cause mismatching blocks in
>>the first place.
>>
>>The smaller a method the easier to read and see, add in code formatters
>>and the problem 'justGoesAway'
>>
>>
|
| |
|
| |
 |
Skybuck Flying

|
Posted: 2005-9-14 7:02:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Andrew McDonagh" <email***@***.com> wrote in message
news:dg7j5q$9ta$email***@***.com...
> Skybuck Flying wrote:
>
> snipped
>
> >
> >
> >>>Here are the main points:
> >>>
> >>>Point 1: With the pascal style bracketing/layout it is easier to spot
> >>>missing brackets.
> >>
> >>The choice of '{}', 'begin end', ';', and any other language block
> >>scoping identifiers is irrelevant - they all suffer the same problems of
> >>people not aligning them.
> >
> >
> > I agree the choice of {} begin/end etc is irrelevant.
> >
>
> good...
>
> > The aligning is most relevant.
>
> bad... you are missing the point....
Nope. You think thing splitting code into multiple methods will solve the
problem somehow.
The point that you are missing is that a missing brace can be an accident ;)
>
> >
> > The pascal style aligns it properly vertically like so:
> >
> > if a<b then
> > begin
> >
> > end;
> >
> > Some C styles dont align like so:
> >
> > if (A<b) {
> >
> > }
> >
>
> snipped
>
> As I said earlier - the real problem is the size of the method.
No it's not.
The real problem remains the alignment.
It doesn't matter if the code is split up into multiple methods.
The compiler will still produce a storm of error messages if there is a
missing bracket/brace *anywhere* ;)
> Trying to help enforce or aid alignment is focusing upon fixing the
> symptom - not the real problem.
>
> if your method only contains one use of blocks, then it does not matter
> what alignment strategy the language or developer uses.
>
> As soon as another block is needed, its a good indicator that the method
> is trying to do more than one job.
>
> so...
>
> >>>
> >>
> >>True they would help with the symptom, but the cure would be not to
> >>create such long methods/procedures which cause mismatching blocks in
> >>the first place.
> >>
> >>The smaller a method the easier to read and see, add in code formatters
> >>and the problem 'justGoesAway'
Nope lol. A missing bracket/brace can occur on accident.
Bye,
Skybuck.
|
| |
|
| |
 |
Skybuck Flying

|
Posted: 2005-9-14 7:13:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Bruce Roberts" <email***@***.com> wrote in message
news:9MBVe.2018$email***@***.com...
>
> "Oliver Wong" <email***@***.com> wrote in message
> news:ErBVe.271041$on1.217553@clgrps13...
>
> > I think Bruce referring to the context-free grammar that describes
the
> > Java language, not your usage of the English grammar.
>
> Actually, since I was posting from a Delphi ng, I was referring to the
> context-free grammar that describes Delphi. Not that it makes any
> difference. The fact is that the suggestion that layout impart grammatical
> structure is not as simple as resolving matching compound statement
> bracketing.
>
> In Pascal a While loop has the grammar
>
> While <expression> Do <statement>
>
> With a layout dependant grammar one would have to define it
>
> While <expression> Do <newline> <indent> <statement>
>
> Seems to me to be an awful lot of extra fluff for little gain.
>
That's not how you would parse it.
There would be something like an indentation count.
As soon as it increases a new statement block begins, as soon as it
decreases the end of a statement block has been reached.
However I like writing code like this in case there are many parameters:
if function(
a,b,c,d,
e,f,g,h,
i,j,k,l ) then
begin
blabla;
end;
This would be a problem unless parameters have to be passed in a special
way.. for example
by using twice the indentation:
if function(
a,b,c,d,
e,f,g,h,
i,j,k,l ) then
begin
blabla;
end;
Which would look like:
if function(
a,b,c,d,
e,f,g,h,
i,j,k,l ) then
blabla;
:)
Bye,
Skybuck.
|
| |
|
| |
 |
Skybuck Flying

|
Posted: 2005-9-14 7:15:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Oliver Wong" <email***@***.com> wrote in message
news:btBVe.271042$on1.60786@clgrps13...
> <email***@***.com> wrote in message
> news:email***@***.com...
> > As a test I loaded this snippet of code into a test.cpp
> > file and sure enough the code folding quickly identified
> > the missing bracket.
>
> In other words, this is (and has long been) a solved problem.
Something
> Skybuck seems to have trouble understanding. :/
No I am not aware of any C IDE which does what you say ?
So from your description it would seem the editor loads a file and
completely folds it ???
Or did you fold it yourself manually which is ofcourse retarded... why do it
manually ?
The point is ease of use... so let the compiler or editor do it for you...
which is what this is all about.
Bye,
Skybuck.
|
| |
|
| |
 |
Skybuck Flying

|
Posted: 2005-9-14 7:25:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Oliver Wong" <email***@***.com> wrote in message
news:btBVe.271042$on1.60786@clgrps13...
> <email***@***.com> wrote in message
> news:email***@***.com...
> > As a test I loaded this snippet of code into a test.cpp
> > file and sure enough the code folding quickly identified
> > the missing bracket.
>
> In other words, this is (and has long been) a solved problem.
Something
> Skybuck seems to have trouble understanding. :/
After reading your posts I decided to give it a try in visual studio .net
2003. It simply folds the code no matter if there are any missing braces so
at least in this IDE first of all it doesnt find the missing brace and
second of all I had to do it all manually.
// Test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
int a,b,c,sdfd,sqfd,dddd,dsdfssdf;
if (a<b)
{
if (sdfd<c)
{
}
if (sqfd<342563)
{
} else
{
}
if (dddd=234)
{
if (dsdfssdf=23)
{
}
}
return 0;
}
Oh look at that it didn't copy paste it right... well blame it on microsoft
outlook... not going to fix it *again* lol :)
Bye,
Skybuck.
|
| |
|
| |
 |
Skybuck Flying

|
Posted: 2005-9-14 7:36:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Oliver Wong" <email***@***.com> wrote in message
news:btBVe.271042$on1.60786@clgrps13...
> <email***@***.com> wrote in message
> news:email***@***.com...
> > As a test I loaded this snippet of code into a test.cpp
> > file and sure enough the code folding quickly identified
> > the missing bracket.
>
> In other words, this is (and has long been) a solved problem.
Something
> Skybuck seems to have trouble understanding. :/
Hmm ok for some reason the previous message did not arrive at my newsreader.
Now I see what he is talking about ;) (Some kind of external editor called
zeus ;))
(Kinda strange that post didnt reach me, anybody have any idea why that is
???)
Ok I installed zeus and paste the code into it, the final result is lol:
You're an idiot.
It doesn't detect jack squat. (It simply folds everything etc lol
hahahahahaha)
Bye,
Skybuck.
|
| |
|
| |
 |
Bruce Roberts

|
Posted: 2005-9-14 23:47:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Skybuck Flying" <email***@***.com> wrote in message
news:dg7m5o$3up$email***@***.com...
> That's not how you would parse it.
It doesn't matter how you would parse it. What matters is how the parser
would parse it. You might want to remember that the parser is doing the work
and it is limited to processing a non-ambiguous grammar.
> There would be something like an indentation count.
>
> As soon as it increases a new statement block begins, as soon as it
> decreases the end of a statement block has been reached.
And what exactly defines an indent? <newline> followed by <space> or <tab>?
And what if there is a mixture? And how does the parser know what expansion
setting a user's editor was using for <tab> at the time the source was
created?
> However I like writing code like this in case there are many parameters:
>
> if function(
> a,b,c,d,
> This would be a problem unless parameters have to be passed in a special
> way.. for example
> by using twice the indentation:
In Delphi / Pascal the parser has no problems with this since it is working
from a grammar that distinguishes actual parameters from statements. It
might be a problem in C derivatives since an expression can be a statement.
|
| |
|
| |
 |
Skybuck Flying

|
Posted: 2005-9-15 2:00:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Bruce Roberts" <email***@***.com> wrote in message
news:aDXVe.2648$email***@***.com...
>
> "Skybuck Flying" <email***@***.com> wrote in message
> news:dg7m5o$3up$email***@***.com...
>
> > That's not how you would parse it.
>
> It doesn't matter how you would parse it. What matters is how the parser
> would parse it. You might want to remember that the parser is doing the
work
> and it is limited to processing a non-ambiguous grammar.
>
> > There would be something like an indentation count.
> >
> > As soon as it increases a new statement block begins, as soon as it
> > decreases the end of a statement block has been reached.
>
> And what exactly defines an indent? <newline> followed by <space> or
<tab>?
Lookup the basic concept of indentation lol, shouldn't be to hard to grasp.
Here is what you do:
Turn the text into lines.
Then process each line.
How hard would that be ?
And ofcourse tab characters would be mandatory.
> And what if there is a mixture? And how does the parser know what
expansion
> setting a user's editor was using for <tab> at the time the source was
> created?
See above.
>
> > However I like writing code like this in case there are many parameters:
> >
> > if function(
> > a,b,c,d,
>
> > This would be a problem unless parameters have to be passed in a special
> > way.. for example
> > by using twice the indentation:
>
> In Delphi / Pascal the parser has no problems with this since it is
working
> from a grammar that distinguishes actual parameters from statements. It
> might be a problem in C derivatives since an expression can be a
statement.
Problem solved above.
Bye,
Skybuck.
|
| |
|
| |
 |
Ed Prochak

|
Posted: 2005-9-15 4:30:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
Skybuck Flying wrote:
> "Bruce Roberts" <email***@***.com> wrote in message
> news:9MBVe.2018$email***@***.com...
[]
> >
> > In Pascal a While loop has the grammar
> >
> > While <expression> Do <statement>
> >
> > With a layout dependant grammar one would have to define it
> >
> > While <expression> Do <newline> <indent> <statement>
> >
> > Seems to me to be an awful lot of extra fluff for little gain.
> >
>
> That's not how you would parse it.
>
> There would be something like an indentation count.
>
> As soon as it increases a new statement block begins, as soon as it
> decreases the end of a statement block has been reached.
>
> However I like writing code like this in case there are many parameters:
>
[]
>
> This would be a problem unless parameters have to be passed in a special
> way.. for example
> by using twice the indentation:
>
> if function(
> a,b,c,d,
> e,f,g,h,
> i,j,k,l ) then
> begin
> blabla;
> end;
>
> Which would look like:
>
> if function(
> a,b,c,d,
> e,f,g,h,
> i,j,k,l ) then
> blabla;
>
> :)
>
> Bye,
> Skybuck.
Care to present a grammer for this "indented block" structure?
Code examples don't count.
I don't think a valid grammer for this style can be written in a
context free grammer. In order to keep tract of the block level the
inner level must somehow know the level of the outer block. IOW the
block level is not context free. Bruce's example doesn't work for
anything beyond while loops with a single simple statement. (no sub
blocks like another WHILE or IF)
So show how serious you are by getting down in the works and get it to
happen.
And I agree with others that this solution is worse than the original
problem of missing a block bracket.
Enjoy,
ed
|
| |
|
| |
 |
Skybuck Flying

|
Posted: 2005-9-15 10:28:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Ed Prochak" <email***@***.com> wrote in message
news:email***@***.com...
>
> Skybuck Flying wrote:
> > "Bruce Roberts" <email***@***.com> wrote in message
> > news:9MBVe.2018$email***@***.com...
> []
> > >
> > > In Pascal a While loop has the grammar
> > >
> > > While <expression> Do <statement>
> > >
> > > With a layout dependant grammar one would have to define it
> > >
> > > While <expression> Do <newline> <indent> <statement>
> > >
> > > Seems to me to be an awful lot of extra fluff for little gain.
> > >
> >
> > That's not how you would parse it.
> >
> > There would be something like an indentation count.
> >
> > As soon as it increases a new statement block begins, as soon as it
> > decreases the end of a statement block has been reached.
> >
> > However I like writing code like this in case there are many parameters:
> >
> []
> >
> > This would be a problem unless parameters have to be passed in a special
> > way.. for example
> > by using twice the indentation:
> >
> > if function(
> > a,b,c,d,
> > e,f,g,h,
> > i,j,k,l ) then
> > begin
> > blabla;
> > end;
> >
> > Which would look like:
> >
> > if function(
> > a,b,c,d,
> > e,f,g,h,
> > i,j,k,l ) then
> > blabla;
> >
> > :)
> >
> > Bye,
> > Skybuck.
>
> Care to present a grammer for this "indented block" structure?
> Code examples don't count.
>
> I don't think a valid grammer for this style can be written in a
> context free grammer. In order to keep tract of the block level the
Who cares about context free grammer. I dont care about.
I am all for context.
Runtime information is a sort of context.
> inner level must somehow know the level of the outer block. IOW the
> block level is not context free. Bruce's example doesn't work for
> anything beyond while loops with a single simple statement. (no sub
> blocks like another WHILE or IF)
>
> So show how serious you are by getting down in the works and get it to
> happen.
Lol, Why should I ? Python already does it.
>
> And I agree with others that this solution is worse than the original
> problem of missing a block bracket.
Then I guess you wont be programming in python lol ;)
(where there are no brackets in the first place lol =D)
Bye,
Skybuck.
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2005-9-15 22:42:00 |
Top |
java-programmer >> Correct Identation/Contex can solve the too many compiler error messages problem when a closing bracket is missing.
"Skybuck Flying" <email***@***.com> wrote in message
news:dgalup$6fj$email***@***.com...
>
> "Ed Prochak" <email***@***.com> wrote in message
> news:email***@***.com...
>> I don't think a valid grammer for this style can be written in a
>> context free grammer. In order to keep tract of the block level the
>
> Who cares about context free grammer. I dont care about.
>
> I am all for context.
>
> Runtime information is a sort of context.
Since you don't seem to know what context-free grammars are, I suggest
you read up on them before further embarassing yourself on topics of
programming language design. You can start with Wikipedia:
http://en.wikipedia.org/wiki/Context-free_grammar As an aside, there's no
shame in not knowing what CFGs are (most programmers don't), but it is very
discouraging that, rather than showing a curiosity or desire to learn more
about them, you dismiss them entirely.
If you are not willing to learn, it will be much more difficult (perhaps
impossible) for you to become as knowlegeable as someone who IS willing to
learn.
>> So show how serious you are by getting down in the works and get it to
>> happen.
>
> Lol, Why should I ? Python already does it.
So in other words, what you want has already been done. It's called
Python, and you're satisfied with Python. So why don't you code in Python,
post on Python related newsgroups, and let the Delphi/C/Java people code in
whatever languages they want?
> Then I guess you wont be programming in python lol ;)
>
> (where there are no brackets in the first place lol =D)
Hilarious.
- Oliver
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- garbled JFrame
Ive got a a JFrame class displaying many JLabels with images inside.
It displays fine and I can drag it around the desktop ok.
But when I drag another window over the JFrame my JFrame gets garbled.(get
multiple images of the labels)
Even when i minimize it and maximize it is still garbled.
why would that be?
TIA
patrick
- 2
- How Can I put XSL tag inside HTML form tag?Hello Dudes,
Sorry I couldn't find a XML/XSL group
I can only post these groups close to my subject.
In JSP (Java Server Page) you can do something
like this
<%
String v = myBean.getValue();
%>
<form .... >
<input name="myTag" value="<%= v %>">
</form>
You can do the similar thing in PHP.
But when I try in XSL I got error.
I have an XML file
<myTag attribute1="value1" />
Now I want to transform it into HTML form tag used XSL template
But XSL doesn't like this
<input name="myTag" value='
<xsl:value-of select="@attribute1" />
'></input>
How can I solve this problem?
Thank Q very much in advance!
- 3
- Painting overHello,
I have written code to generate "Fractal Landscap", we can consider that
it is set of painted in different colors ovals.
Now I would like to paint ON IT. I mean paint star in one part of
"Fractal Landscape", than remove this star and paint it somewhere else.
I dont want to repaint() "Fractal Landscape" because it is very slow,
how to paint on it, without replacing content of Landscape.
thx
M
- 4
- print a db field with html tagJ've developpe a java web application (jsp,tomcat,java) and j've used a
replacement for field "textarea" and it work fine but store in a db (oracle)
field information with html tag ... there is a program (freeware or
shareware) can j use to print this field without loss this information?
crystal report is OK but it's too expensive!!!
thank in advance
Marco
sorry for my poor english
- 5
- how do I encode image as stringI am trying to pass an image that I am manipulating in a java applet to
a javascript fuction, to be used there as either the source for an img
tag, or to save and/or print. Another possibility is to pass the image
up to a php script for further processing on the server. I know that
you can use ImageIO to save the image to a ByteArrayOutputStream, and
then use the stream's toString to get a string, but passing that string
to javascript truncates the image after the first 4 characters, due to a
null character (hex 0). I have been able to encode the string to
base64, but I do not know if anything more is needed to be done for the
javascript function to use it as an image.
I know that you can embed images in HTML by storing a special string
representation of the image in a javascript variable, but I do not know
what this format is. If I knew this format, I could encode the image in
Java, and then pass this string on. Any one know anything that could
help me?
Darcy Kahle
- 6
- In Swing, using the RTFEditorKit, how to copy/cut Formatting *and* text to the Clipboard?Hi Folks:
Any idea on the best approach to support copy/cut of all style/formatting as
well as plain text for a JTextPane? I googled quite a bit and located a
word processing program that supports JTextPane but they specifically
mention it only places "plain text" to the Clipboard and ignores the
formatting information when transfering.
I was thinking about implementing the Transferable interface and using the
Clipboard.setContents(..) method but I'm not sure yet by which procedure I
implement the getTransferData() as it wants to return an Object. I could
use a byte[] stream and return a ByteArrayOutputStream who's contents would
be filled with the Document's data (ie, plain text *and* the control/style
information). I just don't know if that would work yet but I plan to try
that.
Seems like there's very little (if anything) mentioned in the sun
developer's forum on how to do this as well as in google...
First of all, is Java's support for RTF still somewhat "primative"??? I
have a full blown word processor going which looks like Word and supports
font changes, size changes, find/replace operations, etc... It's just that
the cut/copy only transfers the plain text (despite my attempts to call
setContentType("text/rtf")) to the clipboard and not the style information.
thanks for any insight, Theron
- 7
- JSplitPane/JScrollPane Problem?Hey,
I'm writing an interface that has a verticle split pane, the top
and bottom of which both contain JScrollPanes with JEditor panes inside
each scrollpane. It sits within a JTabbedPane which is in a
JInternalFrame on a JDesktopPane.
JDesktopPane --> JTabbedPane --> Tab --> JSplitPane --> 2 ScrollPanes
--> 2 JEditorPanes.
The first EditorPane is a source area and the second is an error
output area. It's been working fine for me, which makes my current
dilema even worse.
I need to do the same format of error for an output tab so that
the output area is on top and the error output is on bottom. I took
the code from the previous working implementation and ported it and for
some reason it didn't work. The top component JScrollPane-->
JEditorPane does not show, but the bottom one does. Also, if I just
add the JScrollPane instead of the JSplitPane to the tab, it still
doesn't show, leading me to believe that it is a problem with the
implementation of the JScrollPane. Here are the code snippets of the
working and non-working portions of my code.
-----Working-----
source = new JEditorPane();
sourceError = new JEditorPane();
sourceError.setEditable(false);
JScrollPane scrollPane = new JScrollPane(source,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
scrollPane.setBorder(BorderFactory.createEmptyBorder());
JScrollPane errorScrollPane = new
JScrollPane(sourceError);
errorScrollPane.setBorder(BorderFactory.createEmptyBorder());
sourceSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
scrollPane,
errorScrollPane);
sourceSplit.setBorder(BorderFactory.createEmptyBorder());
-----Not Working-----
expressionOut = new JEditorPane();
outputError = new JEditorPane();
expressionOut.setEditable(false);
outputError.setEditable(false);
JScrollPane outputScroller = new
JScrollPane(expressionOut,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
outputScroller.setBorder(BorderFactory.createEmptyBorder());
JScrollPane outErrorScroller = new
JScrollPane(outputError);
outErrorScroller.setBorder(BorderFactory.createEmptyBorder());
sourceSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
outputScroller, outErrorScroller);
outputSplit.setBorder(BorderFactory.createEmptyBorder());
-----How They Are Added-----
tabFrame.addTab("Source", sourceSplit);
tabFrame.addTab("Output", outputSplit);
---------------
Any Ideas on why it isn't showing expressionOut?
- 8
- Download file problem in netscapeConsider this example..
I have a pdf file which is embedded in the browser and I have a
download link which is used to download that pdf file. When I click on
the download link, it is not functioning since it is the same url as
the embedded pdf and because the adobe reader is already there in the
browser it will automatically opens or the embedded pdf will goes off.
To prevent this scenario, we can use a mechanism. First create a
hidded iFrame in the same window using the following code..
<iframe style="DISPLAY: none" name="iframe1" src="">
Now make a small change to your download link so that the url target
is pointing to the hidden frame as shown below..
<a href="..." target="iframe1">Download</a>
This will solve the problem. However this method will not work with
Internet Explorer. For IE we can use another method and that method
can be choosen automatically by the browser.
More java tips @ http://sourcecentral.blogspot.com
- 9
- java.sql.SQLException: ORA-00020: maximum number of processes (100) exceededHello Friends,
I am getting the following error.
java.sql.SQLException: ORA-00020: maximum number of processes (100)
exceeded
I am closing all my resultsets and all my connections in the try
block.
should i close ResultSets and Connections in the catch block aswell?.
or the problem is due to the connection pool settings in weblogic or
on the oracle side instead of in my application.
Thanks in Advance
s
- 10
- Critical Problem with Tomcat 3.3.1 and SSLHello,
I am having a serious problem trying to set up SSL on Tomcat 3.3.1 on
Windows 2000. I am following the jakarta guidelines exactly as they
propose, but I am having absolutely no luck. What am I doing wrong?
Here is the procedure I follow:
First, I run the following command -
keytool -genkey -keyalg rsa -alias name -keystore name
- I then answer the questions. I tried setting the common name as
my name, and a second time as the the URL used to access the site in
question, ie: sitename.com
Then, I issue the following command -
keytool -certreq -keystore name -alias name -file name.csr
Next, I send the name.csr file to the CA, and recieve 3 certificates.
The 3 certificates I receive are RootCert.cer, IntCert.cer and
NewCert.cer. So, I then issue the following commands in this order:
keytool -import -trustcacerts -file RootCert.cer -alias rootcert
-keystore name
keytool -import -trustcacerts -file IntCert.cer -alias intcert
-keystore name
keytool -import -trustcacerts -file NewCert.cer -alias newcert
-keystore name
After each command I receive confirmation that the certification was
properly inserted. I then copy the 'name' file to TOMCAT_HOME/conf
and edit the server.xml file. I add the following lines to the
server.xml file:
<Http10Connector
port="8443"
secure="true"
keystore="c:\tomcat\conf\name"
keypass="password"
clientauth="false"/>
Now, I restart tomcat and assume that everything should be in order.
When starting tomcat via the batch file, I see that an Http10Connector
is correctly sitting on port 8443. So, I try accessing the site
normally, and everything works fine. However, if I attempt an HTTPS
request to the site, I receive a page cannot be displayed error. This
is strange, because I figured that at this point it should work.
Well, I then attempted to access it manually by addressing
localhost:8443 .... this is where I noticed a problem. Once the
request is sent to Tomcat, Tomcat throws the following exception:
PoolTcpEndpoint: Handshake failed
javax.net.ssl.SSLException: Unrecognized SSL handshake.
at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
at org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFactory.java:270)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:479)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Unknown Source)
ThreadPool: Caught exception executing
org.apache.tomcat.util.net.TcpWorkerThread@3a8602, terminating thread
java.lang.NullPointerException
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:498)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Unknown Source)
What is going on? Luckily, I have access to a CA, so this process
isn't costing me anything, however I have attempted this multiple
times with various certificates and various settings on the
certificate and I always get this same exception. What's more, I
tried creating a self signed certificate and I still get this
exception. Am I doing something wrong? I have scoured the net
countless times and it seems like all the instructions say the same
thing. When I search for this error, none of the recomendations fit
my situation. If no one knows how to fix this, could someone please
recomend where I can go so that I can find the answer to this problem?
Please help me out, this is driving me nuts. Thanks in advance,
Dan
- 11
- Running a servlet with TomcatHi,
When I use the following URL in Internet Explorer:
http://localhost/servlet/HelloWorldExample
I get an error message:
-----8<------------
HTTP Status 404 - /servlet/HelloWorldExample
--------------------------------------------------------------------------------
type Status report
message /servlet/HelloWorldExample
description The requested resource (/servlet/HelloWorldExample) is not
available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.17
-----8<------------
I have the HelloWorldExample.class file in
C:\Tomcat5.5\webapps\ROOT\WEB-INF\classes.
Can anyone help me please?
Best regards,
Matheas Manssen
- 12
- Java license explanationCan someone explain to me if Java can be used freely like other
softwares like C++.Perl, PHP or I have to pay for its license once I
used it in programming in a company or in a website or e-commerce.
Is Java really opensource or not?
And so when will be the time you have to pay for its license?
Thanks!!!
- 13
- help with multidimensional arraysHi
I am a newbie in the world of Java programming. I have recently started
learning the language. Apart from other hickups one which has been on
my nerves is the concept of multidimensional arrays. As far as my
understanding goes these are array of arrays.
1. WHAT DOES THIS MEAN?
2. ARE ARRAYS RESTRICTED TO THREE DIMENSIONS ONLY OR THERE IS ANY OTHER
LIMIT AND HOW DOES THREE DIMENSIONAL OR HIGHER DIM ARRAYS WORK?
Does two dim arrays represent a pigeon hole type thing in which you
find a particular hole by giving row and column address e,g. box
located at row 5 and column 2.
3. IF THIS CONCEPT OF TWO DIMENSIONAL ARRAYS IS CORRECT THEN HOW DOES
THREE DIMENSIONAL OR HIGHER DIM ARRAYS WORK.
Presently I am going through a book written by Herber Schildt known as
Java 2 complete reference, Following is a program which demonstrates
the two dim arrays. I am unable to understand the make of the program
may be so many loops are troubling me. I am especially confused about
the functioning of the question mark steps please help me out there.
// Demonstration of concept of two dimensional arrays
class twoD {
public static void main (String args [ ]) {
int [ ][ ] twoD = new int [4][5];
int i,j,k = 0;
for (i=0; i<4; i++)
for (j=0; j<5; j++) {
twoD [i][j] = k; ?
k++; ?
}
for (i=0; i<4; i++) {
for (j=0; j<5; j++)
System.out.println (twoD[i][j] + " ");
System.out.println();
}
}
}
4. HOW AND WHY SO MANY LOOPS ARE FUNCTIONING TOGETHER?
(While replying please be patient and keep in mind that u r talking to
an absolute beginner in the world of Java programming)
- 14
- Download the JAVA , .NET and SQL Server interview question with answersDownload the JAVA , .NET and SQL Server interview sheet and rate
yourself. This will help you judge yourself are you really worth of
attending interviews. If you own a company best way to judge if the
candidate is worth of it.
http://www.questpond.com/InterviewRatingSheet.zip
2000 Interview questions of .NET , JAVA and SQL Server Interview
questions (worth downloading it)
http://www.questpond.com/InterviewQuestions.zip
Core Java and OOP's Interview questions
http://www.questpond.com/OOPsAndCoreJava.zip
Servlets / JSP Interview questions
http://www.questpond.com/ServletsJSP.zip
Architecture Interview Question
http://www.questpond.com/ArchitectureInterviewQuestions.zip
Project Management Interview questions must to read for all aspiring
project managers
http://www.questpond.com/ProjectManagementInterviewQuestions.zip
Full Address book application in C# with technical specification ,
estimation and test cases
http://www.questpond.com/AddressbookProject.zip
Web services Interview questions
http://www.questpond.com/WebServicesAndRemoting.zip
SQL Server 2005 Database optimization Interview questions
http://www.questpond.com/DatabaseOptimization.zip
SQL Server 2005 DTS Interview questions
http://www.questpond.com/DTSInterviewQuestions.zip
SQL Server datawarehoue and Data mining Interview questions
http://www.questpond.com/DatawareHousingandDataMining.zip
SQLCLR Interview questions
http://www.questpond.com/SQLCLRInterviewquestion.zip
SQL Server XML Interview questions
http://www.questpond.com/SQLServerXML.zip
Basic .NET Framework interview questions
http://www.questpond.com/FrameWorkSampleInterviewQuestions.zip
.NET Interop and COM Interview questions
http://www.questpond.com/InteropdotnetInterviewQuestions.zip
ASP.NET Caching Interview questions
http://www.questpond.com/CachingInterviewQestions.zip
Do not know how estimations are done here's a complete book on it
http://www.questpond.com/HowtoPrepareSoftwareQuotations.zip
- 15
- Defaults for JFileChooser?Any idea how the look and feel mechanism loads the text items for
JFileChooser? I began digging in the source code for UIManager.java,
BasicFileChooserUI.java, and others, and rapidly got lost.
Ultimately a call is made to, e.g.,
UIManager.getString("FileChooser.helpButtonToolTipText", someLocale),
but I can't figure out how the UIDefaults that UIManager uses to locate
this string is actually initialized.
Thanks,
Laird
|
|
|