4 Replies Latest reply on Aug 29, 2007 9:21 AM by kleber.kiefer

    ERROR: java.lang.InternalError

    kleber.kiefer Level 1
      Please, help me!!!

      This error occurs when I try to compile a Flex mxml file.
      Today I installed the AIR BETA directly of the site of the Adobe.

      ==============================================================================
      Error: An error occurred because there is no graphics environment available. Please set the headles
      s-server setting in the Flex configuration file to true.

      java.lang.InternalError: An error occurred because there is no graphics environment available. Plea
      se set the headless-server setting in the Flex configuration file to true.
      at flash.graphics.images.ImageUtil.getImage(ImageUtil.java:44)
      at flash.graphics.images.LosslessImage.<init>(LosslessImage.java:31)
      at flex2.compiler.media.LosslessImageTranscoder.getImage(LosslessImageTranscoder.java:30)
      at flex2.compiler.media.ImageTranscoder.doTranscode(ImageTranscoder.java:46)
      at flex2.compiler.media.AbstractTranscoder.transcode(AbstractTranscoder.java:126)
      at flex2.compiler.as3.EmbedUtil.transcode(EmbedUtil.java:184)
      at flex2.compiler.as3.EmbedUtil.transcode(EmbedUtil.java:93)
      at flex2.compiler.as3.EmbedEvaluator.generateSource(EmbedEvaluator.java:292)
      at flex2.compiler.as3.EmbedEvaluator.generateSources(EmbedEvaluator.java:361)
      at flex2.compiler.as3.EmbedEvaluator.evaluate(EmbedEvaluator.java:81)
      at macromedia.asc.parser.ClassDefinitionNode.evaluate(ClassDefinitionNode.java:86)
      at flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:330)
      at macromedia.asc.parser.StatementListNode.evaluate(StatementListNode.java:36)
      at flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:910)
      at flex2.compiler.as3.EmbedEvaluator.evaluate(EmbedEvaluator.java:269)
      at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:63)
      at flex2.compiler.as3.EmbedExtension.parse1(EmbedExtension.java:39)
      at flex2.compiler.as3.Compiler.parse1(Compiler.java:339)
      at flex2.compiler.mxml.ImplementationCompiler.parse1(ImplementationCompiler.java:153)
      at flex2.compiler.mxml.Compiler.parse1(Compiler.java:100)
      at flex2.compiler.API.parse1(API.java:2158)
      at flex2.compiler.API.parse1(API.java:2111)
      at flex2.compiler.API.batch2(API.java:319)
      at flex2.compiler.API.batch(API.java:1025)
      at flex2.compiler.API.compile(API.java:1211)
      at flex2.compiler.API.compile(API.java:1114)
      at flex2.tools.Compiler.main(Compiler.java:222)
      ==============================================================================

      Thanks!!!
      Kleber