AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Modify java interpreter?

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Discussions
View previous topic :: View next topic  
Author Message
garrett
Guest





PostPosted: Thu Feb 22, 2007 11:24 pm    Post subject: Modify java interpreter? Reply with quote



Hi,



There are some applets that I execute from the web which I want you to
modify how they are displayed on my computer. This changes involves making
fonts larger or creating hot keys that will allow me to input certain text
strings into certain dialog boxes. This might mean I would modify my local
java interpreter. Am I right? If I modify the interpreter, will it still
allow me to execute applets from the web? Another question is how do I
modify this (jre?).



I appreciate any advice



Garrett
Back to top
Donkey Hot
Guest





PostPosted: Fri Feb 23, 2007 3:59 am    Post subject: Re: Modify java interpreter? Reply with quote



"garrett" <garrett_009 (AT) earthlink (DOT) net> wrote in
news:0801b4-bff.ln1 (AT) news2 (DOT) homelinux.org:

Quote:
Hi,



There are some applets that I execute from the web which I want you to
modify how they are displayed on my computer. This changes involves
making fonts larger or creating hot keys that will allow me to input
certain text strings into certain dialog boxes. This might mean I
would modify my local java interpreter. Am I right? If I modify the
interpreter, will it still allow me to execute applets from the web?
Another question is how do I modify this (jre?).



I appreciate any advice



Garrett





You can't modify jre because it's source code is not available.

--
Keep grandma off the streets -- legalize bingo.
Back to top
Lew
Guest





PostPosted: Fri Feb 23, 2007 8:10 am    Post subject: Re: Modify java interpreter? Reply with quote



"garrett" wrote:
Quote:
There are some applets that I execute from the web which I want you to
modify how they are displayed on my computer. This changes involves
making fonts larger or creating hot keys that will allow me to input
certain text strings into certain dialog boxes. This might mean I
would modify my local java interpreter. Am I right? If I modify the
interpreter, will it still allow me to execute applets from the web?
Another question is how do I modify this (jre?).

Donkey Hot wrote:
Quote:
You can't modify jre because it's source code is not available.

That is not really true. The JRE source code actually is available.

However, modifying the JRE to modify code behavior is a lot like rebuilding
your CD player to make the music louder. It would be very difficult,
completely non-standard, likely not to work well, extremely frustrating, and
would void the warranty.

If you have the source code to the applet, you can change its behavior.

Otherwise you are pretty much stuck with what the applet's author decided.

- Lew
Back to top
Marc
Guest





PostPosted: Mon Feb 26, 2007 3:01 pm    Post subject: Re: Modify java interpreter? Reply with quote

Lew wrote:
Quote:
"garrett" wrote:
There are some applets that I execute from the web which I want you to
modify how they are displayed on my computer. This changes involves
making fonts larger or creating hot keys that will allow me to input
certain text strings into certain dialog boxes. This might mean I
would modify my local java interpreter. Am I right? If I modify the
interpreter, will it still allow me to execute applets from the web?
Another question is how do I modify this (jre?).

Donkey Hot wrote:
You can't modify jre because it's source code is not available.

That is not really true. The JRE source code actually is available.

However, modifying the JRE to modify code behavior is a lot like
rebuilding your CD player to make the music louder. It would be very
difficult, completely non-standard, likely not to work well, extremely
frustrating, and would void the warranty.

You'd have to ask users to download your patch or JRE version first...
which would need another applet or script to detect it. Applets didn't
take off big time because of the need for one JRE... having many would
be very bad!
Back to top
garrett
Guest





PostPosted: Thu Mar 08, 2007 2:25 am    Post subject: Re: Modify java interpreter? Reply with quote

Hi Lew,

I am glad you know these things. I remember reading that you can download
and compile the JRE Source Code. I am worried that when I introduce my few
lines of code for allowing keyboard shortcuts, I'll get a bunch of errors
and abortings I don't know how to fix. Plus, I don't know where to put the
compiled executable. Is there some place that can give me a step by step
guide for how to build this and where to put the file EXE? Also, if I am
using Internet Explorer, would the JRE be part of Microsoft's copyrighted
Java interpruter? Is there any free access to the source code?

By asking all of these questions, I think I am making a mountain of a mole
hill. I wondered if there is another solution to the problem. I was looking
for a way to allow me to choose a keyboard shortcut to insert custom text
into a certain field. Is there any other way to do this? Maybe a change to
the web browser?

Thanks for your help.

Garrett

"Lew" <lew (AT) nospam (DOT) lewscanon.com> wrote in message
news:<RbadnXraK_BGx0PYnZ2dnUVZ_h-vnZ2d (AT) comcast (DOT) com>...

Quote:
"garrett" wrote:

There are some applets that I execute from the web which I want you

to modify how they are displayed on my computer. This changes

involves making fonts larger or creating hot keys that will allow

me to input certain text strings into certain dialog boxes. This

might mean I would modify my local java interpreter. Am I right? If

I modify the interpreter, will it still allow me to execute applets
from the web?

Another question is how do I modify this (jre?).



However, modifying the JRE to modify code behavior is a lot like

rebuilding your CD player to make the music louder. It would be very

difficult, completely non-standard, likely not to work well, extremely

frustrating, and would void the warranty.



If you have the source code to the applet, you can change its behavior.



Otherwise you are pretty much stuck with what the applet's author decided.



- Lew
Back to top
Lew
Guest





PostPosted: Fri Mar 09, 2007 8:10 am    Post subject: Re: Modify java interpreter? Reply with quote

garrett wrote:
Quote:
I remember reading that you can download
and compile the JRE Source Code. I am worried that when I introduce my few
lines of code for allowing keyboard shortcuts, I'll get a bunch of errors
and abortings I don't know how to fix. Plus, I don't know where to put the
compiled executable. Is there some place that can give me a step by step
guide for how to build this and where to put the file EXE? Also, if I am
using Internet Explorer, would the JRE be part of Microsoft's copyrighted
Java interpruter? Is there any free access to the source code?

Microsoft does not have a Java interpreter to my knowledge, copyrighted or not.

Quote:
By asking all of these questions, I think I am making a mountain of a mole
hill. I wondered if there is another solution to the problem. I was looking
for a way to allow me to choose a keyboard shortcut to insert custom text
into a certain field. Is there any other way to do this? Maybe a change to
the web browser?

I recommend that you do not rewrite the Java engine to accomplish a
user-interface goal. It is a really, really bad idea.

Java is a language that gives you the tools to write user interfaces. It
already has keyboard shortcuts. (Swing calls them "mnemonics".)

Why would you rewrite the tool when it is a tool to write what you want in the
first place?

So do not rewrite Java for the purpose of gaining keyboard shortcuts. This is
especially urgent because Java already provides the ability to code keyboard
shortcuts.

Read the "Java Swing Tutorial" on java.sun.com to find out the right way to do
this kind of thing.

For example,
<http://java.sun.com/docs/books/tutorial/uiswing/components/button.html>

And for Pete's sake, do not rewrite the Java engine.

-- Lew
Back to top
Marc
Guest





PostPosted: Sat Mar 10, 2007 12:48 am    Post subject: Re: Modify java interpreter? Reply with quote

Lew wrote:
Quote:
Microsoft does not have a Java interpreter to my knowledge, copyrighted
or not.

By asking all of these questions, I think I am making a mountain of a
mole hill. I wondered if there is another solution to the problem. I
was looking for a way to allow me to choose a keyboard shortcut to
insert custom text into a certain field. Is there any other way to do
this? Maybe a change to the web browser?

I recommend that you do not rewrite the Java engine to accomplish a
user-interface goal. It is a really, really bad idea.

Java is a language that gives you the tools to write user interfaces. It
already has keyboard shortcuts. (Swing calls them "mnemonics".)

Why would you rewrite the tool when it is a tool to write what you want
in the first place?

So do not rewrite Java for the purpose of gaining keyboard shortcuts.
This is especially urgent because Java already provides the ability to
code keyboard shortcuts.

Read the "Java Swing Tutorial" on java.sun.com to find out the right way
to do this kind of thing.

For example,
http://java.sun.com/docs/books/tutorial/uiswing/components/button.html

And for Pete's sake, do not rewrite the Java engine.

Don't worry about Pete. I'm sure anyone contemplating a rewrite wouldn't
have the skill anyway, and while they went off to learn it, they'd
change their mind. Having said that, my Linux distro felt the need to
rewrite it, I'd rather they just didn't include it, and linked to Sun's
download site.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Discussions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.