Expand|Select|Wrap|Line Numbers
- class foobar {
- int x = 0;
- public void foobar() { }
- }
- public class mytest {
- public static void main(String[] args) {
- foobar blah = new foobar();
- }
- }
Expand|Select|Wrap|Line Numbers
- <%
- class foobar {
- int x = 0;
- public void foobar() { }
- }
- foobar blah = new foobar();
- %>
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: foobar
mytest.doGet(datacenter_matrix.java:160)
javax.servlet.http.HttpServlet.service(HttpServlet .java:690)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
Expand|Select|Wrap|Line Numbers
- import java.io.*;
- import java.util.*;
- import javax.servlet.*;
- import javax.servlet.http.*;
- class foobar {
- int x = 0;
- public void foobar() { }
- }
- public class mytest extends HttpServlet {
- public void doGet(HttpServletRequest req, HttpServletResponse res)
- throws ServletException, IOException {
- foobar blah = new foobar();
- }
- }