Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / November 2007

Tip: Looking for answers? Try searching our database.

Multiple Java Version Tools

Thread view: 
Richard F.L.R.Snashall - 19 Nov 2007 16:42 GMT
I have some simple optical design tools that I make available
on the web.  Up to now, I have been delivering them in versions
for 1.4.2 and 1.5.0.  To do that, I have been using Netbeans
for daily development (1.5.0) and Sun ONE Studio sor simple
compilation and test (1.4.2), although I'm not sure that is
100% effective as the libraries used may still be the 1.5 set.

A friend has suggested that I start thinking about delivering
a version in 1.6 as well.  Obviously, my methodology cannot
easily be extended.

Is there a way I can easily shift between versions?  I think
what I'm talking about is perhaps a simple commmand sequence
that I can use to shift back and forth between the versions.
This would imply that I want to compile and run on the
different versions -- regression test on the old, at least.
That would mean that Netbeans would have to work with the
different Java version as well.

Multiple platforms is not a solution for me.
Lew - 19 Nov 2007 17:11 GMT
> I have some simple optical design tools that I make available
> on the web.  Up to now, I have been delivering them in versions
> for 1.4.2 and 1.5.0.  To do that, I have been using Netbeans
> for daily development (1.5.0) and Sun ONE Studio sor simple
> compilation and test (1.4.2), although I'm not sure that is
> 100% effective as the libraries used may still be the 1.5 set.

-bootclasspath option to javac tells what libraries to use.
<http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html#crosscomp-e
xample
>

Documentation is your friend.

> A friend has suggested that I start thinking about delivering
> a version in 1.6 as well.  Obviously, my methodology cannot
[quoted text clipped - 9 lines]
>
> Multiple platforms is not a solution for me.

From your description, you already have multiple platforms, Java 1.4 and Java 5.

NetBeans will work with all versions of Java.  It wraps the -source, -target
and -bootclasspath options to javac.

Tell NetBeans what JDKs you have.  In project properties, tell NB for what
version of Java to target your app.

NB itself can run on Java 6 in all cases.  It will correctly associate your
project with the Java version you put in the project properties.
Signature

Lew

Richard F.L.R.Snashall - 20 Nov 2007 18:22 GMT
>> I have some simple optical design tools that I make available
>> on the web.  Up to now, I have been delivering them in versions
>> for 1.4.2 and 1.5.0.  To do that, I have been using Netbeans

>  From your description, you already have multiple platforms, Java 1.4
> and Java 5.
[quoted text clipped - 7 lines]
> NB itself can run on Java 6 in all cases.  It will correctly associate
> your project with the Java version you put in the project properties.

Thank you!  Now I don't even need (or have) the two independent
development environments!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.