Look in the browser's java console for any error messages.
You should call the printStackTrace() method in the catch block to get better error messages.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
Printing out the full text of error messages helps you find the problem, It will not fix the problem.
You must find the browser's java console to see if it has any error messages. Go to th control panel, open the Java icon and make sure the java console is set to be displayed.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
Looking at your code I can't see code that would display anything on the screen/in the browser window. You just print things to System.out, which is the java console.
To display things on the screen/in the browser window you will need to useSwing components such as JLabel or JTextArea
JamesCherrill
... trying to help
8,494 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,454
Skill Endorsements: 29
Some browsers require you select a menu item. They all seem different. Keep poking at it until you find it.
what to do with the console.
About all you do is read info from it.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
Try rebooting the PC. Maybe the change you made in the Control panel needs a boot to take effect.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16