PDA

View Full Version : [JAVA] Need help with a applet.



Fred Perry
November 25th, 2010, 10:30
Hi,
I'm a noob at java and I have a problem.


I made a applet, and I want it to load through a different way, (I packaged it)

My Folder is


Bin(Folder) Src(Folder)



<HTML>
<HEAD>
<TITLE>Fred's first game</TITLE>
</HEAD>
<BODY>
<CENTER>
<H1>Fred's first game</H1>
<APPLET CODE="./src/game/fred/Main.class" WIDTH=150 HEIGHT=25>
</APPLET>
</BODY>


Why isn't that working what do I need to change to make it load from that directory
</HTML>

Faab234
November 25th, 2010, 15:45
Hi,
I'm a noob at java and I have a problem.


I made a applet, and I want it to load through a different way, (I packaged it)

My Folder is


Bin(Folder) Src(Folder)



<HTML>
<HEAD>
<TITLE>Fred's first game</TITLE>
</HEAD>
<BODY>
<CENTER>
<H1>Fred's first game</H1>
<APPLET CODE="./src/game/fred/Main.class" WIDTH=150 HEIGHT=25>
</APPLET>
</BODY>


Why isn't that working what do I need to change to make it load from that directory
</HTML>

I'm sure src isn't your package and I'm also sure the src folder doesn't have any class files.

Steve
November 25th, 2010, 15:49
I'm not completely sure but don't you use .'s instead of /'s?

TheUnKnown
November 25th, 2010, 16:33
ps don't capitalise html tags it's against standard

Doesn't really matter :p