in the file: ${jboss-home}/bin/run.bat, add below command:
set JAVA_OPTS= -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=8787,
server=y, suspend=n %JAVA_OPTS%
Create a new Remote Java Application In Eclipse and set up the connection.
Add java exception breakpoint.
Visit your appli ...
In web.xml
<context-param>
<param-name>a</param-name>
<param-value>test</param-value>
</context-param>
In JSP
<%= application.getInitParameter("a")%>
2008-06-10 02:46:59,469 [ajp-0.0.0.0-8009-2] ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OnRoute].[jsp] - Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.c ...
private Properties getSetting() {
Properties pro = new Properties();
try {
URL setting = this.getClass().getClassLoader().getResource("com/neil/services/testsetting.properties");
pro.load(setting.openStream());
} catch(java.io.IOException iox){
print ...
From: http://www.chinaunix.net/jh/26/137481.html
常常在网上看到有人询问:如何把 java 程序编译成 .exe 文件。通常回答只有两种,一种是制作一个可执行的 JAR 文件包,然后就可以像.chm 文档一样双击运行了;而另一种是使用 JET 来进行 编译。但是 JET 是要用钱买的,而且据说 JET 也不是能把所有的 Java 程序都编译成执行文件,性能也要打些折扣。所以,使用制作可执行 JAR 文件包的方法就是最佳选择了,何况它还能保持 Java 的跨平台特性。
下面就来看看什么是 JAR 文件包吧:
1. JAR 文件包
...
IN THE FILE: /etc/profile
add:
export JAVA_HOME=/usr/local/java/jdk1.6.0_03
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
execute: source /etc/profile
- 16:59
- 浏览 (24)
- 评论 (0)
- 分类: Unix / Linux







评论排行榜