Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Java and HTML question

Thread Tools
 
Search this Thread
 
Old 16 July 2002, 10:33 AM
  #1  
ozzy
Scooby Regular
Thread Starter
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Question

Hi,

One of the lads in the office is learning Java and HTML. He's developed a small app, which works OK on his laptop and home PC but we can't get to work here in the office.

When you launch the HTML page, it just says "Loading Java applet...." and sits there for ever and never loads.

I tried the same on my XP machine (IE 6) and I noticed on the status bar there was a message "load: class OfficeApplet.class not found"

All the necessary files are in the one directory (C:\Temp for testing) and he doesn't have any commands with the path hardcoded.

Is this something obvious or is there a way of debugging whats going on?

Thanks,

Stefan
Old 16 July 2002, 11:20 AM
  #2  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Post

ozzy,

the Java VM is not installed as part of XP. Do you have this installed? Other than that you could try installing the JDK which contains 'appletviewer.exe' which will let you run applets.

Cheers

Gary
Old 16 July 2002, 11:22 AM
  #3  
super_si
Scooby Regular
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

same problem as me! ive donea javascript menu, think im gonna have to re-think like trotty said to me, whos gonna use it if they have to download
Old 16 July 2002, 12:28 PM
  #4  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Post

si,

you wont need the VM for Javascript, its handled by one of the script parsers which comes with IE, the script should work just fine.

Gary
Old 16 July 2002, 12:35 PM
  #5  
super_si
Scooby Regular
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

it doesnt though! ive sent it to 2 people they said that it didnt run!
Old 16 July 2002, 12:40 PM
  #6  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Post

si,

let me see the code and what sort of error do you get?

Does it run and error or not run at all?

Gary
Old 16 July 2002, 12:47 PM
  #7  
ozzy
Scooby Regular
Thread Starter
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Post

Gary,

jvm is installed on my workstation. When you run the HTML file, it checks for and then downloads the Java Plug-in 1.1.

Is that the same function as the JVM??

Stefan
Old 16 July 2002, 01:02 PM
  #8  
super_si
Scooby Regular
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

Just emailed it mate!

Si
Old 16 July 2002, 01:10 PM
  #9  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Post

oz,

too be honest not entirely sure! Thing is you can have a Java VM which I think is about 7/8 meg, the JDK which is about 25meg and also JRE (java Runtime enviornment), I think the plug-in sits on top of the VM but cant be sure!

Gary
Old 16 July 2002, 01:17 PM
  #10  
ozzy
Scooby Regular
Thread Starter
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Post

No worries Gary, thanks for your help.

I think it's just something on the PC rather than any of his HTML of Java code.

I'll keep trying.

Stefan
Old 16 July 2002, 01:19 PM
  #11  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Post

si,

err...well it works fine on mine!!! do you get an error or does the menu just not appear? I checked the paths you were using to the reference the .js files in the zip file and everything was ok.

What version of IE are you running? In internet options|advanced uncheck the option 'Disable script debugging' that way you will get an error dialog to see if the code is actually being called.

Gary
Old 16 July 2002, 01:21 PM
  #12  
super_si
Scooby Regular
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

well its works for me IE5 but mate on 6 couldnt run it
Old 16 July 2002, 02:34 PM
  #13  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Post

Si,

Well ive tried on 5 and 6 and its cool (menus look smart by the way!), it may be a security thing, If security is high it maybe disabling scripts, does he get an error message?

Gary
Old 16 July 2002, 02:43 PM
  #14  
super_si
Scooby Regular
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

nar just the bottom part!
Old 16 July 2002, 02:56 PM
  #15  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Post

hmmm

sounds like the script isn't even being called, tell him to put security down to medium or low and see what happens but there aint nowt wrong with the script.

Gary
Old 16 July 2002, 03:10 PM
  #16  
super_si
Scooby Regular
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

Its real annoying no point doing the site if the main aspect doesnt work!

Si
Old 16 July 2002, 04:55 PM
  #17  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
Cool

si,

dont give up the menus are probably the slickest Ive seen! Just get it uploaded somewhere and point people to it.

Gary
Old 16 July 2002, 05:16 PM
  #18  
super_si
Scooby Regular
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

yeah suppose so! so are they highly rated then!

can do something right
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
SilverM3
ScoobyNet General
8
24 February 2021 01:03 PM
blockhead
Subaru Parts
19
07 November 2015 11:50 PM
LSherratt
Non Scooby Related
20
28 September 2015 12:04 AM
alcazar
Non Scooby Related
37
27 September 2015 10:35 PM
blockhead
Subaru Parts
5
25 September 2015 12:58 PM



Quick Reply: Java and HTML question



All times are GMT +1. The time now is 10:57 PM.