Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Applet InvocationTargetException

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys ,

I am trying to make some kind of scrolling shooter in java.
Therefore I want to create an applet, capable of running in a browser.
My applet is running just fine when used in development environment Eclipse.
When I try to run the applet in the browser (firefox) however, I got the following error:



I use multiple JPanels for a login screen and a home screen. My applet is signed to obtain rights for reading files.
There is nothing in the error message that gives me a clue on what the problem is with the code.
The project is too big to post all the code. If you'd need some code to help me, please be specific on which code it has to be.
 
Marshal
Posts: 25594
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually seeing the code would probably be useless. Seeing the stack trace would be useful, but unfortunately it appears you cut it off above the place where the key exception is.
 
Jonathan Smiths
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not exactly sure how to get a full stacktrace in Eclipse, I will search that out later.
For now I've solved my problem, I loaded the wrong main class in the html file.
Thanks for the reply.
 
Paul Clapham
Marshal
Posts: 25594
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, it's usually configuration and not code when applets have problems. Good thing it was an easy one.
 
Power corrupts. Absolute power xxxxxxxxxxxxxxxx is kinda neat.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic