What does volatile guarantee?

L

Lew

Lars said:
Ok, I may not have Java correctly installed in my browser. I can't be
bothered to do it at the moment.

You have Java 1.6, right? Doesn't that meet the requirement of being at least
1.5?

This whole non-problem makes no sense to me, but then I'm not familiar with
applets. Do applets complain when you have a more recent version of Java when
they specify a minimum version?
 
L

Lew

Mike said:
I read it differently: that the applet issues the error message "Sorry, you
need Java 1.5+ to run this Applet", but this makes no sense to Lars because
he has Java 1.6.

I think I'm beginning to see what I'm missing. Apparently what Lars left out
is that the applet refuses to run and complains that his version is not recent
enough.

The "applet refuses to run" part is what I didn't see in his post.

Do I have that right?
 
L

Lars Enderin

Lew said:
I think I'm beginning to see what I'm missing. Apparently what Lars
left out is that the applet refuses to run and complains that his
version is not recent enough.

The "applet refuses to run" part is what I didn't see in his post.

Do I have that right?
I thought I had a recent Java installed in my browser (Firefox 3.5.7),
but it looks like I hadn't. I'm running Ubuntu 6.10 64-bit, and it also
appears that I need to have a 32-bit Java JRE if I want to be able to
run applets. I already had /usr/lib/jvm/java-6-sun-1.6.0.16/. In fact, I
have a lot of Java versions:
/usr/lib/jvm:
total used in directory 120 available 92249044
drwxr-xr-x 6 root root 4096 2009-11-15 17:38 .
drwxr-xr-x 256 root root 86016 2010-02-17 14:57 ..
lrwxrwxrwx 1 root root 24 2009-09-11 20:27 ia32-java-6-sun ->
ia32-java-6-sun-1.6.0.16
drwxr-xr-x 6 root root 4096 2009-09-11 20:27 ia32-java-6-sun-1.6.0.16
-rw-r--r-- 1 root root 3114 2009-08-28 23:38 .ia32-java-6-sun.jinfo
lrwxrwxrwx 1 root root 18 2009-10-30 15:09 java-1.5.0-gcj ->
java-1.5.0-gcj-4.4
drwxr-xr-x 6 root root 4096 2009-10-30 15:09 java-1.5.0-gcj-4.4
lrwxrwxrwx 1 root root 14 2009-10-30 15:09 java-1.6.0-openjdk ->
java-6-openjdk
drwxr-xr-x 8 root root 4096 2009-11-15 17:38 java-6-openjdk
-rw-r--r-- 1 root root 2313 2009-11-10 07:41 .java-6-openjdk.jinfo
lrwxrwxrwx 1 root root 19 2009-09-11 20:27 java-6-sun ->
java-6-sun-1.6.0.16
drwxr-xr-x 6 root root 4096 2009-09-11 20:27 java-6-sun-1.6.0.16
-rw-r--r-- 1 root root 2793 2009-08-28 23:37 .java-6-sun.jinfo
lrwxrwxrwx 1 root root 12 2009-10-30 15:09 java-gcj -> java-gcj-4.4
lrwxrwxrwx 1 root root 18 2009-10-30 15:09 java-gcj-4.4 ->
java-1.5.0-gcj-4.4

I have now installed java-6-sun-1.6.0,18, i586 version, and can run the
applet.
 
J

John B. Matthews

[QUOTE="Lew said:
Because the applet doesn't recognize that it does.

How do you figure? It asks for Java 1.5+, and 1.6 is certainly above 1.5.[/QUOTE]

Here's Roedy's <applet> tag:

<applet
class="cmp"
archive="fontshower.jar"
code="com.mindprod.fontshower.FontShower.class"
width="720" height="660"
alt="You need Java 1.5+ to run this Applet."Sorry, you need Java 1.5+ to run this Applet.
</applet>

Although the <applet> tag is deprecated,

<http://www.w3.org/TR/1999/REC-html401-19991224/struct/objects.html#h-13.4>

it is the browser that displays the message:

ALT = alternateText: This OPTIONAL attribute specifies any text that
should be displayed if the browser understands the APPLET tag but can't
run Java applets.
 
R

Roedy Green

Sorry, you need Java 1.5+ to run this Applet.
I have Java 1.6!

I guess I will have to change that convention throughout the website.
JDK 1.5+ means JDK 1.5 or later.
--
Roedy Green Canadian Mind Products
http://mindprod.com

Nothing has really happened until it has been recorded.
~ Virginia Woolf (born: 1882-01-25 died: 1941-03-28 at age: 59)
 
R

Roedy Green

Sorry, but you are asking too much from me. I am sorry I commented at
all. The fontshower applet alone is enough to turn me off. I says:
Sorry, you need Java 1.5+ to run this Applet.
I have Java 1.6!

Where did you find the message? All I could find were "1.5 or later"
messages.

Further, if you simply visit the page the Applet should start up
without ceremony.
--
Roedy Green Canadian Mind Products
http://mindprod.com

Nothing has really happened until it has been recorded.
~ Virginia Woolf (born: 1882-01-25 died: 1941-03-28 at age: 59)
 
R

Roedy Green

I thought I had a recent Java installed in my browser (Firefox 3.5.7),
but it looks like I hadn't. I'm running Ubuntu 6.10 64-bit, and it also

Most browsers need a 32-bit Java. I have both 32 bit and 64 bit Javas
installed on my machine. The Browsers select the 32 bit version and
applications select the 64-bit version.

If you look below the Applet, you should see this text:

1. This Java Applet (that can also be run as an application) needs at
least 32-bit (not 64-bit) Java 1.5. For best results use the latest
1.6.0_18. and a recent browser.

2. Firefox 3.6 requires Java 1.6.0_10 or later.

3. If you have Windows 7 64-bit and Internet Explorer 64-bit, you can
use 64-bit Java.
--
Roedy Green Canadian Mind Products
http://mindprod.com

Nothing has really happened until it has been recorded.
~ Virginia Woolf (born: 1882-01-25 died: 1941-03-28 at age: 59)
 
R

Roedy Green

I think I'm beginning to see what I'm missing. Apparently what Lars left out
is that the applet refuses to run and complains that his version is not recent
enough.

That would explain everything. The Applet did not run and suggesting
installing Java 1.5+.

Instead of seeing it as a 32-bit vs 64-bit problem, Lars thought the
problem was the fool thing wanted an OLD Java installed, since he had
1.6 already installed.

Now to figure out wordings for others in Lars' boat to set them
straight.

Maybe what I need is some JavaScript to diagnose the problem.
--
Roedy Green Canadian Mind Products
http://mindprod.com

Nothing has really happened until it has been recorded.
~ Virginia Woolf (born: 1882-01-25 died: 1941-03-28 at age: 59)
 
A

Arne Vajhøj

It is rooted in the PDP-11 and Vax architectures, which had
pre-increment and post-decrement instructions, but not vice versa.

PDP-11 is before me but I do know VAX.

The general increment and decrement instructions INCx and DECx
are neither pre or post.

I assume that you are talking about autoincrement and autodecrement
addressing mode.

But:
1) autoincrement is post and autodecrement is pre
2) the construct is most relevant for arrays where
post and pre have different functionality

Arne
 
A

Andreas Leitgeb

John B. Matthews said:
Here's Roedy's <applet> tag:
<applet
class="cmp"
archive="fontshower.jar"
code="com.mindprod.fontshower.FontShower.class"
width="720" height="660"
alt="You need Java 1.5+ to run this Applet."
Sorry, you need Java 1.5+ to run this Applet.
</applet>
Although the <applet> tag is deprecated, ...

As the "Sorry," was part of the reported message, it seems that Lars'
browser does not understand the <applet> tag.
 
M

Mike Schilling

Arne said:
PDP-11 is before me but I do know VAX.

The general increment and decrement instructions INCx and DECx
are neither pre or post.

I assume that you are talking about autoincrement and autodecrement
addressing mode.

But:
1) autoincrement is post and autodecrement is pre
2) the construct is most relevant for arrays where
post and pre have different functionality

I think that the classic loop for string copying in C:

while(*dest++ = *src++);

could use autoincrement on PDP-11s or VAXen, but increment of anything other
than pointers to native types (e.g. byte, word, longword on VAX, etc.) could
not.
 
A

Andreas Leitgeb

Joshua Cranmer said:
Warning: do not try pulling this definition on a math professor...

At least not w.r.t. the number of correctly answered questions
on a test. :)
 
R

Roedy Green

Hmm. I wonder if it has something to do with having anti-aliasing on
or off. Some fonts that are designed for anti-aliasing look spidery
thin when rendered without.

Lars sent a screenshot. I think I have figured out what happened.

He did not have any of the recommended free fonts installed, so the
style sheet ended up using my fifth choice
for mono "Courier New" which is a rather ugly spindly font.

I will take that option out and go for default mono as fifth choice
which might look better.
--
Roedy Green Canadian Mind Products
http://mindprod.com

Nothing has really happened until it has been recorded.
~ Virginia Woolf (born: 1882-01-25 died: 1941-03-28 at age: 59)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top