Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (593)
Games in Android Showcase (168)
games submitted by our members
Games in WIP (646)
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  
  What's wrong with my applet?  (Read 2172 times)
0 Members and 1 Guest are viewing this topic.
Offline ryeterrell

Senior Newbie

« Posted 2007-05-20 03:38:05 »

I have an applet here:

It works fine on my two machines, but apparently people elsewhere cant run it.  I was wondering if anyone could click it and check the console to see what the problem is?

Thanks for any help!

Offline oNyx

JGO Coder

Medals: 2

pixels! :x

« Reply #1 - Posted 2007-05-20 04:06:15 »

Doesn't work with the appletviewer.
HTML parsing: incorrect value for width/height attribute
java.lang.NumberFormatException: For input string: "100%"

So... use proper pixel values there.

And other then that... did you compile it with the -source 1.4 -target 1.4 switches? Otherwise it will require your Java version (or better).

弾幕 ☆ @mahonnaiseblog
Offline erikd

JGO Ninja

Medals: 16
Projects: 4
Exp: 14 years


« Reply #2 - Posted 2007-05-20 10:52:32 »

It works fine here (nice little demo btw).

The problems elsewhere are probably caused by what oNyx mentioned about the -target switch (although the 100% thing worked just fine here).
Or maybe even a missing java plugin.
If not, ask for java console output. Otherwise we'll just be guessing.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline oNyx

JGO Coder

Medals: 2

pixels! :x

« Reply #3 - Posted 2007-05-20 11:20:22 »

Yea, 100% works in browsers, but the appletviewer doesn't have a clue how big 100% is supposed to be. For that it would need a complete html rendering engine. In most cases you wont cope will all kinds of sizes and constant values will do the trick.

弾幕 ☆ @mahonnaiseblog
Offline ryeterrell

Senior Newbie

« Reply #4 - Posted 2007-05-20 16:03:49 »

Okay, I am using 1.4 source now.  Can you guys look at it again?

About the 100% thing... how can I get it to use 100% of the display without using 100%?


Offline Linuxhippy

Senior Devvie

Medals: 1

Java games rock!

« Reply #5 - Posted 2007-05-20 16:53:41 »

because you mention "1.4 source", did you compile with -source 1.4 target 1.4?

the 100% width is really ok - since nobody will use appletviewer to watch it Wink
Offline ryeterrell

Senior Newbie

« Reply #6 - Posted 2007-05-20 19:02:20 »

Well, I am using netbeans and am not really familiar with the javac command line compiler, but I set the "source" option on the project to 1.4.  Does that do the trick?
Offline oNyx

JGO Coder

Medals: 2

pixels! :x

« Reply #7 - Posted 2007-05-20 19:13:42 »

-source <release>          Provide source compatibility with specified release
-target <release>          Generate class files for specific VM version

So... target is the one which is responsible for the class version.

弾幕 ☆ @mahonnaiseblog
Offline ryeterrell

Senior Newbie

« Reply #8 - Posted 2007-05-20 19:27:08 »

Yeah, it's just that in netbeans, there is no "target" option.  I was hoping that it was contained in one option.  Anyone familiar with netbeans know?

Anyways, does it work?


Offline irreversible_kev

Junior Devvie

« Reply #9 - Posted 2007-05-20 20:46:05 »

I tried it when you first posted and it was really slow but now it works great  Grin

So it works.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ryeterrell

Senior Newbie

« Reply #10 - Posted 2007-05-20 21:13:25 »

Great thanks Smiley
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

deepthought (31 views)
2015-06-30 15:39:44

deepthought (34 views)
2015-06-30 15:39:09

deepthought (45 views)
2015-06-30 15:36:52

Za\'Anzabar (21 views)
2015-06-29 05:44:54

TritonDreyja (36 views)
2015-06-24 17:10:40

CopyableCougar4 (35 views)
2015-06-23 00:34:45

BurntPizza (39 views)
2015-06-21 20:36:46

cookiecompiler (82 views)
2015-06-11 15:42:53

cookiecompiler (45 views)
2015-06-11 15:41:14

NegativeZero (75 views)
2015-06-11 09:49:18
How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14 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‑
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!