Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Compiling and running with different revisions

Reply
Thread Tools

Compiling and running with different revisions

 
 
Will
Guest
Posts: n/a
 
      09-02-2004
Ok, silly question but I can't seem to find the answer. If I compile
with JDK version 1.3.1_07 can I run my code without problems on a JRE
1.4.2_xx? I think the answer should be yes, but I just want to make
sure. I know that some of the JREs behave differently (bug fixes,
etc.) but they are still forward/backward compatible, right?
My specific problem, should someone already have another fix, is that
in 1.3.1_07 the JFileChooser is crippled and annoying compared to the
native Windows dialog. It cannot rename folders or files
successfully, it cannot jump to the file starting with the same letter
you pressed, and the look and feel occassionally hiccups. I'm hoping
some or all of these bugs have been corrected in later JREs and that I
won't have to recompile my code since the JFileChooser is part of
Sun's packages and should just get linked to, not compiled in with
mine. Any thoughts? Or any alternatives to the JFileChooser class?
-Will
 
Reply With Quote
 
 
 
 
Paul Lutus
Guest
Posts: n/a
 
      09-02-2004
Will wrote:

> Ok, silly question but I can't seem to find the answer. If I compile
> with JDK version 1.3.1_07 can I run my code without problems on a JRE
> 1.4.2_xx?


The answer for this specific example should be "yes", but in some cases
(with a greater gap between versions) there are differences that could
create problems.

Why not test your application on each version you intend to support?

> I think the answer should be yes, but I just want to make
> sure. I know that some of the JREs behave differently (bug fixes,
> etc.) but they are still forward/backward compatible, right?


In general, yes, but it is always prudent to test your application with the
target versions.

> My specific problem, should someone already have another fix, is that
> in 1.3.1_07 the JFileChooser is crippled and annoying compared to the
> native Windows dialog. It cannot rename folders or files
> successfully, it cannot jump to the file starting with the same letter
> you pressed, and the look and feel occassionally hiccups. I'm hoping
> some or all of these bugs have been corrected in later JREs and that I
> won't have to recompile my code since the JFileChooser is part of
> Sun's packages and should just get linked to, not compiled in with
> mine.


For this particular example, you really should recompile with a later
version to see the outcome. And in general, it is a good idea to tell the
users of your program which Java versions are supported/expected.

--
Paul Lutus
http://www.arachnoid.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Revisions to iterator requirements - status? Kevin McCarty C++ 0 09-28-2012 05:00 PM
Mixing different VHDL revisions between package and entity Sean Durkin VHDL 4 07-19-2012 07:22 AM
The New B3 Revisions to the 6 Series Sandybridge Chipsets? John Computer Information 1 03-06-2011 01:31 AM
How to measure speed improvements across revisions over time? Matthew Wilson Python 2 05-11-2010 06:44 AM
VHDL revisions comparison Just an Illusion VHDL 1 06-30-2004 11:22 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57