This site requires JavaScript, please enable it in your browser!
Greenfoot back
Gevater_Tod4711
Gevater_Tod4711 wrote ...

2013/3/31

Way to get exceptions on the webside

Gevater_Tod4711 Gevater_Tod4711

2013/3/31

#
Hi all, Is there a way to get the stack trace of an exception that is thrown if the jar is running on the webside? I'm trying to use profiles for my cardgames scenario and the profiles don't work on the webside. The programm only gets some information from the userinfo but isn't able so save or load data from the UserInfo strings. My problem now is that I have got no idea what is wrong with my code becuse I don't get the exceptions that are thrown or caught. If there is an exception that is not caught the programm just stops and if it's caught and should be printed nothing happens at all. So a way to get the exceptions would be realy great. Has anyone got any ideas how to get these exceptions?
mjrb4 mjrb4

2013/3/31

#
You should have an option to show the Java Console - in Windows there's usually a Java icon that appears in the task bar whenever an applet runs, if you right click on that and select "Show Java Console" then the console will appear which will contain any stack trace the applet may have printed.
Gevater_Tod4711 Gevater_Tod4711

2013/3/31

#
I can't find any icons. Is it possible that this icon is disactivated?
danpost danpost

2013/3/31

#
Are you trying to run the scenario on www.greenfoot.org or as an application on your local system?
Gevater_Tod4711 Gevater_Tod4711

2013/3/31

#
If I run it on my local system everything is working fine. But on the webside (www.greenfoot.org) only the reading of the users name is possible. Here you can find the scenario.
mjrb4 mjrb4

2013/4/1

#
Assuming you're running windows - in the control panel, under Java, on the advanced tab, and under the "Java Console" setting, click "show console" - then you should see it.
Gevater_Tod4711 Gevater_Tod4711

2013/4/1

#
To my shame I must admit: I'm running windows. But I just can't find this control panel. Where exactly should this panel be?
You need to login to post a reply.