Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (492)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
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  
  Internet Explorer Problem  (Read 3428 times)
0 Members and 1 Guest are viewing this topic.
Offline nelsoc

Junior Newbie




Java games rock!


« Posted 2003-10-18 03:38:34 »

I have a couple of simple Applets that run fine when I use Netscape, but when I try to view them with Internet Explorer I get this:

Error loading class: three13.three13
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: three13.three13
     at com/ms/vm/loader/URLClassLoader.loadClass
     at com/ms/vm/loader/URLClassLoader.loadClass
     at com/ms/applet/AppletPanel.securedClassLoad
     at com/ms/applet/AppletPanel.processSentEvent
     at com/ms/applet/AppletPanel.processSentEvent
     at com/ms/applet/AppletPanel.run
     at java/lang/Thread.run

Is this just because Microsoft hates Java, or is there something I can do to make my Applets run on IE?

Thanks!
Nels
Offline tom
« Reply #1 - Posted 2003-10-18 10:33:02 »

Just currious, what did you use to compile your applet?

How does your inner class look like?

Have you tried it with suns appletviewer?

Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #2 - Posted 2003-10-18 10:52:13 »

Quote
Just currious, what did you use to compile your applet?

How does your inner class look like?

Have you tried it with suns appletviewer?


...and how have you packaged the classes? And how are you calling them from the HTML? IIRC appletviewer accepts some combinations of syntax that IE doesn't like.

malloc will be first against the wall when the revolution comes...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline nelsoc

Junior Newbie




Java games rock!


« Reply #3 - Posted 2003-10-18 13:20:46 »

I'm using Sun's NetBeans IDE 3.5.1, and the compiler it uses.

I only have the one class right now. It's called from the HTML as follows:

<P>
<APPLET codebase=.. code="three13/three13.class" width=320 height=200></APPLET>
</P>

That was the code generated for me by NetBeans...
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #4 - Posted 2003-10-18 13:45:14 »

Quote
I'm using Sun's NetBeans IDE 3.5.1, and the compiler it uses.

I only have the one class right now. It's called from the HTML as follows:

<P>
<APPLET codebase=.. code="three13/three13.class" width=320 height=200></APPLET>
</P>

That was the code generated for me by NetBeans...


Try replacing that with

<APPLET code="three13.class" width=320 height=200></APPLET>

using relative paths (..) in the codebase, especially where it's entirely pointless, strikes me as being rather strange. And I have 0 faith in NB to ever get anything right anyway Wink

malloc will be first against the wall when the revolution comes...
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #5 - Posted 2003-10-24 12:47:19 »

IE is the pain :-/

1  
<applet archive="Progs.jar" code="Progs.class" width=400 height=450>


Results in: load: class Progs not found

What is the problem? Without using an archive everything works fine... is the IE's default VM really too stupid to understand that?

Do I have to use CABs?

How do I sign 'em? What if that doesn't work? There isn't a way to sign a bunch of class files wich aren't archived right?  :-/

弾幕 ☆ @mahonnaiseblog
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #6 - Posted 2003-10-28 05:41:41 »

this is what I have in the HTML for CottAGE and that works in IE:

1  
2  
3  
4  
<APPLET CODE="cottage.Cottage.class" ARCHIVE="Cottage.jar" WIDTH="224" HEIGHT="288">
<PARAM name="DRIVER" value="mspacman"/>
Your browser does not support Java...
</APPLET>


(The PARAM tag is to pass parameters to the applet)

I noticed that to get things working, I you need to have a MANIFEST in the jar with the main class, and you *must* compile using -target 1.1 option.

Erik

Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #7 - Posted 2003-10-28 21:50:47 »

Well thanks for the answer... already got that far... but signing sucks... IE just ignores the fact that it's signed. It's IE 5.0 with one vm update wich is years ago. It understands  Swing stuff (obscure)... but it doesn't understand it if it's jar-ed(wtf?). 1.1 stuff works again jar-ed... so heh... <swear word> ms.

We just throw that 1.1 idea into the garbage bin. A whole day wasted for nothing except lots of frustration.

And you can't even buy level 2 digital IDs anymore (20$ a year)... instead you have to buy a level 3 digital ID wich is 400$ for two years (and ofcorse you need another one if you want to support stoneage netscape too... so it's 800$).

And using a self certificate doesn't work... you need to d/l the msvm sdk... install it... and then set a flag with it... on *all* clients. Haha... very funny :/

1.3+, selfcertificate and jar (damn I really hate cabs) was the only way... everything else is just more pain.

Well... just one thing... I'm glad that MS has stopped their Java "support". I'm glad that the future will be without major ms java <f-word>age. I'm looking forward the day MS's proprietary dirt tracks finally disappear.

Thanks for listening Smiley

弾幕 ☆ @mahonnaiseblog
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #8 - Posted 2003-10-29 11:47:34 »

Ouch that sounds bad, yet typically MS.
I fully agree with you. MS has done the right thing to stop supporting what they called 'java' and so should we.

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.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (33 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (40 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (25 views)
2014-08-16 06:20:21

Tekkerue (37 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (49 views)
2014-08-09 21:09:32
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!