링크: http://myevan.cpascal.net/articles/2013/synology_nas.html

posted by 뚱2

[Tomcat] Tomcat 5.5. JNDI 설정

WAS/Tomcat 2013. 4. 4. 09:15

 

Server.xml을 수정

<Context docBase="TEST" path="/" reloadable="true" source="org.eclipse.jst.j2ee.server:TEST">
  <Resource auth="Container"
            driverClassName="oracle.jdbc.driver.OracleDriver"
            name="test"
            password="password"
            type="javax.sql.DataSource"
            url="jdbc:oracle:thin:@127.0.0.1:1523:TESTDB"
            username="username"/>        
</Context>

'WAS > Tomcat' 카테고리의 다른 글

[Tomcat] Tomcat 7.0 번역 문서  (0) 2013.07.31
[Tomcat] Tomcat 6.0 JNDI 설정  (0) 2013.07.29
[Tomcat] Class Loader HOW-TO  (0) 2012.10.24
[Tomcat] 버전별 서블릿 스펙  (0) 2012.10.20
[Tomcat] Tomcat 4.1 JNDI 설정  (0) 2012.10.19
posted by 뚱2

링크 : http://wiki.eclipse.org/Eclipse.ini 

참고 : http://wiki.kwonnam.pe.kr/eclipse/config 

 

Eclipse startup is controlled by the options in $ECLIPSE_HOME/eclipse.ini. If $ECLIPSE_HOME is not defined, the default eclipse.ini in your Eclipse installation directory (or in the case of Mac, the Eclipse.app/Contents/MacOS directory) is used.

eclipse.ini is a text file containing command-line options that are added to the command line used when Eclipse is started up. There are many options available, please see here.

Important:

  1. Each option and each argument to an option must be on its own line.
  2. All lines after -vmargs are passed as arguments to the JVM, so all arguments and options for eclipse must be specified before -vmargs (just like when you use arguments on the command-line)
  3. Any use of -vmargs on the command-line replaces all -vmargs settings in the .ini file unless --launcher.appendVmargs is specified either in the .ini file or on the command-line. (doc)


By default, eclipse.ini looks something like this (the exact contents will vary based on operating system and which Eclipse package you have):

-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m

Among other things, this sets the heap space to 40MB initially and a maximum of 512MB, and also specifies a maximum PermGen size of 256MB. A max heap of 512MB might be OK for some users, but it's often necessary to bump that value up for large project sets or when some third-party plugins are installed.

Specifying the JVM

One of the most recommended options to use is to specify a specific JVM for Eclipse to run on. Doing this ensures that you are absolutely certain which JVM Eclipse will run in and insulates you from system changes that can alter the "default" JVM for your system. Many a user has been tripped up because they thought they knew what JVM would be used by default, but they thought wrong. eclipse.ini lets you be CERTAIN.

The following examples of eclipse.ini demonstrate correct usage of the -vm option.

Note the format of the -vm option - it is important to be exact:

  • The -vm option and its value (the path) must be on separate lines.
  • The value must be the full absolute or relative path to the Java executable, not just to the Java home directory.
  • The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.

Here is an example of what eclipse.ini might look like on a Windows system after you've added the -vm argument and increased the maximum heap space:

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Java\JDK\1.6\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1024m

Remember that the exact values will differ slightly depending on operating system and Eclipse package.

-vm value: Windows Example

This is how the -vm argument might look on Windows (your exact path to javaw.exe could be different, of course):

-vm
C:\Java\JDK\1.6\bin\javaw.exe 


This might not work on all systems. If you encounter "Java was started but returned exit code=1" error while starting the eclipse, modify the -vm argument to point to jvm.dll (exact path could be different):

-vm
C:\Development\Java\64bit\jdk1.7.0_09\jre\bin\server\jvm.dll

-vm value: Linux Example

This is how the -vm argument might look on Linux (your exact path to javacould be different, of course):

 -vm
/opt/sun-jdk-1.6.0.02/bin/java

-vm value: Mac OS X Example

On a Mac OS X system, you can find eclipse.ini by right-clicking (or Ctrl+click) on the Eclipse executable in Finder, choose Show Package Contents, and then locate eclipse.ini in the MacOS folder under Contents.

To specify Java 6 for OS X:

 -vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java

For versions of Mac OS X 10.7+ the location has changed to

/Library/Java/JavaVirtualMachines/<''jdk_name_ver''>/Contents/Home/...

To be safer, determine the location for the JDK you intend to use via the utility /usr/libexec/java_home and put this value with .../bin/java appended into the Eclipse.ini file.

posted by 뚱2

링크 : http://kin.naver.com/qna/detail.nhn?d1id=1&dirId=1010406&docId=147593598&qb=a3Qg6rO17Jyg6riwIOyEpOyglQ==&enc=utf8§ion=kin&rank=1&search_sort=0&spq=0&pid=gIMg/c5Y7tVssafJgqCssc--212138&sid=T6OCbM95o08AABCxC2s 

'Network' 카테고리의 다른 글

단일호스트의 부하  (0) 2013.12.24
[Telnet] 해당 포트가 살아 있는지 확인 할때는 telnet 을 이용  (0) 2013.01.06
[KT EGG] 스트롱에그 KWD-B2600  (0) 2012.09.20
[Ping] KT 핑 테스트  (0) 2012.06.30
[Util] Ping Test Easy  (0) 2012.04.06
posted by 뚱2

링크 : http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_other&wr_id=124408 

 

 

 

seanliang-ConvertToUTF8-8ab4487.zip

'IDE/Tool > Sublime Text' 카테고리의 다른 글

[Sublime Text] Sumlime Text OS X Command Line Install  (0) 2015.12.24
posted by 뚱2

링크 : http://taranakite.blog.me/100155110924 


posted by 뚱2

[log4j] log4j 설정

Java/log4j / logback 2012. 7. 5. 15:37

링크 : http://rahxephon.tistory.com/1460 

properties : http://blog.naver.com/zoom7810?Redirect=Log&logNo=50032106915 



링크 : http://slog2.egloos.com/3574039 



Log4jQuickRef.pdf


posted by 뚱2

링크 : http://gyumee.egloos.com/1471952 


posted by 뚱2

개인적으로 if 후 괄도 생성이나 메소드나 함수 선언시 블락이 ㅈ동으로 생성되는것을 싫어한다.

해제 방법


* Java 해제

Window -> Preferences -> Java -> Editor -> Typing -> (Parentheses), [square] and <angle> brakets 해제, 

Window -> Preferences -> Java -> Editor -> Typing -> {Braces} 해제 


* JavaScript 해제

Window -> Preferences ->  JavaScript  -> Editor -> Typing -> (Parentheses), [square] and <angle> brakets 해제, 

Window -> Preferences ->  JavaScript  -> Editor -> Typing -> {Braces} 해제 




posted by 뚱2

Window -> Preferences -> General -> Editors -> TextEditor -> Color and fonts 클릭




posted by 뚱2
개인적으로 Warning과 스펠링 체크 기능을 사용하지 않기에 제거 한다.

1. Window -> Preferences -> General -> Editors -> Text Editors -> Spelling -> [Enable spell checking] 체크해제

2. Window -> Preferences -> Java -> Compiler -> Errors/Warnings -> Unnecessary code -> [Warning]을 [Ignore] 변경

3. Eclipse J2EE 버전을 설치하면 기본이 J2EE 퍼스펙티브 이다. 굳이 J2EE의 기능을 사용하지 않는다면 Java 퍼스펙티브로
   변경하면 성능 향상이 있다.






posted by 뚱2