Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > JAVA applets in OSX

JAVA applets in OSX
Thread Tools
Keda
Senior User
Join Date: Dec 1999
Location: Alexandria, VA USA
Status: Offline
Reply With Quote
Dec 20, 2001, 02:51 PM
 
My company recently switched over to electronic time cards from Deltek. They run as applets in a browser. On a PC, they are reasonably snappy and will scale to fit the whole browser window. On the Mac, the are unbearably slow and only run in a small (400x) space.

Why is this. I thought OSX touted advanced java support. Is there something in the codeing that would make an applet perform worse on a Mac?
     
iNeusch
Mac Elite
Join Date: Dec 2001
Location: Paris, France
Status: Offline
Reply With Quote
Dec 20, 2001, 03:14 PM
 
Strange...

I program for my studies... and all the apps I make are soooooooooo much slower than on a Unix box...
And I'm on a g4

I'll be happy to know why it is like that too!
     
edddeduck
Mac Elite
Join Date: Mar 2001
Location: London
Status: Offline
Reply With Quote
Dec 20, 2001, 03:20 PM
 
I program had to program in JAVA for my course-work due in on monday last and have an answer...

JAVA 2 JAVA 2 JAVA 2

It's new OS X was the guinea pig with java 2 and the compilers suck...

btw any one need a timetable app??? it's in java and will select teachers/room/students timetables from a big database

It's shoddy but stable after all it's 2days work including learning JAVA as I went.

Cheers Edd
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Dec 20, 2001, 03:25 PM
 
Where do you people come up with this stuff!?!?
Java 2 is not new.
OS X was not a guinea pig.

The compilers don't suck--IE sucks.



Use the AppletViewer
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
SoClose
Forum Regular
Join Date: Jan 2001
Location: Boston, MA
Status: Offline
Reply With Quote
Dec 20, 2001, 03:46 PM
 
Definitely try using the AppletViewer application. I've written several 100%-pure Java applications and several Cocoa-Java applications and haven't noticed any speed hit. The Java runtime on Mac OS X includes all of the bells-and-whistles of the standard Sun release. The only area I can see where performance isn't great is if the app/applet is using Swing and the property to use hardware acceleration for graphics isn't enabled. If that's the case, simply set the com.apple.hwaccel property to true and you should see a speed increase.
     
gee308
Dedicated MacNNer
Join Date: May 2001
Status: Offline
Reply With Quote
Dec 20, 2001, 03:51 PM
 
just wondering, it isn't a java applet, but why is limewire so slow in OS X? I havent tried any native java apps in os x except for limewire, and it is horribly slow. Is it the programming of limewire or something else like compiler or whatever?
Actually I never liked OOP languages because I dont think their benefits are worth the speed overhead created by OOP.
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Dec 20, 2001, 04:51 PM
 
Originally posted by gee308:
<STRONG>
Actually I never liked OOP languages because I dont think their benefits are worth the speed overhead created by OOP.</STRONG>

WTF?
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
Keda  (op)
Senior User
Join Date: Dec 1999
Location: Alexandria, VA USA
Status: Offline
Reply With Quote
Dec 20, 2001, 05:29 PM
 
In my case, I dont think I can use the AppletViewer.

The java applet is tied into a database that records our hours. Performace is SHIT on the Macs. Of course, they didnt do any Mac testing-just dropped it on us.

Anyways, is there anything I can do?
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Dec 20, 2001, 06:13 PM
 
Why do you think you can't use the appletviewer???
Just type the URL to the applet and away you go.
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
gee308
Dedicated MacNNer
Join Date: May 2001
Status: Offline
Reply With Quote
Dec 20, 2001, 06:20 PM
 
Originally posted by Kristoff:
<STRONG>


WTF?</STRONG>
C compared to C++ or java: Speed wise C is faster, but when designing large projects, OOP languages help keep things more organized. I will always choose optimized speed over anything else. Most mission critical things are written in C, rarely in C++ and even much more rarely in java.
     
Keda  (op)
Senior User
Join Date: Dec 1999
Location: Alexandria, VA USA
Status: Offline
Reply With Quote
Dec 21, 2001, 09:24 AM
 
I have not been supplied a direct path to the Applet.

Here is the path to the Mac page. This Applet sucks:

https://et.ensco.com/webet/macindex.html

The PCs go to a different page, which automatically opens the applet out of a browser. Not only is the performance better, but the applet will fill up the whole window. Under tha Mac version, I am restricted to a small area with in the browser window.
     
Jelle Monkmater
Dedicated MacNNer
Join Date: Apr 2001
Location: World capital of drugs and prostitution. Hmmm... SEXTC...
Status: Offline
Reply With Quote
Dec 21, 2001, 09:31 AM
 
Originally posted by Keda:
<STRONG>I have not been supplied a direct path to the Applet.

Here is the path to the Mac page. This Applet sucks:

https://et.ensco.com/webet/macindex.html

The PCs go to a different page, which automatically opens the applet out of a browser. Not only is the performance better, but the applet will fill up the whole window. Under tha Mac version, I am restricted to a small area with in the browser window.</STRONG>
I don't know much, but I do know that they use very different JAVA implementations: I could open the macindex.html with my current JAVA installation on an NT box, but for the Windows one I'm asked to download JAVA 2 1.3, which I hadn't installed. I wouldn't be surprised if the Mac one uses archaic code while Windows users get the real benefits of JAVA 2.
The one you love and the one who loves you are never the same person.
     
The DJ
Grizzled Veteran
Join Date: Oct 2000
Location: Netherlands
Status: Offline
Reply With Quote
Dec 21, 2001, 09:32 AM
 
Originally posted by Keda:
<STRONG>Here is the path to the Mac page. This Applet sucks:

https://et.ensco.com/webet/macindex.html
</STRONG>
Judging from the source of the HTML i guess this is the correct path.
https://et.ensco.com/webet/webet.WebET
Try entering that in AppletViewer

Derk-Jan Hartman, Student of the University Twente (NL), developer of VLC media player
     
The DJ
Grizzled Veteran
Join Date: Oct 2000
Location: Netherlands
Status: Offline
Reply With Quote
Dec 21, 2001, 09:37 AM
 
Originally posted by Jelle Monkmater:
<STRONG>

I don't know much, but I do know that they use very different JAVA implementations: I could open the macindex.html with my current JAVA installation on an NT box, but for the Windows one I'm asked to download JAVA 2 1.3, which I hadn't installed. I wouldn't be surprised if the Mac one uses archaic code while Windows users get the real benefits of JAVA 2.</STRONG>
Not even that. The win version is launched from a JAVA detector (which is a Windows App). It simply checks your version. Apparently there is no Mac variant of this JAVA checker, so they just skip that step for the mac and launch the applet, keeping there fingers crossed that the version of JAVA you use is recent enough.

[EDIT]Clearified some lines[/edit]

[ 12-21-2001: Message edited by: The DJ ]

Derk-Jan Hartman, Student of the University Twente (NL), developer of VLC media player
     
Keda  (op)
Senior User
Join Date: Dec 1999
Location: Alexandria, VA USA
Status: Offline
Reply With Quote
Dec 21, 2001, 10:42 AM
 
I need to be in OS9 right now. I have tried the above address in Applet Runner, but it says URL hots 'et.ensco.com' could not be found.

Ive set the filesytem access to local and unrestricted. Do I need to enter an http proxy?

In a while, Ill get a chance to boot into OSX and give it a shot w/AppletViewer.
     
Keda  (op)
Senior User
Join Date: Dec 1999
Location: Alexandria, VA USA
Status: Offline
Reply With Quote
Dec 21, 2001, 01:27 PM
 
Im now in OSX. Ive entered a few different URLs into Applet Launcher, but it doesn't seem like anything is happening. The URL turns blue, but thats it.

Man, I feel like a dumb ass. Why cant I gat this to work?

Is there a way to see if the app is starting the spplet?
     
Keda  (op)
Senior User
Join Date: Dec 1999
Location: Alexandria, VA USA
Status: Offline
Reply With Quote
Dec 21, 2001, 02:14 PM
 
Here is the source for the page that the PCs are redirected too. At this point it will look for the version of Java and open the Applet in its own application window.


From this, can you tell what applet is being launched? BTW Ive changed all the tags to use {} so as not to mess up the UBB...


{html}
{head}
{title}WebET on Windows with IE and Sun Plugin{/title}
{/head}
{body}
{TABLE ALIGN="middle" BORDER=0 CELLSPACING=0 CELLPADDING=0 HEIGHT="100%" WIDTH="100%"}
{TH}
{OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 450
HEIGHT = 182
CODEBASE = "plugin/j2re1_3_0-win.exe#Version=1,2,0,0"}
{PARAM NAME = "TYPE" VALUE = "application/x-java-applet"}
{PARAM NAME = "java_code" VALUE = "webet.WebET"}
{PARAM NAME = "java_codebase" VALUE = "classes"}
{PARAM NAME = "java_archive" VALUE = "webetsw.jar"}
{PARAM NAME = "ISHostProtocol" VALUE = "https"}
{PARAM NAME = "ISHttpServer" VALUE = "webetHttp"}
{PARAM NAME = "Backend" VALUE = "HttpIS"}
{PARAM NAME="cache_option" VALUE="Plugin"}
{PARAM NAME="cache_archive" VALUE="webetsw.jar"}
{PARAM NAME="cache_version" VALUE="3.1.2.6" }
{/OBJECT}
{/TH}
{/TABLE}
{/body}
{/html}
     
Keda  (op)
Senior User
Join Date: Dec 1999
Location: Alexandria, VA USA
Status: Offline
Reply With Quote
Jan 17, 2002, 10:20 AM
 
BuMp!

Hey guys, I still have not gotten this to work. Can anyone tell anything from the last message I wrote (ie the windows code)?

Thanx
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 05:35 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,