Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  applet problem  (Read 1245 times)
0 Members and 1 Guest are viewing this topic.
Offline meshounah

Senior Newbie





« Posted 2007-11-23 19:57:00 »

my applet does not load in my html file?

http://www.uploadyour.info/download.php?filename=game32023.zip

P.S why can't we upload zip files?
Offline malberts

Junior Member





« Reply #1 - Posted 2007-11-24 15:06:29 »

The first time I opened the html file the applet didn't load. I recompiled the code and it's working. What JDK are you using? Are you compiling in some strange way?

About the code, why are you changing the Thread priorities in the run() method? That's not necessery.

You can't upload files here I think, though you can copy and paste your code snippets here if you want.

In space no-one can hear you System.out.println()
Offline meshounah

Senior Newbie





« Reply #2 - Posted 2007-11-24 18:28:06 »

i'm compiling it by "javac *.java" and my jdk version is 1.6.0_01


i tried a hello world but when i run i get this:


http://img100.imageshack.us/done.php?l=img100/7092/erroroz0.jpg
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline malberts

Junior Member





« Reply #3 - Posted 2007-11-24 18:58:58 »

Are you using Internet Explorer?
If you are, goto Tools, Internet Options, Advanced tab, and look for something saying "Java (Sun) / Use JRE 1.6.0_01 for applet".
If that box isn't ticked then your computer will be using Windows' default installed JRE 1.1.

I'm not sure where to do that on Mozilla Firefox, though I think Firefox doesn't need to be changed.

In space no-one can hear you System.out.println()
Offline meshounah

Senior Newbie





« Reply #4 - Posted 2007-11-25 02:38:36 »

i'm using ff but i can't even run a helloworld from the prompt
Offline SimonH
« Reply #5 - Posted 2007-11-25 04:36:20 »

Worked fine here in W2K with both IE & FF...

NB You can't run an applet from the prompt using 'java' (unless you add lots of extra code; main() &c - google it) Applets run only on a web-page.

People make games and games make people
Offline malberts

Junior Member





« Reply #6 - Posted 2007-11-25 12:23:28 »

I think you might have another JRE installed somewhere and that your computer defaulted to the older one. Then when you compile with 1.6 your old runtime cannot run the newer code.

Check in your registry under
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
if you have an older JRE installed as well.

In space no-one can hear you System.out.println()
Offline meshounah

Senior Newbie





« Reply #7 - Posted 2007-11-25 17:25:09 »

nono the helloworld was not an applet
Offline malberts

Junior Member





« Reply #8 - Posted 2007-11-25 18:43:14 »

In the command prompt enter:
java -version
and check if that corresponds to your JDK version. If not, then an older runtime was installed after the installation of 1.6. If any program did install an older version then the system would default to that one. You can change the runtime you want to use by editing one of the entries in the key I gave above.

In space no-one can hear you System.out.println()
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

ctomni231 (39 views)
2014-07-18 06:55:21

Zero Volt (36 views)
2014-07-17 23:47:54

danieldean (29 views)
2014-07-17 23:41:23

MustardPeter (32 views)
2014-07-16 23:30:00

Cero (47 views)
2014-07-16 00:42:17

Riven (48 views)
2014-07-14 18:02:53

OpenGLShaders (37 views)
2014-07-14 16:23:47

Riven (37 views)
2014-07-14 11:51:35

quew8 (33 views)
2014-07-13 13:57:52

SHC (70 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!