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 / General / December 2007

Tip: Looking for answers? Try searching our database.

Source level

Thread view: 
Ouabaine - 30 Nov 2007 13:24 GMT
Hello,

I am converting my project (a Java application) into an applet. So I created
a new applet project under netbeans and copied the sources in it.
When I compile, I get error messages for example with arraylist<object>
saying that generics are not supported in version 4.
OK. I have found the settings int he project properties. And my project is
set to work with version 1.6 of the libraries.

How does going to version 1.5 of the source version affects my applet?
Should I go directly for V1.6? Have you got any idea on how widespread the
v1.6 are? Am I taking a risk by choosing 1.6? I know that Leopard does not
have 1.6 yet, but this should come any month now. What about Linux?

Thanks for your advice,
Andrew Thompson - 01 Dec 2007 00:22 GMT
...
>I am converting my project (a Java application) into an applet.

Why?  Or more specifically, why *not* simply launch
the application using Java web start (JWS)?  E.G.
<http://www.physci.org/jws/#jtest>

>How does going to version 1.5 of the source version affects my applet?

More JREs will be able to run it.  Make sure you are using
the -bootclasspath and -source/-target options, and the compiler
will tell you which aspects of 1.6 are not availabe in 1.5.

Note that JWS is particularly suited to run-time versioning.
<http://www.physci.org/jws/version.html>

>Should I go directly for V1.6? Have you got any idea on how widespread the
>v1.6 are? Am I taking a risk by choosing 1.6? I know that Leopard does not
>have 1.6 yet, but this should come any month now.

And then how long will it take for Mac users to upgrade?
I would go for 1.5, and see how many changes need to
be made to the code to run it in a 1.5 VM (I doubt it will
require lots of changes).

>..What about Linux?

1.6 has been available for most Linux variants for some time.

Signature

Andrew Thompson
http://www.physci.org/

Nigel Wade - 03 Dec 2007 09:38 GMT
>>..What about Linux?
>
> 1.6 has been available for most Linux variants for some time.

Sun has not implemented a Java plugin for 64bit Linux, not even for 1.5 never
mind 1.6. So you can't run applets in 64bit browsers under Linux. There are
workarounds, but none of them are particularly appealing, and you will probably
find most installations of 64bit Linux cannot run applets.

Signature

Nigel Wade, System Administrator, Space Plasma Physics Group,
           University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@ion.le.ac.uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

Arne Vajhøj - 04 Dec 2007 03:13 GMT
> Sun has not implemented a Java plugin for 64bit Linux, not even for 1.5 never
> mind 1.6. So you can't run applets in 64bit browsers under Linux. There are
> workarounds, but none of them are particularly appealing, and you will probably
> find most installations of 64bit Linux cannot run applets.

Does applets need 64 bit ?

Arne
Nigel Wade - 06 Dec 2007 09:04 GMT
>> Sun has not implemented a Java plugin for 64bit Linux, not even for 1.5 never
>> mind 1.6. So you can't run applets in 64bit browsers under Linux. There are
>> workarounds, but none of them are particularly appealing, and you will probably
>> find most installations of 64bit Linux cannot run applets.
>
> Does applets need 64 bit ?

A 64bit web browser needs a 64bit plugin. So, yes if your installation is 64bit
your browser is likely to be 64bit and applets would need a 64bit plugin (if
there was one).

The alternative is to install a 32bit browser and a 32bit JVM+plugin and use
that. But that isn't always possible, and certainly not always trivial, on
64bit Linux distros.

There is a project called nspluginwrapper which allows 64bit firefox to utilize
32bit plugins. How the technology works (since the 64bit application cannot
load the 32bit plugin directly) I don't know. It probably starts an external
32bit app which loads the plugin and embeds that app's. display within the
browser window. But that's pure speculation.

Signature

Nigel Wade, System Administrator, Space Plasma Physics Group,
           University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@ion.le.ac.uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

Gordon Beaton - 03 Dec 2007 09:43 GMT
>>..What about Linux?
>
> 1.6 has been available for most Linux variants for some time.

If by "most" you mean "intel architecture", then that might be true.

But Linux runs on many HW platforms for which there is no recent Java
available at all.

/gordon

--
Arne Vajhøj - 04 Dec 2007 03:19 GMT
>>> ..What about Linux?
>> 1.6 has been available for most Linux variants for some time.
[quoted text clipped - 3 lines]
> But Linux runs on many HW platforms for which there is no recent Java
> available at all.

x86 is a pretty big chunk of Linux systems.

I will assume that IBM provides Java for Linux/PPC.

BEA has for Linux/IA-64.

Arne


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.