Click here to Skip to main content
15,898,773 members
Home / Discussions / Java
   

Java

 
QuestionJava Applet not drawing to screen [modified] Pin
Liam S. Crouch20-Aug-11 4:33
Liam S. Crouch20-Aug-11 4:33 
AnswerRe: Java Applet not drawing to screen Pin
Richard MacCutchan20-Aug-11 6:41
mveRichard MacCutchan20-Aug-11 6:41 
GeneralRe: Java Applet not drawing to screen Pin
Liam S. Crouch20-Aug-11 7:44
Liam S. Crouch20-Aug-11 7:44 
GeneralRe: Java Applet not drawing to screen Pin
Richard MacCutchan20-Aug-11 23:28
mveRichard MacCutchan20-Aug-11 23:28 
GeneralRe: Java Applet not drawing to screen Pin
Richard MacCutchan21-Aug-11 8:18
mveRichard MacCutchan21-Aug-11 8:18 
QuestionHow to save the state of applet after changes on webpage? Pin
CodeGust17-Aug-11 15:35
CodeGust17-Aug-11 15:35 
AnswerRe: How to save the state of applet after changes on webpage? Pin
Peter_in_278017-Aug-11 15:49
professionalPeter_in_278017-Aug-11 15:49 
QuestionJava webserver : how to serve applets Pin
Roysten181817-Aug-11 11:43
Roysten181817-Aug-11 11:43 
Dear Reader,

I have been busy with building a java webserver.
the server can handle the basic HTML GET requests and serve some simple html files.

Now i want to serve Java Applets in a website.

i added the line
<applet code=Testapp width=512 height=512> </applet>

to the HTML file
The Testapp is a .class file and the server can find the file and sends it.

When i open the file locally it works without errors.
but when i open it through the java webserver it gives me a strange error.

"Exception: java.lang.ClassFormatError: Unknown constant tag 101 in class file Testapp"

These are the tests i have done but didnt work:
-->Created another app. This one also works perfect local, but through the server it gives an Unknown constant tag 13 error. At that point i kinda had my head upside down :P

-->captured a header from a site that had an applet buildt in. Took over some parts of the header but that didnt work. Frown | :(

Im desperate! i am stuck for like 2 weeks now. I tried a lot but it all didnt got better. thank god it didnt got worse.

I did found out the error has something to do with a corrupted jar / class file. I exported it again and again and again...

Thanks in advance
AnswerRe: Java webserver : how to serve applets [modified] Pin
Peter_in_278017-Aug-11 13:36
professionalPeter_in_278017-Aug-11 13:36 
GeneralRe: Java webserver : how to serve applets Pin
Roysten181818-Aug-11 13:56
Roysten181818-Aug-11 13:56 
GeneralRe: Java webserver : how to serve applets Pin
Peter_in_278018-Aug-11 14:26
professionalPeter_in_278018-Aug-11 14:26 
AnswerRe: Java webserver : how to serve applets Pin
jschell18-Aug-11 12:48
jschell18-Aug-11 12:48 
GeneralRe: Java webserver : how to serve applets Pin
Roysten181818-Aug-11 13:58
Roysten181818-Aug-11 13:58 
Questioncreating a class with coding_?. Pin
quartaela11-Aug-11 5:14
quartaela11-Aug-11 5:14 
AnswerRe: creating a class with coding_?. Pin
Richard MacCutchan11-Aug-11 5:59
mveRichard MacCutchan11-Aug-11 5:59 
GeneralRe: creating a class with coding_?. Pin
quartaela11-Aug-11 6:07
quartaela11-Aug-11 6:07 
AnswerRe: creating a class with coding_?. Pin
jschell11-Aug-11 13:13
jschell11-Aug-11 13:13 
GeneralRe: creating a class with coding_?. Pin
quartaela12-Aug-11 12:43
quartaela12-Aug-11 12:43 
GeneralRe: creating a class with coding_?. Pin
quartaela12-Aug-11 12:44
quartaela12-Aug-11 12:44 
AnswerRe: creating a class with coding_?. Pin
David Skelly11-Aug-11 22:17
David Skelly11-Aug-11 22:17 
GeneralRe: creating a class with coding_?. Pin
quartaela13-Aug-11 3:32
quartaela13-Aug-11 3:32 
QuestionJfreechart with jsp and servlet giving error Pin
cmaheshwari1611-Aug-11 0:13
cmaheshwari1611-Aug-11 0:13 
AnswerRe: Jfreechart with jsp and servlet giving error Pin
Gerben Jongerius11-Aug-11 20:22
Gerben Jongerius11-Aug-11 20:22 
GeneralRe: Jfreechart with jsp and servlet giving error Pin
cmaheshwari1611-Aug-11 23:03
cmaheshwari1611-Aug-11 23:03 
QuestionJAAS Question Pin
AndreFratelli10-Aug-11 9:12
AndreFratelli10-Aug-11 9:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.