---
title: "web应用在linux 显示验证码"
author: "jjs_love"
date: "2009-03-24T21:39:07Z"
tags: ["Java", "Linux", "Web", "Websphere", "XP"]
slug: "web-linux"
draft: false
lastmod: "2009-03-24T21:40:33Z"
id: 354480
url: "https://jjs-love.iteye.com/blog/354480"
---

在门户项目当中做了一个显示验证码的程序,xp 正常显示,但在linux 系统当中不能显示出来,处理方式如下:

 

方法一:Application servers&gt;Websphere Portal&gt;ProcessDefinition&gt;Java Virtual Machine&gt;Custom Properties

java.awt.headless=true

 

方法二:设置通用JVM的参数-Djava.awt.headless=true