🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #182

Re: Formatting output problem

#182
From: isis
Date: Fri, 07 Apr 2006 16:20
56 lines
2818 bytes
OK - thanks it WORKS :o))))

But it is pitty, that it must be set explicitly - I would expect when I want 
a project written in JDK  5 -and JDK5 is not back compatible -it is supposed 
for the VM JDK 5.


"Lori M Olson [TeamB]" <javadragon@techie.com> p�se v diskusn�m pr�spevku 
news:44367bfa$1@newsgroups.borland.com...
> isis wrote:
>> having problem with Jbuilder Foundation 2005, servisepack 01, java jdk 
>> 5.0_06 installed.
>> new java supports formating output (so I created project with java jdk 
>> 5)>
>>
>> String.format(String str, Object args)
>>
>> But when I type (example from ):
>>          i = 2;
>>         r = Math.sqrt(i);
>>
>>         System.out.format("The square root of %d is %f.%n", i, r);
>>
>> I cannot built the file / error ocurres>
>>   a.. "Root.java": cannot find symbol; symbol : method 
>> format(java.lang.String,int,double), location: class java.io.PrintStream 
>> at line 33, column 20
>> I really need formated output and this does not wotk. Is it necessary to 
>> set something to made it work? or write it in other way?
>> Any suggestions?
>>
>> Thanks for any help
>
> Ok, if you say you chose JDK 5, I'll believe you.  But you also need to 
> set your "target" JDK/JRE to JDK 5.  Because this code won't run on 
> previous versions of the JDK.  Go back to your project properties and make 
> sure you have also set your target JDK.
>
> -- 
>
> Regards,
>
> Lori Olson [TeamB]
>
> ------------
>
> Save yourself, and everyone else, some time and search the
> newsgroups and the FAQ-O-Matic before posting your next
> question.
>
> Google Advanced Newsgroup Search
>     http://www.google.ca/advanced_group_search
> Other Newsgroup Searches:
>     http://www.borland.com/newsgroups/ngsearch.html
> Joi Ellis's FAQ-O-Matic:
>     http://www.visi.com/~gyles19/fom-serve/cache/1.html 
Technical Details
Message-ID: <44369167$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44366119@newsgroups.borland.com> <44367bfa$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,118f720d27eb6edb
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII
From: "isis" <l.hapalova@sh.cvut.cz>
Newsgroups: borland.public.jbuilder.java.language
References: <44366119@newsgroups.borland.com> <44367bfa$1@newsgroups.borland.com>
Subject: Re: Formatting output problem
Date: Fri, 7 Apr 2006 18:20:49 +0200
Lines: 58
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 147.32.117.91
Message-ID: <44369167$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1144426855 147.32.117.91 (7 Apr 2006 09:20:55 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail