CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 java.lang.NoClassDefFoundError + awt Package

Print topic Send  topic

Author Message
Dilip
Posted: 11/01/2004, 10:29 PM

Hi,
Can anyone help me to solve this problem. I am using awt package to get the resolution of screen. It gives me an error <java.lang.NoClassDefFoundError>

<%@ page import="java.awt.*" %>
<%
try
{
if ((int)Toolkit.getDefaultToolkit().getScreenSize().getWidth() > 800)
{
out.println("I am inside the if loop");
}
else
{
out.println("I am inside the else loop");
}
}
catch(java.lang.Throwable exception)
{
out.println(exception);
}
%>

Thanks,
Dilip
matheus
Posted: 11/03/2004, 3:31 AM

Java has to be started with the argument -Djava.awt.headless=true.

Here's a help. Watch Unix with X Server and Headless Unix and PJA.
http://cocoon.apache.org/2.0/installing/

_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
---------------------------------------
Sent from YesSoftware forum
http://forums.codecharge.com/
matheus

Posts: 386
Posted: 11/03/2004, 3:32 AM

Java has to be started with the argument -Djava.awt.headless=true.

Here's a help. Watch Unix with X Server and Headless Unix and PJA.
http://cocoon.apache.org/2.0/installing/

_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.