Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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 1937 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: http://diggswarm.ryeterrell.net

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!

Rye
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


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

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

So... use proper pixel values there.
</edit>

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


Maximumisness


« 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%?

Thanks!!

Rye
Offline Linuxhippy

Senior Member


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?  http://diggswarm.ryeterrell.net

Tongue

Offline irreversible_kev

Junior Member





« 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.

 

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

The first screenshot will be displayed as a thumbnail.

Dwinin (19 views)
2014-09-12 09:08:26

Norakomi (54 views)
2014-09-10 13:57:51

TehJavaDev (63 views)
2014-09-10 06:39:09

Tekkerue (31 views)
2014-09-09 02:24:56

mitcheeb (53 views)
2014-09-08 06:06:29

BurntPizza (37 views)
2014-09-07 01:13:42

Longarmx (23 views)
2014-09-07 01:12:14

Longarmx (27 views)
2014-09-07 01:11:22

Longarmx (27 views)
2014-09-07 01:10:19

mitcheeb (35 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!