블로그 이미지
올해목표 // 10월 어학연수 떠나자~ 자수씨

카테고리

전체글 (1457)
Brand New! (28)
주절주절 (213)
MOT (11)
해외쇼핑 (49)
쇼핑노트 (150)
취미생활 (94)
iPhone (4)
Eclipse (121)
Google (83)
Spring (31)
JAVA (176)
JavaScript (59)
WEB (49)
Database (20)
OS (26)
Tools (8)
Tips (26)
IT정보 (1)
Book (21)
Programming (37)
외부행사 (43)
주변인들 (17)
여행노트 (60)
학교생활 (30)
회사생활 (52)
사회생활 (5)
외국어공부 (12)
잡동사니 (30)
Total
Today
Yesterday
 
03-29 02:17
 

달력

« » 2024.3
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
 

최근에 올라온 글

최근에 달린 댓글

Applet... RuntimePermission...

JAVA / 2010. 6. 28. 14:25

전략적으로 애플릿을 이용하여 내부 리소스를 처리하려 하였으나...

java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
 at java.security.AccessControlContext.checkPermission(Unknown Source)
 at java.security.AccessController.checkPermission(Unknown Source)
 at java.lang.SecurityManager.checkPermission(Unknown Source)



signjar 를 이용하여 인증까지 처리하였으나... applet 만으로는 처리가 안되나 봅니다.

구글링을 해보니 Microsoft SDK for Java 4.0 를 이용하라고 하는데 cab으로 만들기에는 좀 귀찮고...
웹 스타트로 처리를 해야할 것 같습니다... (일이 점점 커지네요...)

자바스크립트와 통신을 해야하므로 다시 애플릿으로...

쩝...

Posted by 자수씨
, |
출처: http://jcp.org/aboutJava/communityprocess/mrel/jsr056/index2.html

웹 스타트로 어플리케이션을 개발하면서 오프라인 모드로 만들까 했는데

알아서 제공을 해주니 이렇게 좋을 수가~~

하지만 영어라서 해석이 필요하네요;;;;


일단 설명은 다음과 같습니다. (해석 준비...)

offline-allowed element: The optional offline-allowed element indicates if the application can work while the client system is disconnected from the network. The default is that an application only works if the client system is online
뭐 대충 네트워크가 연결안되도 클라이언트에서 실행 가능하게 한다라는 뜻이겠죠~

shortcut element: The optional shortcut element can be used to indicate an application's preferences for desktop integration. The shortcut element and its sub-elements provide hints that the JNLP Client may or may not use. The shortcut element can contain the optional online attribute, and the two optional sub-elements desktop and menu.
하위 element를 통해서 jnlp client의 바로가기를 만들지를 결정한다라는 뜻인 듯...

online attribute: The optional online attribute can be used in a shortcut element to describe the application's preference for creating a shortcut to run the application online or offline. If the value is "true" the application prefers to create a shortcut that will launch the application online. If the value is "false" the application prefers to create a shortcut that will launch the application offline.
온라인용으로 만들지 오프라인용으로 만들지를 결정한다는 이야기 인가.. 흠흠 역시 해봐야 알 듯....

desktop element: The optional desktop element can be used to indicate an application's preference for putting a shortcut on the users desktop.
바탕화면에 만들지를 결정???
 
menu element: The optional menu element can be used to indicate an application's preference for putting a menu item in the users start menus. The menu element can have a sub-menu attribute.
시작 - 프로그램에서 보일 메뉴???? 이것도 해봐야 알겠습니다.

submenu attribute: The optional submenu attribute can be used to indicate an application's preference for where to place the menu item, and can contain any string value.
하위 메뉴의 보여질 이름인듯

The shortcut element provides hints to the JNLP Client which may or may not be used.


뭐 대충 알았으니 이제 실전에 돌입해야 겠네요!!

Posted by 자수씨
, |
그냥 로컬에서 프로그램을 실행시켰을 때는 javaw.exe 프로세스가 잘 죽었는데

Java Web Start를 통해서 띄우게 되면 javaw.exe 프로세스가 죽지 않는다.

무언가 문제가 있는 상황...

Display 랑 Shell 들도 공유 안하고 잘 썼다고 생각했는데...

땜빵식이긴 하지만 이렇게 하면 문제는 해결됩니다.



흠;;; 먼가 맘에 들지는 않지만~~

급하니깐 고고싱!!!

Posted by 자수씨
, |

회사 프로젝트로 로컬편지함을 만들고 막상 팀원을에게 테스트를 하려고 보니

별의별 익셉션들이 떨어지고 문제가 좀 많이 있었습니다.

문제는 Java Web Start가 꼬인부분도 있었고 인증서가 꼬인부분도 있었습니다.

구글을 뒤져봐도 답은 안나오는 상태...

회사에서 친한 누나와 이야기를 나누던 중에 해결 방법을 찾았습니다.


위 문제로 고민이 많았었는데 누나와 아저씨의 도움으로 해결하였습니다. ㅋㄷ

만세~

Posted by 자수씨
, |

signjar로 인증처리까지 했는데 저런 오류가 뜬다면...

이미 다른 인증이 있기 때문입니다.

예를 들어서 eclipse에 jface jar를 직접만든 프로젝트에서 웹스타트를 통해

배포한다면 문제가 발생할 것입니다.

해당 jar원본의 압축을 풀어서 META-INF 폴더를 보게되면

ECLIPSE.RSA와 ECLIPSE.SF 파일이 있는데 이걸 지우고 다시 jar로 묶은 후에

signjar로 인증처리를 하고 webstart로 올리면 문제가 해결될 것입니다~~

-------------
추가적으로... plugin 속성을 가지고 있는 것을 처리하려면 META-INF 폴더는 빼고

jar로 묶습니다.

Posted by 자수씨
, |

글 보관함

최근에 받은 트랙백