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 |
|
|
|