1, Process&Threads Most implementations of the Java virtual machine run as a single process. Threads exist within a process — every process has at least one. Threads share the process's resources, including memory and open files. This makes for effic…
For every type of object, the Java virtual machine instantiates an immutable instance of java.lang.Class which provides methods to examine the runtime properties of the object including its members and type information. Class also provides the abilit…
Good about Java: friendly syntax, memory management[GC can collect unreferenced memory resources], object-oriented features, portability. Stack Stores method invocations, local variables(include object reference, but the object itself is still stored…
前几天发现tomcat提示 Could not initialize class sun.awt.X11GraphicsEnvironment 问题.以为不验证,就没太关注,今天发现,有同事提示了个bug,验证码刷不出来,查看日志,报了很多这个个错误.才意识到问题的严重. 网上找了找资料:共两种解决方案 1:http://love-love-l.blog.163.com/blog/static/21078304200908595214/ 2:http://tcrct.iteye.com/blo…
tomcat工程中创建二维码失败.抛出异常Can't connect to X11 window server using 'localhost:10.0' as the value of th 因为在linux系统中,创建图形画布失败.linux系统图形控件未启动导致的. 解决方法: java启动参数中添加 -Djava.awt.headless=true / 编辑tomcat目录下的bin/catalina.sh文件, 类似: exec "$_RUNJDB" "$LOGG…