| [OT] gov't sponsored drug development |
|
 |
Index ‹ java-programmer
|
- Previous
- 2
- J2ME: j9 & JSR75?Hi all...
Has anyone tried to install IBM's optional package for JSR75
support on it's PDA?
I am having troubles by lauching the Midlet HQ that would
support FileConnection.
Regards,
Branko
- 2
- For loop not working from static methodI have a JSP that outputs 10 links and it works great but want to cut
down on the scriptlet lines in my JSP.
Now I want to put the for loop that outputs the 10 links into a source
file and call the class in my JSP using just one line scriptlet.
Here is what my current JSP looks like where it outputs the 10 links:
<jsp:useBean id="pageinfo" class="storm.Pageinfo" scope="session" />
.....
<%
if (pageinfo!=null)
{
for(int i=0;i < 10;i++)
{
out.println("<a href=moveto.jsp?inpage=" + i + ">" + i + "</
a>");
}
}
%>
Now my attempt to put it in a class outputs only 1 link instead of 10.
Source code for the Java class:
package storm;
import storm.*;
public class PageUtil
{
public static String theMethod(Pageinfo pageinfo)
{
if (pageinfo!=null)
{
for(int i=0;i < 10;i++)
{
return "<a href=moveto.jsp?inpage=" + i + ">" + i +
"</a>";
}
}
return "";
}
}
JSP scriptlet calling the static method:
<%= PageUtil.theMethod(pageinfo) %>
Please advise how I can get this to work. I am using Tomcat 4.1.27
and dont have JSTL.
- 5
- jsp servlet code seperation confusionI posted this on the .help NG but I believe you folks could probably
provide more of an accurate answer considering the help group is
targeted towards true beginners.
Okay, where I am employeed I have the options of programming with
Microsoft Technologies and Java specifically J2EE. I have been
investigating the task of learning Java for about the last 3 to 4
months. I am a ASP.Net developer fulltime at work with C#. I was new to
OOP when I started into .Net about a year ago and am getting better.
However, our corporation uses Java as a National standard and I am
looking to advance some day and need to learn Java. Furthermore, where I
live, KY there are very few jobs for technologies other than .Net and
Java. No PHP or ColdFusion.
In the last couple of years this code seperation theory has overloaded
the programming world. .Net does it with what's called code behind. In
my research of Java the only things I see that reference code seperation
is servlets (I am sure J2EE and EJB contribute also). However,
everything I have read on servlets reference outputing HTML back to the
browser via the HttpServletResponse and Request objects.
My question, why in the world do they consider outputting HTML back to a
browser via a servlet considered code seperation. Furthermore, it
seems very time consuming and difficult to hand code complex layouts in
HTML and incorporate/format it for a servlet.
Can someone please explain or direct me to a resource where I can
understand why using servlets at any point in an application would be
better than jsp or even applets? Sometimes it's hard enough to design
complex layouts with the assistance Dreamweaver for example.
Thanks for any insight you can provide, I have read hundreds of pages of
information concerning this and trying to compare it with the my current
knowledge in the .Net world.
Marty U.
- 9
- database connection pooling in tomcat 3.3.1Hi,
I have a webapp which uses database connection pooling setup just like
the tomcat how-to suggests. But, I can't seem to get it to work on
tomcat 3.3.1. I couldn't even find any how-tos or guidances on it
anywhere. Is it supported ?
I get a javax.naming.NoInitialContextException: error when I set it up
in the conf/app-myapps.xml like the 3.3.1 doco suggests.
Appreciate any help on this.
Regards,
Lenine
- 9
- panel question.."Frances" <email***@***.com> wrote in message
news:4317337c$0$18646$email***@***.com...
<snipped />
> Sunde, we finally managed to connect to server.. thank you very much for
> all your help, very much appreciated.. Frances
You never said...
Did your original code call one of the applets methods from JavaScript?
...or was it something else?
I'm just curious to what was wrong...
--
Dag.
- 13
- J2ME, How to minimize a program ?Thank you so much for the information I didn't know.
But, for Sony Ericsson cells, we can press back button ( like the
symbol of inverse Enter ) to exit ( not destroy ) program.
For SmartPhone - P910i, we can run other funtion very easily ( we don't
have to implement it )
I found a cheat method that could do this.
public Form f;
....
....
// Do not new a Form for f
display.setCurrent(f); // minimum program :p
// I don't know why, the compiler pass it, and we can find it is work
on cell.
- 13
- jboss and Workflow??I'm work with Jboss, and I'd use Workflow on Jboss server. Is Anyone working about this problem? Can anyone give me a tutorial or an example???
- 13
- web search with summarized results, good for wireless, too.We just released a wireless search service. The wireless search
service takes the results returned by Google and gives key points of
the resulting web sites. The short key points are suitable for viewing
on wireless devices.
Check it out at:
http://www.netosprey.com
The following is an example of www.sun.com:
-----
You entered: http://www.sun.com/
Link to Text ratio: 453/914=0.49562363238512036
AME finds this page has a lot of links.
It could be an index page and talks about: Java, Sun, System,
Computing, and Products
Here is a list of main ideas presented in the page:
*** Sun's Big Web Event - Don't miss Network Computing 03-Q4 on
December 3 at 8 am PST. Sign up for an e-mail reminder today.
*** Choice on a grand scale. - Sun extends product line through
strategic alliance with AMD; plans to offer high-performance x86
systems at affordable prices.
*** The identity management leader. - Sun's planned acquisition of
Waveset aims to inject the Java EnterpriseSystem with superior network
identitycapabilities.
*** Sun Signs Agreement with CSSC - Java Desktop System to be
established as the foundation for China's fast-growing IT industry.
*** Contact |Company Info |Employment |Privacy |Terms of Use
|Trademarks
-----
Check it out at:
http://www.netosprey.com
Steve
- 13
- How do I make a simple password field....more.I want to password protect the continued running of a section of javascript.
What I need is for the user to see a login field, they type a code in, if it
is good, the script continues, if bad, it stops dead.
I would like to base the password on julian date.
Also, how do I time out a group of statements after a preset amount of time
like 1 minute or so.
I am not a Java programmer, but if examples are shown, I can usually figure
out the specific details.
THANKS in advance.
- 14
- 2 extendsDale King wrote:
> The Wogster wrote:
>
>> Thomas G. Marshall wrote:
>>
>>> The Wogster coughed up:
>>>
>>>> Irlan agous wrote:
>>>>
>>>> It's like the goto, it's legal in C, but the only times I have seen it
>>>> used, were because someone had programmed themselves into a corner.
>
>
> In C there were some cases where it was necessary/mad the code clearer.
> Most of those cases in Java have other constructs that eliminate the
> need for an arbitrary goto. Exceptions, labelled break and continue
> eliminate most of the cases for goto from C. But since C doesn't have
> those you are forced to use goto or over complicate the code.
>
>> With languages that have richly designed looping and redirection
>> constructs, you shouldn't need the goto. I didn't say it was always
>> to be avoided, just that when you feel the need to use goto (except
>> maybe in Gee Whiz Basic), it's usually a pretty good indicator that
>> the code design is lacking.
>
>
> That design as you said could be the design of the language and not
> necessarily the design of the program. Or are you one of those anti-goto
> that also disagrees with goto-like constructs like break, continue, and
> exceptions?
Uh no, because those leave control with the language. Most people who
defend the goto so vehemently,are, with modern languages like Java,
simply are using it to emulate something else available within the language.
Let's see, in the last 10 years, I have written about 1,000,000 lines of
C code, the number of actual goto's in there, none. During that time, I
viewed probably 40,000,000 more lines, which contained maybe 20 gotos.
Shows how little goto is actually needed. Of those 5, were code that
was complex trying to do something simple, usually the reason I was
looking at it, was because it wasn't working (poor design). Five more
were instances where you had the jack-of-all-procedures, where the
programmer had written a bunch of procedures in one block of code (again
poor design). They used goto to make the thing work. The remaining
ones, were places where the programmer had written themselves into a
corner, and under pressure of getting the thing to work, used goto to
bail out (again poor design).
W
- 14
- GridBagLayout and JMenuBar problemsHere's another interesting one. I looked on the Bug Parade to see if
this was present, but rapidly drowned in the sea of totally unrelated
results I got back from the brain dead search capabilities.
I built up a JPanel using GridBagLayout and various components. Works
fine; I'm quite used to GridBagLayout and its quirks. I'm using the
Java look and feel with native decorations turned off, so GridBagLayout
respects my panel's minimum size constraints.
I had been testing this layout in a JFrame without a JMenuBar, just to
validate the layout. Now when I added a JMenuBar to the JFrame, the
layout screws up when I resize the panel down to its smallest size.
It's as though the GridBagLayout does not take the JMenuBar's dimensions
into account when resizing happens. In my case, a couple of buttons
shrink in height, a text field bizarrely grows to 1.5X height, and
another text field overlaps it. None of these problems show up unless
the menu bar is in place.
Again: a known bug? Or should I submit it?
If there's any interest I'll whittle my code down to a SSCCE. Then I'll
try it with native window decorations turned on to see if that's where
the problem lies.
Laird
- 15
- reason for sporadic long full GC pause times?!?....Hello folks,
in our java business application our customer realize sporadic very
long pauses caused by full gc's.
Normaly the app runs smoothly with acceptable gc- and
full-gc-pausetimes. (gc=0.0xx sec / fullgc <=2 sec)
But sometimes during 8 hour work the occurs full gc's with 90-150
seconds (!)
which our customer complains about - of course.
In the first step I thought that our JVM-settings were wrong:
-Xms450m -Xmx450m -XX:NewSize=32m -XX:MaxNewSize=32m
-XX:SurvivorRatio=8 -classpath....
--> long full gc pauses occured sporadicaly.
I thought that the Newsize is too small -> wich implies the too big
tenured space -> which could be the reason for too longs full gc's. I
decided to use -NewRatio=4 Parameter.
And I also lowered the max. Heap size to Xmx350m, because the gcviewer
told me that the memory usage was only about 290 MB.
With the new settings
-Xms350m -Xmx350m -XX:NewRatio=4 -XX:SurvivorRatio=8 -classpath....
our customer had the same experience that sometimes the full gc's
pausetime took more than 100 sec's.
Additionally we/they relaized that the full gc freed not enough memory
so that the full gc frequency raised up to a point where no minor gc
were done - only full gc's !
Due to that I raised Xms and Xmx
-Xms512m -Xmx512m -XX:NewRatio=4 -XX:SurvivorRatio=8 -classpath....
which enables the JVM to free more memory at full gc (already tested),
but I fear this will not help to solve the sporadic problem with the
long full gc pause times at customer side.
Does anybody have an idea what could be the reason for the
extraordinary long full gc pause times?
Info btw:
customer PC's all have 1 GB RAM and the throughput of the application
was in any case >= 99,8% !
The problem with the long full gc pause times was never reproduced in
our lab / dev.-deptmnt.
Thanks in advance
Martin
- 16
- turn off multiref in Axis(SOAP)Is there any possibilities to turn off references in soap envelope.
I would like to have response axis format equivalent old soap format.
thanks for help
bastek
- 16
- Comparing two long numbersOn Mon, 2 Jun 2008, Daniele Futtorovic wrote:
> On 2008-06-02 13:22 +0100, Lew allegedly wrote:
>> Lew wrote:
>>>> Why do you use either "d" or "D"? Is it something you always put on
>>>> double constants, or just for potentially ambiguous situations? If the
>>>> latter, how do you assess ambiguity?
>>
>> John B. Matthews wrote:
>>> I don't use either "d" or "D"; I use "d", but I have to read other
>>> people's "D"s. Presbyopia comes to us all. :-)
>>
>> Most people don't bother with either "d" or "D" in Java double constants.
>> I never have to read other people's "D" in Java code; I don't think I've
>> ever encountered a double suffix on a constant in any professional Java
>> code.
>
> double athird = 1d / 3; ?
Urgh. Now this:
double farthing = 1d / 4 ;
is at least numismatically accurate, but won't compile after 1960!
tom
--
Eat whip you steroid wall-bashing lug-head! -- The Laird
- 16
- can't create BufferedImageI am trying to create a BifferedImage and Graphics2D associated with a
JPanel. I understand that the JPanel must be displayable else the
createImage method may return null. However in my stub program below I
always get null returned from createGraphics. I obviously am missing
something but I can't figure out what. If the program below is run
without a runline parameter it does not attempt to create a
BufferedImage and it runs OK. If it is run with a runline parameter it
throws an exception because bh is null. Why?
Jay
public class Test extends javax.swing.JFrame {
private static String[] opt = null;
public Test() {
init();
}
void init() {
javax.swing.JPanel jContentPane = new javax.swing.JPanel();
setContentPane(jContentPane);
setSize(450, 350);
javax.swing.JPanel graphPanel = new javax.swing.JPanel();
java.awt.Dimension s = new java.awt.Dimension(400, 300);
graphPanel.setPreferredSize(s);
getContentPane().add(graphPanel, null);
graphPanel.addNotify();
s = graphPanel.getPreferredSize();
System.err.println("Is JPanel=" +
(graphPanel instanceof javax.swing.JPanel) +
" " + s.width + "x" + s.height + " Displayable=" +
graphPanel.isDisplayable() + " Headless= " +
java.awt.GraphicsEnvironment.isHeadless());
if(opt!=null && opt.length>0) {
java.awt.image.BufferedImage bh =
(java.awt.image.BufferedImage)graphPanel.createImage(
s.width, s.height);
java.awt.Graphics2D bufh = bh.createGraphics();
}
}
public static final void main(String[] argv) {
opt = argv;
Test test = new Test();
test.setVisible(true);
}
}
|
| Author |
Message |
Kent Paul Dolan

|
Posted: 2003-11-19 2:20:00 |
Top |
java-programmer, [OT] gov't sponsored drug development
"Peter Koehlmann" <email***@***.com> wrote:
> Tim Tyler wrote:
>> Development of life-saving drugs would be sponsored by the government.
> What universe was it you said you live in?
Oh, probably the one where in the US at least, the National Institutes
of Health do exactly that, every business day.
Tim lives in one of the civilized countries where they have Public
Health for all, and of course there, the government is money ahead
if new drugs cut down the total balanced cost of treating the ill and
compensating for the other disbenefits to society that illness causes,
even at the tax base level, and if they had any brains would realize
that and fund research accordingly.
xanthian.
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
|
| |
|
| |
 |
Peter K鰄lmann

|
Posted: 2003-11-19 8:22:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
Dr Chaos wrote:
< snip bullshit >
> All other nations of the world benefit from the drug development
> paid for pretty much exclusively by the U.S. consumer.
>
> The other countries do NOT support large scale drug development---in
> fact it is inhibited by pharmaceutical price controls.
Really?
--
Microsoft's Guide To System Design:
It could be worse, but it'll take time.
|
| |
|
| |
 |
Dr Chaos

|
Posted: 2003-11-19 8:23:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
Kent Paul Dolan <email***@***.com> wrote:
> "Peter Koehlmann" <email***@***.com> wrote:
>> Tim Tyler wrote:
>
>>> Development of life-saving drugs would be sponsored by the government.
>> What universe was it you said you live in?
>
> Oh, probably the one where in the US at least, the National Institutes
> of Health do exactly that, every business day.
The NIH sponsors basic research and initial stages of drug creation.
but not the long term expensive trials and manufacturing, i.e.
development.
There are not $500 million grants to develop a single drug all
the way through manufacturing and commercial sales.
> Tim lives in one of the civilized countries where they have Public
> Health for all, and of course there, the government is money ahead
> if new drugs cut down the total balanced cost of treating the ill and
> compensating for the other disbenefits to society that illness causes,
> even at the tax base level, and if they had any brains would realize
> that and fund research accordingly.
All other nations of the world benefit from the drug development
paid for pretty much exclusively by the U.S. consumer.
The other countries do NOT support large scale drug development---in
fact it is inhibited by pharmaceutical price controls.
|
| |
|
| |
 |
Otis Bricker

|
Posted: 2003-11-19 9:24:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
Peter =?ISO-8859-15?Q?K=F6hlmann?= <email***@***.com> wrote in
news:bpedac$b0d$00$email***@***.com:
> Dr Chaos wrote:
>
>< snip bullshit >
>
>> All other nations of the world benefit from the drug development
>> paid for pretty much exclusively by the U.S. consumer.
>>
>> The other countries do NOT support large scale drug development---in
>> fact it is inhibited by pharmaceutical price controls.
>
> Really?
While not completely accurate, it is pretty close. They use the US market
to fund R&D. If it costs $800M on average to bring a new drug to market and
the government controlled health system will only pay a bit over the
marginal cost to produce, who is left to pay for the up-front costs and the
costs of failed drugs? Consumersw in those markets where there are no
government controls.
The US is the largest of these.
It is a complicated problem. Refuse to provide the drugs to other countries
at the low price they demand, and you risk them ignoring your patents.
Force the remaining free market to bear the cost alone, and you get
backlash for the obvious inequity of the situation.
But someone has to pay for the up-front and failure costs or no one will
bother coming up with new and better treatments.
Otis
|
| |
|
| |
 |
Dr Chaos

|
Posted: 2003-11-19 14:27:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
Peter K鰄lmann <email***@***.com> wrote:
> Dr Chaos wrote:
>
>< snip bullshit >
>
>> All other nations of the world benefit from the drug development
>> paid for pretty much exclusively by the U.S. consumer.
>>
>> The other countries do NOT support large scale drug development---in
>> fact it is inhibited by pharmaceutical price controls.
>
> Really?
Well, there is some significant basic research in European countries
and Japan but even the big European pharmaceutical companies make the
overwhelming bulk of their profit in the USA, and make their
calculations on whether to develop medications or not accordingly.
|
| |
|
| |
 |
William Brogden

|
Posted: 2003-11-19 22:11:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
"Otis Bricker" <email***@***.com> wrote in message
news:email***@***.com...
> Peter =?ISO-8859-15?Q?K=F6hlmann?= <email***@***.com> wrote in
> news:bpedac$b0d$00$email***@***.com:
>
> > Dr Chaos wrote:
> >
> >< snip bullshit >
> >
> >> All other nations of the world benefit from the drug development
> >> paid for pretty much exclusively by the U.S. consumer.
> >>
> >> The other countries do NOT support large scale drug development---in
> >> fact it is inhibited by pharmaceutical price controls.
> >
> > Really?
>
> While not completely accurate, it is pretty close. They use the US market
> to fund R&D. If it costs $800M on average to bring a new drug to market
and
> the government controlled health system will only pay a bit over the
> marginal cost to produce, who is left to pay for the up-front costs and
the
> costs of failed drugs? Consumersw in those markets where there are no
> government controls.
>
> The US is the largest of these.
>
> It is a complicated problem. Refuse to provide the drugs to other
countries
> at the low price they demand, and you risk them ignoring your patents.
> Force the remaining free market to bear the cost alone, and you get
> backlash for the obvious inequity of the situation.
>
> But someone has to pay for the up-front and failure costs or no one will
> bother coming up with new and better treatments.
Just one tiny problem with this line of blither - the drug companies
spend more on advertising than they do on research.
My family monthly bill for essential medication is over $200 - if
we lived in Canada or Mexico, it would be half that. I imagine your
attitude toward drug company price gouging is directly related to
your medical needs.
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
|
| |
|
| |
 |
Phillip Lord

|
Posted: 2003-11-19 22:17:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
>>>>> "Otis" == Otis Bricker <email***@***.com> writes:
Otis> While not completely accurate, it is pretty close. They use
Otis> the US market to fund R&D. If it costs $800M on average to
Otis> bring a new drug to market and the government controlled
Otis> health system will only pay a bit over the marginal cost to
Otis> produce, who is left to pay for the up-front costs and the
Otis> costs of failed drugs?
This statistic is thrown around a lot, and its based on an incorrect
premise. It may cost $800 million to bring a drug to market, but it
does not cost $800 million for all the drugs which fail. The costs
increase toward the end of the process, and most drugs fail well
before that.
You don't pay for clinical trials of a drug that kills mice for
instance. You don't pay for advertising for a drug that fails its
clinical trials.
Phil
|
| |
|
| |
 |
Otis Bricker

|
Posted: 2003-11-19 23:55:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
Phillip Lord <email***@***.com> wrote in
news:email***@***.com:
>>>>>> "Otis" == Otis Bricker <email***@***.com> writes:
>
> Otis> While not completely accurate, it is pretty close. They use
> Otis> the US market to fund R&D. If it costs $800M on average to
> Otis> bring a new drug to market and the government controlled
> Otis> health system will only pay a bit over the marginal cost to
> Otis> produce, who is left to pay for the up-front costs and the
> Otis> costs of failed drugs?
>
> This statistic is thrown around a lot, and its based on an incorrect
> premise. It may cost $800 million to bring a drug to market, but it
> does not cost $800 million for all the drugs which fail. The costs
> increase toward the end of the process, and most drugs fail well
> before that.
>
> You don't pay for clinical trials of a drug that kills mice for
> instance. You don't pay for advertising for a drug that fails its
> clinical trials.
>
I never claimed that $800M was spent on every drug. I am not sure how you
drew this from my statement but as you loint out, it is not true. But even
if you assume that the 99 out of 100 drugs that never make it to market
cost nothing(obviously absurd), that still leaves $800M coming from
somewhere. Assume even 1% the cost of a successful drug and you almost
double that number.
SO what was wrong with my statement?
|
| |
|
| |
 |
Phillip Lord

|
Posted: 2003-11-20 0:20:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
>>>>> "Otis" == Otis Bricker <email***@***.com> writes:
Otis> Phillip Lord <email***@***.com> wrote in
Otis> news:email***@***.com:
>>>>>>> "Otis" == Otis Bricker <email***@***.com> writes:
>>
Otis> While not completely accurate, it is pretty close. They use
Otis> the US market to fund R&D. If it costs $800M on average to
Otis> bring a new drug to market and the government controlled
Otis> health system will only pay a bit over the marginal cost to
Otis> produce, who is left to pay for the up-front costs and the
Otis> costs of failed drugs?
>>
>> This statistic is thrown around a lot, and its based on an
>> incorrect premise. It may cost $800 million to bring a drug to
>> market, but it does not cost $800 million for all the drugs which
>> fail. The costs increase toward the end of the process, and most
>> drugs fail well before that.
>>
>> You don't pay for clinical trials of a drug that kills mice for
>> instance. You don't pay for advertising for a drug that fails its
>> clinical trials.
>>
Otis> I never claimed that $800M was spent on every drug. I am not
Otis> sure how you drew this from my statement but as you loint out,
Otis> it is not true. But even if you assume that the 99 out of 100
Otis> drugs that never make it to market cost nothing(obviously
Otis> absurd), that still leaves $800M coming from somewhere. Assume
Otis> even 1% the cost of a successful drug and you almost double
Otis> that number.
Otis> SO what was wrong with my statement?
It's the logic argument again. The way you have put your statements
suggests that the $800 million in some way relates to the cost of the
failed drugs, which it doesn't.
Say for instance, most drugs fail at the early stage, then for ever
800 million perhaps they spend only 80 million on drugs that never
come to market.
The drugs companies currently spend about 10% of their turnover on
research, and this includes the research spent on the successful
drugs. I'd be interested in knowing what percentage of that 10% is
spent on drugs that never come to market.
Now clearly for drugs companies to operate they need to get paid at
least at a rate which reflects the total cost of production. This
includes the research of successful, and failed, drugs. Currently,
however, their total monopoly position that they have through patent,
means that they can charge at the maximum rate the market can
bear.
The companies argue that they can not spent the sort of money that
they do if they do not have patent rights. In which case why do they
spent the amount they do advertising the various drugs and
preparations that they produce which are not covered by patent rights?
Phil
|
| |
|
| |
 |
Otis Bricker

|
Posted: 2003-11-20 1:03:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
"William Brogden" <email***@***.com> wrote in
news:3fbb79e7$email***@***.com:
>
> "Otis Bricker" <email***@***.com> wrote in message
> news:email***@***.com...
>> Peter =?ISO-8859-15?Q?K=F6hlmann?= <email***@***.com>
>> wrote in news:bpedac$b0d$00$email***@***.com:
>>
>> > Dr Chaos wrote:
>> >
>> >< snip bullshit >
>> >
>> >> All other nations of the world benefit from the drug development
>> >> paid for pretty much exclusively by the U.S. consumer.
>> >>
>> >> The other countries do NOT support large scale drug
>> >> development---in fact it is inhibited by pharmaceutical price
>> >> controls.
>> >
>> > Really?
>>
>> While not completely accurate, it is pretty close. They use the US
>> market to fund R&D. If it costs $800M on average to bring a new drug
>> to market
> and
>> the government controlled health system will only pay a bit over the
>> marginal cost to produce, who is left to pay for the up-front costs
>> and
> the
>> costs of failed drugs? Consumersw in those markets where there are no
>> government controls.
>>
>> The US is the largest of these.
>>
>> It is a complicated problem. Refuse to provide the drugs to other
> countries
>> at the low price they demand, and you risk them ignoring your
>> patents. Force the remaining free market to bear the cost alone, and
>> you get backlash for the obvious inequity of the situation.
>>
>> But someone has to pay for the up-front and failure costs or no one
>> will bother coming up with new and better treatments.
>
> Just one tiny problem with this line of blither - the drug companies
> spend more on advertising than they do on research.
>
Companies don't advertise if it doesn't increase profits. Or at least no
sane company does. How are doctors to know about new medicines unless the
companies tell them?
Doctors cannot read all of the many journals that publish these days. I
would be surprised if any one doctor kept up with more than a couple.
Marketing and advertising are the way drug companies get the knowledge
out to doctors.
I happened upon this in a recent Thomas Sowell article:
"For years, the Food & Drug Administration forbad aspirin producers from
advertising that their product could be used to prevent heart attacks.
The fact was not in doubt but aspirin had not gone through the years-long
and very costly process required for official FDA approval for that
particular use.
It has been estimated that tens of thousands of needless deaths occurred
before the FDA ban was lifted. Lives saved by advertising are just as
important as lives saved any other way. No medicine will help anyone
unless its uses are known."
One more item. Those advertising and marketing costs include the free
samples provided to doctors. These allowed my family to try out 3
different alergy medications for my daughter to see which she tolerated
best before buying any. Almost 3 months worth without having to pay.
> My family monthly bill for essential medication is over $200 - if
> we lived in Canada or Mexico, it would be half that. I imagine your
> attitude toward drug company price gouging is directly related to
> your medical needs.
>
>
That may be true. I am not in your position. Perhaps my attitude is more
affected by the desire to see the companies continue to have incentive to
develop new drugs so the medications I might need will be developed when
I need them. The way those your family needs have been.
|
| |
|
| |
 |
James A. Robertson

|
Posted: 2003-11-20 1:08:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
see below
On 19 Nov 2003 14:17:25 +0000, Phillip Lord <email***@***.com>
wrote:
>>>>>> "Otis" == Otis Bricker <email***@***.com> writes:
>
> Otis> While not completely accurate, it is pretty close. They use
> Otis> the US market to fund R&D. If it costs $800M on average to
> Otis> bring a new drug to market and the government controlled
> Otis> health system will only pay a bit over the marginal cost to
> Otis> produce, who is left to pay for the up-front costs and the
> Otis> costs of failed drugs?
>
>This statistic is thrown around a lot, and its based on an incorrect
>premise. It may cost $800 million to bring a drug to market, but it
>does not cost $800 million for all the drugs which fail. The costs
>increase toward the end of the process, and most drugs fail well
>before that.
>
umm - msure you do. Those costs are amortized by the drugs that do
get to market - those cost more as a result. Who do you think pays
that?
>You don't pay for clinical trials of a drug that kills mice for
>instance. You don't pay for advertising for a drug that fails its
>clinical trials.
>
>Phil
<Talk Small and Carry a Big Class Library>
James Robertson, Product Manager, Cincom Smalltalk
http://www.cincomsmalltalk.com/blog/blogView
|
| |
|
| |
 |
Kent Paul Dolan

|
Posted: 2003-11-24 0:00:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
"William Brogden" <email***@***.com> wrote:
> I imagine your
> attitude toward drug company price gouging is directly related to
> your medical needs.
Well, no, due to being poorer than you can even imagine, I'm
exempt from Veteran's Administration hospital drug co-pays, yet
suck down their free-to-me prescription drugs by the fistfull
and I still think US drug prices are scandalously out of line.
One doesn't absolutely _have_ to be suffering from a tyranny to
recognize it for what it is, though I agree it sure helps.
xanthian.
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
|
| |
|
| |
 |
Kent Paul Dolan

|
Posted: 2003-11-24 0:14:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
"Dr Chaos" <email***@***.com> wrote:
> The NIH sponsors basic research and initial stages of drug
> creation. but not the long term expensive trials and
> manufacturing, i.e. development.
My, my, did we just redefine our terms to try to win an
argument without admitting an outright fable had been
highlighted?
> All other nations of the world benefit from the drug
> development paid for pretty much exclusively by the U.S.
> consumer.
> The other countries do NOT support large scale drug
> development---in fact it is inhibited by pharmaceutical
> price controls.
My have you got _that_ shoe on the wrong foot: as the
current imbroglio over Canadian-routed imports of the exact
same drugs from the exact same manufacturers but sold there
at half the US price because, not of price controls, but
because no one is stupid enough to pay that much, rather
clearly demonstrates, the pretty much sole cause of the US
drug price fiasco is a state sponsored monopoly enforced by
the US Food and Drug Administration, which will not relax
its death-grip on power long enough to admit that nationals
nor governments anywhere else are capable of competently
testing pharmaceutical efficacy and safety.
That is the exact and only basis on which they claim the
right to exclude Canadian import drugs provably by chain of
custody, not drug testing, to be identical to the same drug
sold in the US, an, I would hope, self-evident bogosity.
xanthian.
Do I believe I wrote English that hard to read? Yes, on long
familiarity with the perpetrator and his style.
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
|
| |
|
| |
 |
Kent Paul Dolan

|
Posted: 2003-11-24 0:28:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
"Dr Chaos" <email***@***.com> wrote:
> Well, there is some significant basic research in European countries
> and Japan but even the big European pharmaceutical companies make the
> overwhelming bulk of their profit in the USA, and make their
> calculations on whether to develop medications or not accordingly.
And US customers should continue under FDA prohibition of competition
unvetted by the FDA to pay the world's drug development costs, once
more, exactly why? Are our regulators so entirely competent, and
Britian's Spain's, France's et alia so utterly guaranteed to sell
their own nationals down the river of dangerous and useless drugs, in
comparision? From where does this arrogance find its defense? Why
does the same argument not apply, say, to US Federal meat inspectors
and our frequent scandalous mass deaths from contaminated meat?
xanthian, must I whisper "Thalidomide"?
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
|
| |
|
| |
 |
Otis Bricker

|
Posted: 2003-11-24 7:17:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
"Kent Paul Dolan" <email***@***.com> wrote in
news:email***@***.com:
> "Dr Chaos" <email***@***.com> wrote:
>
>> Well, there is some significant basic research in European countries
>> and Japan but even the big European pharmaceutical companies make the
>> overwhelming bulk of their profit in the USA, and make their
>> calculations on whether to develop medications or not accordingly.
>
> And US customers should continue under FDA prohibition of competition
> unvetted by the FDA to pay the world's drug development costs, once
> more, exactly why? Are our regulators so entirely competent, and
> Britian's Spain's, France's et alia so utterly guaranteed to sell
> their own nationals down the river of dangerous and useless drugs, in
> comparision? From where does this arrogance find its defense? Why
> does the same argument not apply, say, to US Federal meat inspectors
> and our frequent scandalous mass deaths from contaminated meat?
>
> xanthian, must I whisper "Thalidomide"?
>
>
Thalidomide? You mean the drug that the FDA did NOT approve for use in the
USA long ago, so that the this country did not suffer the same tragedy as
some others? You seem to have pick an example that supports your opposition
here.
Though the real reason the FDA hadn't OK'ed it probably had more to do with
foot dragging than skill.
|
| |
|
| |
 |
Dr Chaos

|
Posted: 2003-11-25 4:57:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
Kent Paul Dolan <email***@***.com> wrote:
> "Dr Chaos" <email***@***.com> wrote:
>
>> The NIH sponsors basic research and initial stages of drug
>> creation. but not the long term expensive trials and
>> manufacturing, i.e. development.
>
> My, my, did we just redefine our terms to try to win an
> argument without admitting an outright fable had been
> highlighted?
No, not intentionally. What was the original context,
I've forgotten.
Large scale phase III and most of phase II testing (except possibly
orphan diseases) is done by private industry who do it on the hopes of
making money. That's where the big expenses are.
The U.S. market is overwhelmingly more profitable than any other
country, and is frequently substantially more profitable than the rest
of the world combined.
>> All other nations of the world benefit from the drug
>> development paid for pretty much exclusively by the U.S.
>> consumer.
>
>> The other countries do NOT support large scale drug
>> development---in fact it is inhibited by pharmaceutical
>> price controls.
>
> My have you got _that_ shoe on the wrong foot: as the
> current imbroglio over Canadian-routed imports of the exact
> same drugs from the exact same manufacturers but sold there
> at half the US price because, not of price controls,
of course it's price controls.
The Canadian authorities set the price they will pay to the
pharma companies.
> but
> because no one is stupid enough to pay that much,
if that's the case, then why does the price need to be restricted by
regulation of the Canadian authorities?
Why don't they have a (more) free market like in the USA?
Obviously because it _will_ cost more.
> rather
> clearly demonstrates, the pretty much sole cause of the US
> drug price fiasco is a state sponsored monopoly enforced by
> the US Food and Drug Administration, which will not relax
> its death-grip on power long enough to admit that nationals
> nor governments anywhere else are capable of competently
> testing pharmaceutical efficacy and safety.
there are plenty of problems with the FDA, but of course the FDA does
not actually test the drugs in house. they review data submitted by
the sponsors (drug companies), and the drug companies often use trials
principally run by academic medical centers.
The reimportation gets the FDA upset, but not because there is
any scientific issue.
> That is the exact and only basis on which they claim the
> right to exclude Canadian import drugs provably by chain of
> custody, not drug testing, to be identical to the same drug
> sold in the US, an, I would hope, self-evident bogosity.
obviously the official Canadian drugs are just as good (if they
haven't been counterfeited). The Canadians and Europeans
are benefitting by the R&D done thanks to US profitability.
The Canadian import thing is an economic issue entirely, of course.
The Canadians and Europeans use their monosopy purchasing power.
(I didn't misspell it: a monopoly is a unitary supplier,
a monosopy a unitary buyer)
The point is that Canadian and European level of pharmaceutical
pricing, if also applied in the USA, would not support the R&D
investments of the drug companies by a longshot. The much higher
level of profits enjoyed in the USA justify the quantity and
quality of commercial development which exists presently.
The pharma companies don't want to upset the system too much because
they do make some money in Canada and Europe as long as selling is
above their *marginal* distribution and production costs. The
path of least resistance is to go along with Europe and Canada
and squeeze the bejeezus out of the USA.
If there is reimportation though that completely blows the economic
model. It's just like DVD region coding, but imagine, contrary to
movie economics, that almost all movie profit were made in the USA. Like
movies the marginal distribution and production cost is almost nil,
and the capital investment is large. Unlike movies, people die
without it, and other countries regulate downward the price heavily.
Can the USA convince Canada and Europe to jack up their pharmaceutcial
prices and induce more taxation of their citizens in order to benefit
the USA consumer, in order to maintain the same global level of R&D
with a fairer balance of costs? There's no way in hell.
There's a huge economic free rider problem.
Besides that there is the threat of compulsory licensing. Even if the
drug companies went on a boycott and refused to sell their drug at a
low price to socialized North Elbonia, the country will then force
licensing of the drug patent and the locality will have a generic
manufacturer make the drug anyway.
as you may have guessed I'm not defending this as some sort of
global optimum, but just the clusterfcuk that exists now.
The reality is that pharamaceutical fairness, e.g. "no drug region
codes" would inevitably result in far lower actual medical progress.
Already there are zillions of good biological and medical ideas which
don't get picked up and developed because they aren't economically
viable.
> xanthian.
what's the best alternative? I dunno, but how about this:
large scale socialized funding shared by USA, Europe and Japan of
actual full scale drug development followed by generic manufacturing
licensing of the public, no royalty patent, with human testing done at
much lower costs in third world countries. (By the way, Cuba
just made a new vaccine for the 3rd world)
from a purely utilitarian point of view it is optimal; rich countries
put in their knowledge and money, poor countries risk their ample
supplies of flesh, and the world benefits with new therapies for all.
politically, it is totally impossible, opposed by absolutely everybody
with any potent issue
1) pharmaceutical companies
2) taxpayers
3) people in poor countries who are sick of being taken advantage of
by the colonialists
|
| |
|
| |
 |
Dr Chaos

|
Posted: 2003-11-25 5:07:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
Kent Paul Dolan <email***@***.com> wrote:
> "Dr Chaos" <email***@***.com> wrote:
>
>> Well, there is some significant basic research in European countries
>> and Japan but even the big European pharmaceutical companies make the
>> overwhelming bulk of their profit in the USA, and make their
>> calculations on whether to develop medications or not accordingly.
>
> And US customers should continue under FDA prohibition of competition
> unvetted by the FDA to pay the world's drug development costs, once
> more, exactly why? Are our regulators so entirely competent, and
> Britian's Spain's, France's et alia so utterly guaranteed to sell
> their own nationals down the river of dangerous and useless drugs, in
> comparision? From where does this arrogance find its defense?
No, that has nothing to do with it. The EMEA and Canadian authorities
are these days as good scientifically; the FDA is somewhat more strict
on some kinds of regulation, it is empirically harder overall to get a
drug through the FDA than the EMEA.
Importation is 100% economic and bureaucratic turf protecting, not
safety or scientific.
> Why
> does the same argument not apply, say, to US Federal meat inspectors
> and our frequent scandalous mass deaths from contaminated meat?
>
> xanthian, must I whisper "Thalidomide"?
well, that's what the FDA says when they want to act self righteous.
(the FDA refused to allow thalidomide, though it was sold in Europe).
By the way, thalidomide is, today, a legally sold drug in the USA,
and not in Europe. (it soon will be)
Oddly enough it is sold in the USA 'officially' only for
leprosy complications which is obviously stupendously rare.
In reality is it used 'off-label' mostly for cancer, particularly
hematological malignancies.
They make 75 year old men in excruciating pain with bone cancer swear
that they will not get pregnant and will use two forms of birth
control.
Obviously there are now many medical studies showing positive
results with thalidomide in cancer but the FDA still rejected
what to clinicians was fairly convincing evidence.
The company is trying to make thalidomide obsolete by developing
non-mutagenic and more medically effective derivatives.
> Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
|
| |
|
| |
 |
Kent Paul Dolan

|
Posted: 2003-11-25 21:45:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
Exactly, so if you remove the FDA prohibition of import of identical
drugs at lower prices, suddenly the US consumer subsidy of drug
development for everyone stops working, the house of cards collapses,
and, if you want to keep drug development going at least, you force
those paying artificially low prices to pick up part of the tab.
Thus it is _exactly_ the FDA-enforced monopolistic US-sources-only
supply chain that keeps the US subsidizing everyone else; simply let
consumers do what consumers do, factor in risk of bogus drugs versus
risk of dying from paying US prices, and the system _must_ rationalize
itself.
That's why I cannot understand the US being the country trying to stop
this trade, if you think it through, it should be _Canada_!!!
xanthian, not seriously expecting rational behavior of governments in my
lifetime, the bribe money is too popular.
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
|
| |
|
| |
 |
William Brogden

|
Posted: 2003-11-26 0:04:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
"Kent Paul Dolan" <email***@***.com> wrote in message
news:email***@***.com...
> Exactly, so if you remove the FDA prohibition of import of identical
> drugs at lower prices, suddenly the US consumer subsidy of drug
> development for everyone stops working, the house of cards collapses,
> and, if you want to keep drug development going at least, you force
> those paying artificially low prices to pick up part of the tab.
Or - the drug companies could cut their ad budgets in half and use that
money instead.
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
|
| |
|
| |
 |
Dr Chaos

|
Posted: 2003-11-26 5:29:00 |
Top |
java-programmer >> [OT] gov't sponsored drug development
Kent Paul Dolan <email***@***.com> wrote:
> Exactly, so if you remove the FDA prohibition of import of identical
> drugs at lower prices, suddenly the US consumer subsidy of drug
> development for everyone stops working, the house of cards collapses,
> and, if you want to keep drug development going at least, you force
> those paying artificially low prices to pick up part of the tab.
Explain exactly how that "force" will work.
For example: Bush goes over to Europe and says, pay to send some your
own blasted troops to get blown up in Iraq, and by the way, double
your drug prices and raise taxes so I can get cheaper drugs for
my c-c-c-onstitu....contiusti....voters.
what comes next?
> Thus it is _exactly_ the FDA-enforced monopolistic US-sources-only
> supply chain that keeps the US subsidizing everyone else; simply let
> consumers do what consumers do, factor in risk of bogus drugs versus
> risk of dying from paying US prices, and the system _must_ rationalize
> itself.
for optimum human health? I doubt it.
> That's why I cannot understand the US being the country trying to stop
> this trade, if you think it through, it should be _Canada_!!!
Canada does try to stop it when supplies of drugs purchased for
their own citizens get re-sold to the USA.
> xanthian, not seriously expecting rational behavior of governments in my
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Sunspot: Java Virtual Machine Implementation Vulnerability``SUN Java Virtual Machine Implementation Vulnerability
We have found a security vulnerability in the SUN's implementation of
the Java Virtual Machine, which affects the following SDK and JRE
releases:
- SDK and JRE 1.4.1_03 and earlier
- SDK and JRE 1.3.1_08 and earlier
- SDK and JRE 1.2.2_015 and earlier.
SUN was informed about this issue on June the 2nd 2003 and has already
addressed it in their latest SDK/JRE versions. Please, see Sun Alert
Notification numbered 57221 for more information about the patched
SDK/JRE releases. [...]
The described vulnerability allows for the creation of a malicious
applet that could *completely* bypass applet sandbox restrictions. We
developed proof of convept code which successfully exploited this
vulnerability in Netscape 6 and 7 as well as Mozilla web browsers
environment using vulnerable versions of JRE Plugin. [...]''
- http://www.net-security.org/vuln.php?id=3018
Sun's page on the problem:
``A Vulnerability in JRE May Allow an Untrusted Applet to Escalate Privileges''
- http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsalert%2F57221&zone_32=category%3Asecurity
--
__________
|im |yler http://timtyler.org/ email***@***.com Remove lock to reply.
- 2
- Grab common name from https://[ip]Hello,
I checked around on here a bit, and was unable to find an answer to
this one by searching for the error message. I'm hoping someone here
can help me with this issue.
I am attempting to gather the common name from an SSL certificate for a
given IP address. Following is the code I am using thus far (two
classes being used):
IP_Justification.java:
import java.net.*; //for https connection
import java.io.*; //for input parsing
import javax.net.ssl.HttpsURLConnection;
public class IP_Justification
{
private String IP; //IP address to search
private String domain; //common name returned by viewing IP via
https://ip
//default constructor
public IP_Justification()
{
throw new IllegalArgumentException("Please provide IP and domain");
}
//create with IP provided
public IP_Justification(String ip)
{
IP = ip;
domain = "";
}
public void getDomain() throws IOException
{
String urlToCheck = "https://" + IP;
URL techURL = new URL(urlToCheck);
System.out.println("URL created: " + techURL);
HttpURLConnection techUrlConn =
(HttpURLConnection)techURL.openConnection();
System.out.println("HttpURLConnection created" + techUrlConn + "\n");
techUrlConn.connect();
}
}
IPJustMain.java
import java.io.*;
public class IPJustMain
{
public static void main(String[] args) throws IOException
{
IP_Justification testing;
testing = new IP_Justification("64.233.167.99");
testing.getDomain();
try
{
}
catch(Exception e)
{
System.out.println("Start of output - Exception block");
System.out.println(e.getMessage());
System.out.println("End of output - Exception block");
}
}
}
Following is the output received when running IPJustMain:
URL created: https://64.233.167.99
HttpURLConnection
createdsun.net.www.protocol.https.DelegateHttpsURLConnection:h
ttps://64.233.167.99
Exception in thread "main" java.io.IOException: HTTPS hostname wrong:
should be
<64.233.167.99>
at
sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.j
ava:490)
at
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:
415)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(AbstractDelegateHttpsURLConnection.java:170)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLCon
nectionImpl.java:133)
at IP_Justification.getDomain(IP_Justification.java:54)
at IPJustMain.main(IPJustMain.java:15)
Press any key to continue . . .
I fully expect to have an exception thrown, and am hoping to be able to
parse that for the information I require. The problem I am running
into is the exception itself:
Exception in thread "main" java.io.IOException: HTTPS hostname wrong:
should be
<64.233.167.99>
It seems to be responding with the URL I pass to it, and not the common
name for the SSL at the specified IP address.
Anyone happen to know if there is a way around this or if my code is
flawed in someway?
Thanks for any help that can be provided!
- 3
- Applet file readinghello every one;
i m making an applicaion by using java Applet, on which i wish to open
a file from users system, but i dont know how to do this;
is any one have any idea about reading files on users system by using
Applet.
- 4
- JSP questionshave some questions about JavaServer Pages to ask
1. I made several input fields for user to input the height, width and
other stuff to create a table. how can I make the font in color red in
first row and first column automaticly and font in other rows and
columns remain the same color?
2. I want to add a title inside the table that need to colspan the
rest of the table. Becasue I don't know what # the user will input for
columns, so I can't set it before user input. so plz help me on this.
3. Randomly place an input field in one of the cells ?a different
cell on each refresh. If the user enters the correct product there and
changes the focus (by clicking outside the field), a Javascript
provided by the jsp page checks the answer and makes appropriate alert
My jsp file looks like this:
<HTML>
<head></head>
<BODY>
<%
String s2 = request.getParameter("Bsize") ;
s2 = s2.trim();
out.print("<table bgcolor=silver border= ");
out.print(s2);
out.print(" ");
String s3 = request.getParameter("Bcolor") ;
s3 = s3.trim();
out.print("bordercolor= ");
out.print(s3);
out.print(">");
String m1 = request.getParameter("mName") ;
m1 = m1.trim();
int M = Integer.parseInt(m1);
String n1 = request.getParameter("nName") ;
n1 = n1.trim();
int N = Integer.parseInt(n1);
String s = request.getParameter("FullName") ;
s = s.trim();
out.println("<font color=red size=6>");
out.println(s);
out.println("'s table is: </font>");
out.println("<tr colspan= ");
out.print(m1);
out.println(">");
out.print("<th> Numbers </th> </tr>");
for (int i =1; i<= M; i++ )
{
out.println("<tr width= 10 >");
for (int j =1; j<= N; j++ )
{
out.println("<th >");
out.println(j * i);
out.println("</th>");
}
out.println("</tr>");
}
%>
</table>
- 5
- Learning Apache Ant, problems with Swing(?)I'm attempting to learn Apache Ant (apache-ant-1.6.1); OS Linux Fedora
Core 2; j2sdk1.4.2_04. I appear to have problems with Ant + Swing, but
each work separately.
The following is my first build file (copied from the web).
<?xml version="1.0"?>
<!-- build file for lesson 1 -->
<project name="tutorial" default="build" basedir=".">
<target name="build">
<javac srcdir="." />
</target>
</project>
Works fine on a simple Java program, e.g.
import java.io.*;
public class Hello {
public static void main(String args[]) {
System.out.println("Hello");
}
}
However, when I progress to anything involving Java Swing, I get
compilation errors like:
[javac] /home/jc/java/classes/anttest/GuiScreens.java: In method
`GuiScreens.main(java.lang.String[])':
[javac] /home/jc/java/classes/anttest/GuiScreens.java:24: error:
Can't find constructor
`javax.swing.JFrame(Ljava/lang/String;Ljava/awt/GraphicsConfiguration;)'
in type `javax.swing.JFrame'.
[javac] frame[j][i] = new JFrame("Config: " + i,
gc[i]);
/This program compiles okay using javac./
(BTW jc@localhost~/java/classes/anttest>$ echo $ANT_HOME
/usr/apache-ant-1.6.1
jc@localhost~/java/classes/anttest>$ echo $JAVA_HOME
/usr/java/j2sdk1.4.2_04)
Any ideas?
TIA,
Jon C.
- 6
- free E-book linksdear friends,
this link will help full see more number of E-books use this
http://www.apsira.com/etc/usefulllinks.php?keyid=5.1
- 7
- Whatever happened to PvdL?My curiosity about Hotjava now sated, what of Peter van der Liden? I recall
that he used to be pretty active on Usenet and quite a prolific author and
Java advocate.
As I recall he used to author the Java FAQ (which now 404's). I liked his
writing style (dating to the ugly fish book) and the Just Java series. The
6th edition came out in 2004 and no errata has published since January
2005.
Is Mr. van der Liden still active in the Java community? I realize he's no
longer with Sun and without treading into personal matters, did he have a
falling out with the people there? In spite of being published by Sun, his
Java books did contain quite a few barbs about misfeatures in the language.
- 8
- AccessControlException
The following is a snippet from a method in an applet RSSTree:
private Document getOPMLFile(String OPMLFileName) {
Document OPMLFile = null;
try {
URL u = new URL(getCodeBase(), OPMLFileName);
try {
BufferedReader br = new BufferedReader(new
InputStreamReader(u.openStream()));
if (br != null) {
try {
Builder parser = new Builder();
OPMLFile = parser.build(br);
}
.
.
.
This method is called out of RSSTree.start(). Document & Builder are
classes in the open source XML processor com.nu.xom. I get the following
error when parser.build(br) is executed:
java.lang.ExceptionInInitializerError
at RSSTree.getOPMLFile(RSSTree.java:63)
at RSSTree.start(RSSTree.java:31)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission
org.apache.xerces.xni.parser.XMLParserConfiguration write)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.System.setProperty(Unknown Source)
at nu.xom.Builder.<clinit>(Unknown Source)
If I replace the bad line with a loop to read the the stream myself and
write out the lines, I get the XML I expect.
Without seeing the source for XOM can someone give me an idea as to why I
have an access problem when going through XOM but don't when the applet
reads directly?
Thanks.
Ken
- 9
- Midlet TextBox-------------------
TextBox tb = new TextBox("title", null, 5, TextField.DECIMAL);
tb.addCommand(new Command("Ok", Command.BACK, 0));
tb.setCommandListener(this);
Display dis = Display.getDisplay(this);
dis.setCurrent(tb);
-------------------
The code above shows (in my mobile Sony Ericsson K300i) a TextBox with 2
Commands "Ok" and "Ok".
If TextBox is empty of chars, first "Ok" is grayed but second not.
I suspect that the first Command "Ok" is part of TextBox (Screen) and
when I press it, it does nothing and commandAction method does not run.
Only when I press the second Command "Ok" commandAction method runs.
So, first "Ok" is "feature" of my mobile or it is in MIDP Specification?
If the second, how can I get access to this Command?
- 10
- Why does this query take forever?For some reason, I have a rather large (to me) query, with numerous inner
joins, accessing a remote server, and it is taking about twenty times longer
than most queries to the same database.
The query itself is built programmatically within my application, and
example of which is below. I am hoping someone in the group may have some
insight into why this query is so slow, suggesting perhaps a better
structure for it, such that I can go back in and rewrite my code that
creates such queries.
Thanks in advance, Ike
"SELECT DISTINCT
chronology.id,status_id.status,chronology.completed,chronology.completeddate
,chronology.completedtime,activities_id.activity,chronology.activities_activ
ity,chronology.activities_attachment,chronology.activities_available_to_all,
chronology.upcards_firstnamelastname,upcard_id.id,chronology.feedbackrequire
d,chronology.landondate,chronology.hasspecifictime,chronology.datetoperform,
chronology.timetoperform,chronology.duration,chronology.weekends,chronology.
prefix,statusactivitieisid.id,associateresponsible.username,activities_usern
ameid.username,chronology.editFlag FROM
chronology,status,activities,upcards,statusactivities,associates
INNER JOIN status status_id on chronology.status_id=status_id.id
INNER JOIN activities activities_id on
chronology.activities_id=activities_id.id
INNER JOIN upcards upcard_id on chronology.upcard_id=upcard_id.id
INNER JOIN statusactivities statusactivitieisid on
chronology.statusactivitieisid=statusactivitieisid.id
INNER JOIN associates associateresponsible on
chronology.associateresponsible=associateresponsible.id
INNER JOIN associates activities_usernameid on
chronology.activities_usernameid=activities_usernameid.id
WHERE chronology.upcard_id = 18"
- 11
- imageicon problemHello,
I have problem with loading an image from a directory.
I got a folder called images wich is located in my project directory :
c:\MijnJava\Swing_01.
But when i start this application i get a window with a title and in this
window a square that indicates that the picture is not found. Earlier i set
my classpath : set classpath= .;c:\MijnJava; this is in windows xp.
I am using Jcreator. The code works fine on my computer in school but not at
home.
I tryed moving the folder images to other directorys but with no luck.
What is the problem with this?
Can anyone help?
thanks
Tom
import javax.swing.*;
import java.awt.*;
import javax.swing.border.*;
import tomwouters.myswingutils.*; This is a folder where my packages
are.
public class Afbeelding_01 extends ExitableJFrame{
public Afbeelding_01(String titel){
super(titel);
TitledBorder paneelBorder =
BorderFactory.createTitledBorder("JPanel");
Container container = getContentPane();
JPanel paneel = new JPanel();
paneel.setBorder(paneelBorder);
JLabel label = new JLabel();
JLabel label2 = new JLabel();
ImageIcon afbeelding = new ImageIcon("images/jugg23.gif");
label.setIcon(afbeelding);
TitledBorder labelBorder =
BorderFactory.createTitledBorder("JLabel met jugg23.gif");
label.setBorder(labelBorder);
paneel.add(label);
container.add(paneel);
pack();
}
public static void main(String[] args) {
Afbeelding_01 frameMetAfbeelding = new Afbeelding_01("Afbeelding_01");
frameMetAfbeelding.setVisible(true);
}
}
- 12
- How to speed up the Portal development in eclipseHi all,
I am new in portal development. I am used to Eclipse to write Java
standalone application, but no server contained application such as
servlet.
Is there any way to setup a integrated development environment with
JetSpeed in Eclipse to do portal environment?
Please enlighten me.
Thanks in advance for your inputs and ideas.
Eclifeww
- 13
- <defunct> processesI've got a problem with <defunct> (zombie) processes on Linux...
I'm running child processes using Runtime.exec() and it usually goes well.
But just sometimes (undefined sometimes), process finishes as defunct. Is
there anything I can do about it? I suck out both inputStream and
errorStream, check Process.exitValue(), but it stucks on Process.waitFor().
I even try to suck these streams in separate threads, but it doesn't help.
I had the idea to detect if the process has stucked, and then try from
another thread to Process.destroy(), but it didn't help! Destroy does
nothing, process is still defunct, and waitFor() blocks it again... There
are no more methods in class Process to try, and I've already tried all the
combinations of existing ones...
Newsgroups and web are full of similar questions, but no answer. They all
say that a process is zombie if it is finished, but parent process hasn't
yet read the exit code. But I do read exitValue, and I also do
Process.waitFor(). Can I consider this a bug in Java VM?
Where could find the solution? Which direction should I go? I've been trying
for months, but no results...
Now, this is the latest version of code, as seen on java.sun.com...
{
...
Process process = Runtime.getRuntime().exec(commandLine);
inputVacuum = new TextVacuum(process.getInputStream());
errorVacuum = new TextVacuum(process.getErrorStream());
process.waitFor();
int exitValue = process.exitValue();
...
}
public class TextVacuum extends Thread {
private BufferedReader reader;
private StringBuffer buffer = new StringBuffer();
...
public TextVacuum(InputStream inStream) {
reader = new BufferedReader(new InputStreamReader(inStream));
start();
}
public void run() {
try {
char[] cbuf = new char[4096];
int numRead = reader.read(cbuf);
while (numRead != -1) {
buffer.append(new String(cbuf, 0, numRead));
numRead = reader.read(cbuf);
}
}
catch (IOException e) { }
finally {
try { reader.close(); }
catch (IOException e) { }
reader = null;
}
}
...
}
Thanks!
- 14
- Can we change enctype dynamically??Hello all,
Can we change enctype in the form tag using javascript
document.formname.enctype = 'variable' variable being
multipart/form-data or application/x-www-form-urlencoded. I can do
this in Netscape7 not in IE6 ??
My problem is when I am in the rendered page of type
mulipart/form-data, I have to call another servlet (which process
regular form fields only). When I do that it breaks.
If I use all my servlets to process enctype=mulipart/form-data jsp's
is there any performance or any kind of issues???
Any help will be appreciated.
Thanks - gsr
- 15
- Baffling class not found problemHello, I'm using Java 1.3 with WebLogic 5.1 on Solaris. I have these
files:
cms/system/CMSException.class
cms/system/Constants.class
cms/system/InitServlet.class
cms/system/Log.class
When I include this line on my JSP page
<%@ page import="cms.system.*" %>
everything compiles fine. As does this line
<%@ page import="cms.*" %>
but when I try
<%@ page import="cms.system.Constants" %>
(r using any of the 4 class names above) I get the error:
Compilation of '/tmp/support/jsp_servlet/_www/__temp.java' failed:
/tmp/support/jsp_servlet/_www/__temp.java:16: Class
cms.system.Constants not found in import.
probably occurred due to an error in /www/temp.jsp line 1:
<%@ page import="cms.system.Constants" %>
How can this be? The perms on the files above are all 775. Can anyone
think of an explanation for why these files can't be found?
Thanks, - Dave
|
|
|