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

Today's topics:

* set classpath for jar file - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/49416430ef8125f3
* RMI problems - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1c84cd8055b3a71a
* Error while getting Result Set Data from SQL 2000 - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5796c291f001ce28
* Synchronized block is accessed by other jsps - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e19df43edcc6f04f
* Please help me detect proxy servers - 4 messages, 3 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/760948e984efd844
* opinion on coding standard - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1f96751a1d317c1a
* webapplication does not display tiff images - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ac1ffc6aa73a2d74
* echo %CLASSPATH% at dos console - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7afb7bb3c885227c
* Nio performance bottleneck - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/49cecf04009b5d30
* Servlet OutOfMemory on images. Please help me! - 6 messages, 3 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2b54ac9443545bf3
* executable JARs, Solaris execev() and java version - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5e6c18c60d4376fe
* how to response to user's mouse click on JTabbedPane's tabTitle? - 1 
messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c7846fed0be53d2a
* comp.lang.java.{help,programmer} - what they're for (mini-FAQ 2004-10-08) - 1 
messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/eb59b6c6bdd3895b
* Java and image resize - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4eaffabaf616cdb7

==============================================================================
TOPIC: set classpath for jar file
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/49416430ef8125f3
==============================================================================

== 1 of 2 ==
Date: Thurs, Nov 25 2004 9:11 pm
From: "HS1"  

Hello

I have an application that uses some jar files in different folders. For
example, it needs

c:\folder1\file1.jar
c:\folder1\file2.jar
c:\folder2\file1.jar

I want to create classpath for those files. Do I have point out the exact
jar files as above in classpath or I can create by doing something like:

c:\folder1
c:\folder2

Thank you
SH1





== 2 of 2 ==
Date: Thurs, Nov 25 2004 3:47 am
From: "hilz"  


"HS1" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello
>
> I have an application that uses some jar files in different folders. For
> example, it needs
>
> c:\folder1\file1.jar
> c:\folder1\file2.jar
> c:\folder2\file1.jar
>
> I want to create classpath for those files. Do I have point out the exact
> jar files as above in classpath or I can create by doing something like:
>
> c:\folder1
> c:\folder2
>
> Thank you
> SH1
>
>

You have to explicitly add every jar file to the class path. if you add the
directory to the classpath, it will add any classes inside it but not jar
files.
HTH
hilz






==============================================================================
TOPIC: RMI problems
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1c84cd8055b3a71a
==============================================================================

== 1 of 1 ==
Date: Thurs, Nov 25 2004 8:21 am
From: Andrew Thompson  

On 25 Nov 2004 00:01:25 -0800, Max Mustermann wrote:

> Ok... dumb question... 

Don't forget that *you* said that..    ;-)

>..What is a Map 

<http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html>

>..and how do I create one??

By refering to the API docs., which is something you will need
to do quite opten when programming.  For the 'light' entry point
to the JavaDocs, check here 
<http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html>
Follow the 'frames' link if you have broadband and a stable UA.

BTW - please refrain from top-posting..
<http://www.physci.org/codes/javafaq.jsp#netiquette>

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane




==============================================================================
TOPIC: Error while getting Result Set Data from SQL 2000
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5796c291f001ce28
==============================================================================

== 1 of 1 ==
Date: Thurs, Nov 25 2004 12:53 am
From: [EMAIL PROTECTED] (biswa) 

I am now switching to jTDS. I am using jtds for SQL 7.0 it never gives
me problem and at the client site(SQL 2000), I am using microsoft's
JDBC and I get all these strange errors in the error log :O at the
client site.
 I will post follow up if changing the jdbc solves my errors. 

Thanks a lot. 
biswa.
> No problem with Oracle or DB2. I've never encountered the problem, even with 
> SQL 2000? Although we were using the jTDS driver I think, not Microsoft's




==============================================================================
TOPIC: Synchronized block is accessed by other jsps
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e19df43edcc6f04f
==============================================================================

== 1 of 2 ==
Date: Thurs, Nov 25 2004 1:04 am
From: [EMAIL PROTECTED] (biswa) 

HI. 
I have a synchronized block where i am creating a temp table and
deleting it in the same method after processing. I ve to make it a
synchronized to avoid other requests from accessing the temp table
while the other request is processing.

But strangely, i can see more than one requests entering to the method
at the same time. If there are two requests at the same time, one
tries to delete the temp table while other is accessing.
 
How is it possible although the method is synchronized it is accessed
by more than one request at the same time. I am calling the mothod in
JSP file. Am i missing something?

Any help would be great. 

Thanks.



== 2 of 2 ==
Date: Thurs, Nov 25 2004 10:37 am
From: Michael Borgwardt 
 

biswa wrote:
> I have a synchronized block where i am creating a temp table and
> deleting it in the same method after processing. I ve to make it a
> synchronized to avoid other requests from accessing the temp table
> while the other request is processing.
> 
> But strangely, i can see more than one requests entering to the method
> at the same time. If there are two requests at the same time, one
> tries to delete the temp table while other is accessing.
>  
> How is it possible although the method is synchronized it is accessed
> by more than one request at the same time. I am calling the mothod in
> JSP file. Am i missing something?

On what are you synchronizing? synchronized instance methods synchronize
on the instance, and a container might well have a separate instance
of the servlet for each request.




==============================================================================
TOPIC: Please help me detect proxy servers
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/760948e984efd844
==============================================================================

== 1 of 4 ==
Date: Thurs, Nov 25 2004 10:08 am
From: "Floortje"  

Hi, I have got a huge problem. I maintain a forum om my website
www.cavalierpage.com on the dog breed cavalier king charles spaniel. For the
past few weeks someone has been terrorizing my page from anonimous proxy's.
Maybe needless to say that there are thousends of them so I can hardly block
them all.

I read somewhere that java can detect the proxy settings of a user and
preferably the real ip (and then send them to my server or add them as a
hidden variable etc). I know next to nothing about java. Are there any good
tutorials for a noob that will explain to me how I can achieve this ?
Offcourse I googled but that didn;t give me the info I needed. Most of it
was too comple or had nothing to do with the web afaik. Or are there better
solutions. I tried accessing the Server vaiables and the server enviroment
but that is useless.

Floortje





== 2 of 4 ==
Date: Thurs, Nov 25 2004 9:25 am
From: Andrew Thompson  

On Thu, 25 Nov 2004 10:08:35 +0100, Floortje wrote:
...
> I read somewhere that java can detect the proxy settings of a user and
> preferably the real ip (and then send them to my server or add them as a
> hidden variable etc).

Anything that Java can detect on the clientside (and I doubt
it could do what you want, certainly not without a signed 
applet, or a Java application) can be overcome by a bit of 
hacking.  Java is not a solution to this problem.

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane



== 3 of 4 ==
Date: Thurs, Nov 25 2004 10:33 am
From: "Floortje"  


"Andrew Thompson" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> On Thu, 25 Nov 2004 10:08:35 +0100, Floortje wrote:
> ...
> > I read somewhere that java can detect the proxy settings of a user and
> > preferably the real ip (and then send them to my server or add them as a
> > hidden variable etc).
>
> Anything that Java can detect on the clientside (and I doubt
> it could do what you want, certainly not without a signed
> applet, or a Java application) can be overcome by a bit of
> hacking.  Java is not a solution to this problem.

Ok, thx. But int his case anything is better then nothing. Any suggestions ?

Floortje





== 4 of 4 ==
Date: Thurs, Nov 25 2004 11:53 am
From: Thomas Weidenfeller  

Floortje wrote:
> Hi, I have got a huge problem. I maintain a forum om my website
> www.cavalierpage.com on the dog breed cavalier king charles spaniel. For the
> past few weeks someone has been terrorizing my page from anonimous proxy's.
> Maybe needless to say that there are thousends of them so I can hardly block
> them all.

You didn't give the type of thread (and it is anyhow not on-topic in 
this group), so just a general hint: There are block lists out there 
which might work for you.

> 
> I read somewhere that java can detect the proxy settings of a user and
> preferably the real ip (and then send them to my server or add them as a
> hidden variable etc).

No, the term "proxy" is used for a lot of different things in networking 
and computer technology. Java can't help you here at all.

So, since this is not Java related, you might ask in a computer-security 
related group. Or hire a security consultant, talk to your ISP, etc.

If you talk to these people, make sure you provide some more information 
than just what you gave us (e.g. type of attack).

/Thomas


-- 
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq




==============================================================================
TOPIC: opinion on coding standard
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1f96751a1d317c1a
==============================================================================

== 1 of 1 ==
Date: Thurs, Nov 25 2004 10:24 am
From: Michael Borgwardt 
 

sks wrote:
> You shouldn't mix tabs and spaces. I mean who uses spaces to indent their
> blocks? Ridiculous. Do you actually sit there typing t r y { (newline)
> (space) (space) (space) (space) (space) (space)

People tend to use spaces when changing existing code later on and single
lines need to have their indentation adjusted, and of course there are the
editors that automatically convert tab presses to spaces.




==============================================================================
TOPIC: webapplication does not display tiff images
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ac1ffc6aa73a2d74
==============================================================================

== 1 of 1 ==
Date: Thurs, Nov 25 2004 1:25 am
From: [EMAIL PROTECTED] (bauer) 

Hi,
I found the solution here: 

http://issues.apache.org/bugzilla/show_bug.cgi?id=24970

So I changed my code to display tiff's to 

response.reset();
response.setHeader("Content-Disposition", "inline" ) ;
response.setContentType(contentType);      

Now everything is working.

Bye, Stephan.




==============================================================================
TOPIC: echo %CLASSPATH% at dos console
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7afb7bb3c885227c
==============================================================================

== 1 of 1 ==
Date: Thurs, Nov 25 2004 10:30 am
From: Michael Borgwardt 
 

hilz wrote:

>>I am expecting it returns the path.
>>
> 
> 
> then you should do this:
> echo %path%
> 
> which gives you the system path.
> 
> the classpath environmental variable is not defined (as mentioned in the
> earlier post). you have to define it before running your javac or java
> commands

No, you don't, and you shouldn't.




==============================================================================
TOPIC: Nio performance bottleneck
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/49cecf04009b5d30
==============================================================================

== 1 of 1 ==
Date: Thurs, Nov 25 2004 9:38 am
From: Yu SONG  

JLM wrote:
> Hello !
> 
> In order to be sure that nio package was more performant than regular 
> streams, i have tested it with this little piece of code :
> 
...

>     for (int i = 0; i < 1000; ++i) {
>         loBuffer.put("ceci est un test\r\n");
>         loBuffer.flip();
>         encoder.encode(loBuffer, loWriteBuffer, false);
>         loWriteBuffer.flip();
>         loChannel.write(loWriteBuffer);
>         loBuffer.clear();
>         loWriteBuffer.clear();
>     }
>     loChannel.close();
> }
...
> 
> I was surprised to see that, on my computer, the regular stream based part 
> was running about 4 times quicker than the nio based part !!
> Here is my question : is my code correctlty optimized ? Anybody already 
> noticed this performance bottleneck ? Is my test the cause of this problem ?
> 


You don't need to encode and flip (twice) each time.

For most of my applications, I usually use a big enough buffer to 
process all the data first, and then write this buffer to the file once 
or twice.


-- 
Song

/* E-mail.c */
#define User            "Yu.Song"
#define At              '@'
#define Warwick         "warwick.ac.uk"
int main() {
printf("Yu Song's E-mail: %s%c%s", User, At, Warwick);
return 0;}

Further Info. :   http://www.dcs.warwick.ac.uk/~esubbn/
_______________________________________________________





==============================================================================
TOPIC: Servlet OutOfMemory on images. Please help me!
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2b54ac9443545bf3
==============================================================================

== 1 of 6 ==
Date: Thurs, Nov 25 2004 9:39 am
From: Animanera  

Michael Borgwardt wrote:

> No, it's not. You only posted some methods, not the entire class
> definition. There is, for example a (presumably instance) variable
> "tracker" that looks like a top contender for hanging on to image
> references. Especially since you throw away Exceptions in your
> waitForImage() method and possibly don't remove images from the
> tracker in that case.

Oh yes, excuse me, I didn't post the entire class since it is a toolkit
  with various functions.

However, reset all what I say: I'm starting from basics. Why this code 
prints "Size is -1 -1"?!?

try {
        File f = new File("c:\\temp\\file.jpg");
        System.out.println(f.exists()); //Prints true!
        MediaTracker t = new MediaTracker(new Frame());
        Image im = Toolkit.getDefaultToolkit().getImage (f.getPath());

        t.addImage(im, 0);
        t.waitForID(0);
        System.out.println("Size is" + im.getWidth(null) + " " + 
im.getHeight(null));

} catch (Exception exc) {
        exc.printStackTrace();
}

Thanks, bye, Animanera. :)



== 2 of 6 ==
Date: Thurs, Nov 25 2004 10:04 am
From: Animanera  

Animanera wrote:
> However, reset all what I say: I'm starting from basics. Why this code 
> prints "Size is -1 -1"?!?

OOooops! Just seen that the image file used for test was 
corrupted....sorry :(

Continuing to try to resolve the 1st problem...

Thanks, Bye, Animanera.



== 3 of 6 ==
Date: Thurs, Nov 25 2004 11:08 am
From: Michael Borgwardt 
 

Animanera wrote:
> Continuing to try to resolve the 1st problem...

As I wrote: get a profiler. It might a bit difficult to set up, but
once it works you'll see immediately what's using up your memory
and where it's referenced. From there, it's usually pretty easy to
find out why those references are kept.



== 4 of 6 ==
Date: Thurs, Nov 25 2004 10:13 am
From: Andrew Thompson  

On Thu, 25 Nov 2004 09:39:30 GMT, Animanera wrote:

> Michael Borgwardt wrote:
> 
>> No, it's not. You only posted some methods, not the entire class
>> definition. There is, for example a (presumably instance) variable
>> "tracker" that looks like a top contender for hanging on to image
>> references. Especially since you throw away Exceptions in your
>> waitForImage() method and possibly don't remove images from the
>> tracker in that case.
> 
> Oh yes, excuse me, I didn't post the entire class since it is a toolkit
>   with various functions.

Your current code supports *exactly* what Michael was saying. [1]
But the code has a wider problem. [2]

> However, reset all what I say: I'm starting from basics. 

Even though you've changed the code, both of these are
problems with the current code.

> try {
>       File f = new File("c:\\temp\\file.jpg");
>       System.out.println(f.exists()); //Prints true!
>       MediaTracker t = new MediaTracker(new Frame());
>       Image im = Toolkit.getDefaultToolkit().getImage (f.getPath());

[2] Your images are cached.
<http://groups.google.com/[EMAIL PROTECTED]>

>       t.addImage(im, 0);
>       t.waitForID(0);
>       System.out.println("Size is" + im.getWidth(null) + " " + 
> im.getHeight(null));
> 
> } catch (Exception exc) {
>       exc.printStackTrace();

[1] You should free the image from the tracker in the catch.

> }

HTH

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane



== 5 of 6 ==
Date: Thurs, Nov 25 2004 10:27 am
From: Animanera  

Michael Borgwardt wrote:

> Animanera wrote:
> 
>> Continuing to try to resolve the 1st problem...
> 
> 
> As I wrote: get a profiler. It might a bit difficult to set up, but
> once it works you'll see immediately what's using up your memory
> and where it's referenced. From there, it's usually pretty easy to
> find out why those references are kept.

Just tried JProbe (freeware edition): It's true, the memory usage 
increases as I upload images. As I seen, if I call the Garbage 
collection immediatley after the upload (via my code or via Jprobe), or 
after 1-2 seconds the memory doesn't go down. But if I call it after 
5-10 seconds, the memory goes down. How I can interpret this fact?

I'm not a great knower of GC, but why this doesn't work:

<code>
resizeImage(filename, ..., ...);
System.gc();
</code>

However this version of Jprobe (as I see) doesn't give me the 
possibility to view the memory amount used from each Object, but only 
the total amount.

Can you suggest me a more detailed (but simple to install) heap profiler?

Many thanks, bye, Animanera. :)



== 6 of 6 ==
Date: Thurs, Nov 25 2004 10:43 am
From: Animanera  

Andrew Thompson wrote:

> Your current code supports *exactly* what Michael was saying. [1]
 > [1] You should free the image from the tracker in the catch.

Oh yes, I'll do it. But I've to specify that there wasn't exceptions in 
my tests.

> But the code has a wider problem. [2]
> [2] Your images are cached.

Why you say that image caching (in my case) is a problem?

Thanks, Bye, Animanera :)




==============================================================================
TOPIC: executable JARs, Solaris execev() and java version
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5e6c18c60d4376fe
==============================================================================

== 1 of 1 ==
Date: Thurs, Nov 25 2004 10:15 am
From: James Lee  

On Wed, 24 Nov 2004 15:59:39 +0000, Markus Gyger wrote:

> Maybe a JAR could even include some options for how to start the
> interpreter. Currently, a JAR file's first entry has a zero-length
> 0xcafe subfield added (in Java this is added using something like
> ZipEntry.setExtra(new byte[] { -2, -54, 0, 0 })), which could carry
> additional content that could be passed to the interpreter (like initial
> memory size) or be used to select a certain JVM version...

I like the idea of additional args in the JAR but the META-INF/MANIFEST.MF
can be used, like "Main-Class" is specified, or even just an additional
file in the JAR.

My original question was how Solaris selected a JVM but of course I would
like to be sure this worked in a wider OS context.  Java is supposed to be
platform independent but its invocation isn't.  Improved executable JARs
could do it.




==============================================================================
TOPIC: how to response to user's mouse click on JTabbedPane's tabTitle?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c7846fed0be53d2a
==============================================================================

== 1 of 1 ==
Date: Thurs, Nov 25 2004 11:21 am
From: Kleopatra  



James wrote:
> 
> example like when there are 10 tabs inside the JTabbedPane, when user click
> on tab 1, I want it to display the particular tab's title into JTextField.

is that _really_ your requirement? What should happen if the tab is
selected by a keystroke? My guess is that you want the ui to be behave
similarly, independent of the type of low-level event (at least I hope
you want that :-)

> I try add mouse listener into JTabbedPane but no response when user click on
> that tab. (nothing display in JTextfield).
> The JTextField only display out the title when user click on other place of
> tab except tab title.
> 

that should (and usually does) work. 

allow me two comments on your code:

a) the "type" prefixes (forgot - how are they called, it's been too long
ago <g>) are unusual in java.
b) import the classes you need instead using the full class name

Jeanette


PS: a better group to ask ui related questions is comp.lang.java.gui -
because it's focused on alas... gui issues.

PPS: you want to use a ChangeListener to get notified about selection
changes.




==============================================================================
TOPIC: comp.lang.java.{help,programmer} - what they're for (mini-FAQ 2004-10-08)
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/eb59b6c6bdd3895b
==============================================================================

== 1 of 1 ==
Date: Thurs, Nov 25 2004 10:25 am
From: [EMAIL PROTECTED] (David Alex Lamb) 

Last-Modified: Fri Oct  8 11:38:42 2004 by David Alex Lamb
Archive-name: computer-lang/java/help/minifaq
Posting-Frequency: every 4 days

Before posting read Jon Skeet's "How to get answers on the comp.lang.java.*
newsgroups" at http://www.pobox.com/~skeet/java/newsgroups.html

Java FAQs and advice:
- Java FAQ (Andrew Thompson)  http://www.physci.org/codes/javafaq.jsp
  including his list of other FAQs http://www.physci.org/codes/javafaq.jsp#faq
- Java/Javascript/Powerbuilder HOWTO (Real Gagnon)
  http://www.rgagnon.com/howto.html
- Java Glossary (Roedy Green)  http://www.mindprod.com/jgloss.html
- jGuru jFAQs (John Zukowski)    http://www.jguru.com/jguru/faq/
- Focus on Java (John Zukowski)   http://java.about.com/
- Java Q&A (David Reilly)  http://www.davidreilly.com/jcb/faq/
- Java GUI FAQ (Thomas Weidenfeller) http://www.physci.org/guifaq.jsp

comp.lang.java.help     Set-up problems, catch-all first aid.
    According to its charter, this unmoderated group is for immediate help
    on any Java problem, especially when the source of the difficulty is
    hard to pin down in terms of topics treated on other groups.
        This is the appropriate group for end-users, programmers and
    administrators who are having difficulty installing a system capable of
    running Java applets or programs.  It is also the right group for
    people trying to check their understanding of something in the
    language, or to troubleshoot something simple.

comp.lang.java.programmer  Programming in the Java language.
    An unmoderated group for discussion of Java as a programming language.
    Specific example topics may include:
      o types, classes, interfaces, and other language concepts
      o the syntax and grammar of Java
      o threaded programming in Java - sychronisation, monitors, etc.
      o possible language extensions (as opposed to API extensions).
    The original charter said that discussion explicitly should not include
    API features that are not built into the Java language and gave examples
    like networking and the AWT.  These days AWT belongs in clj.gui, and
    networking (and many other APIs) are often discussed in clj.programmer.

Do not post binary classfiles or long source listings on any of these
groups. Instead, the post should reference a WWW or FTP site (short source
snippets to demonstrate a particular point or problem are fine).  For some
problems you might consider posting a SSCCE (Short, Self Contained, Correct
(Compilable), Example); see http://www.physci.org/codes/sscce.jsp

Don't post on topics that have their own groups, such as:
 comp.lang.java.3d        The Java 3D API
 comp.lang.java.advocacy  Arguments about X versus Y, for various Java X and Y
 comp.lang.java.beans     JavaBeans and similar component frameworks
 comp.lang.java.corba     Common Object Request Broker Architecture and Java
 comp.lang.java.databases Using databases from Java
 comp.lang.java.gui       Java graphical user interface design and construction
 comp.lang.java.machine   Java virtual machines, like JVM and KVM
 comp.lang.java.security  Using Java securely
 comp.lang.java.softwaretools Tools for developing/maintaining Java programs
Don't cross-post between these groups and c.l.j.programmer or .help -- it just
wastes the time of people reading the general groups.

Don't post about JavaScript; it's a different language.  See
comp.lang.javascript instead.
-- 
"Yo' ideas need to be thinked befo' they are say'd" - Ian Lamb, age 3.5
http://www.cs.queensu.ca/~dalamb/   qucis->cs to reply (it's a long story...)




==============================================================================
TOPIC: Java and image resize
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4eaffabaf616cdb7
==============================================================================

== 1 of 2 ==
Date: Thurs, Nov 25 2004 2:36 am
From: [EMAIL PROTECTED] (hopkins) 

I want to automate the process of uploading photos to my web site.
What I want java to be able to do is take a directory of photos,
resize them appropriately, create and XML file based on their names,
then FTP the whole lot.

My question is how well does java support jpeg resizing and whats
java's ftp access like. I could probably do this task in PHP, but I
thought I'll try java first.

Thanks!



== 2 of 2 ==
Date: Thurs, Nov 25 2004 3:02 am
From: Andrew Thompson  

On 25 Nov 2004 02:36:29 -0800, hopkins wrote:

> My question is how well does java support jpeg resizing ..

Well.

>...and whats java's ftp access like.

Good. (I have less experience with the latter, but the code 
snippet's I've seen were interesting for their brevity.)

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane



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

You received this message because you are subscribed to the Google
Groups "comp.lang.java.programmer" group.

To post to this group, send email to [EMAIL PROTECTED] or
visit http://groups-beta.google.com/group/comp.lang.java.programmer

To unsubscribe from this group, send email to
[EMAIL PROTECTED]

To change the way you get mail from this group, visit:
http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe

To report abuse, send email explaining the problem to [EMAIL PROTECTED]

==============================================================================
Google Groups: http://groups-beta.google.com 

Reply via email to