kodaligopi547 / droiddraw

Automatically exported from code.google.com/p/droiddraw
0 stars 0 forks source link

java.awt.AWTError: No suitable parent found for Component. #163

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. java -jar droiddraw.jar

What is the expected output? What do you see instead?

Expected: A screen to draw on.

Seen:
A "Check for updates" dialog (to which I responded "Yes") followed by:

Exception in thread "main" java.awt.AWTError: No suitable parent found for 
Component.
   at javax.swing.JColorChooser.createDialog(libgcj.so.10)
   at org.droiddraw.gui.ColorsPanel$ColorEditor.<init>(ColorsPanel.java:87)
   at org.droiddraw.gui.ColorsPanel.<init>(ColorsPanel.java:117)
   at org.droiddraw.gui.DroidDrawPanel.<init>(DroidDrawPanel.java:536)
   at org.droiddraw.Main.main(Main.java:469)

What version of the product are you using? On what operating system?

* droiddraw: r1b16
* Ubuntu Lucid (10.04)
* sun-java6-bin     6.20dlj-1ubuntu3
  sun-java6-demo    6.20dlj-1ubuntu3
  sun-java6-fonts   6.20dlj-1ubuntu3
  sun-java6-javadb  6.20dlj-1ubuntu3
  sun-java6-jdk     6.20dlj-1ubuntu3
  sun-java6-jre     6.20dlj-1ubuntu3
  sun-java6-plugin  6.20dlj-1ubuntu3

Please provide any additional information below.

I don't know Java, but the droiddraw download said it was a "stand-alone" 
program, which would suggest to me that the pieces listed above should be 
enough to get it going...

There were also several lines like:

Header Chunk. Image width:24 height:50 depth:8 color type:6 compression type:0 
filter type:0 interlace:0

prior to the failure message, but I assume those are irrelevant to the problem.

Original issue reported on code.google.com by dc.loco on 7 Sep 2010 at 3:00

GoogleCodeExporter commented 9 years ago
Hi,

it seems your default java version is not the Sun one.

You can verify and change it with following command
  sudo update-alternatives --config java

cheers
Frank

Original comment by Dietrich.Frank@gmail.com on 7 Sep 2010 at 9:23

GoogleCodeExporter commented 9 years ago
Ah.  Thanks. I thought I'd taken care of that.  Perhaps something else I've 
installed reset it.  (Or, I've just been lucky with other Java apps.)

In any case, that was indeed the fix.  Silly me.

Original comment by dc.loco on 7 Sep 2010 at 9:28

GoogleCodeExporter commented 9 years ago

Original comment by brendan....@gmail.com on 10 Sep 2010 at 1:47