Code
-
안드로이드 코드 작성법Code/Android 2010. 7. 28. 23:39
1. Hello Android 두가지 방법 - 소스코드 직접 수정 public class hi extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView t = new TextView(this); t.setText("Hello Sidcode!!!!"); t.setTextSize(25); setContentView(t); } } - xml 수정 - src/package/hi.java, res/values/String.xml res/layout/main.xml..
-
JAR 실행 파일 생성시 JDBC연결문제 (orcale driver)Code/JAVA 2010. 7. 27. 14:17
1. MANIFEST.MF 생성 (아래 세부 내용) Manifest-Version: 1.0 Main-Class: Schedule.Starter Class-Path: ojdbc6.jar 2. OJDBC6.jar (오라클 드라이버, jvm 6 버젼) 해당 프로젝트의 src와 같은 레벨의 위치에 붙여넣기 3. jar생성 jar파일 생성시 최초단계에서 ojdbc6.jar 도 함께 체크하여 포함해준다 4. MANIFEST.MF 활용 - jar생성시 마지막 부분에서 Use existing manifest from workspace를 체크 - 위에 생성한 manifest.mf 를 지정 - finish를 눌러 생성해주면 오라클 접속 해결
-
맥에 톰켓 설치하기, tomcat for macCode/JAVA 2010. 7. 26. 09:42
Download : Tomcat 1. 압축 해제후 원하는 곳으로 tomcat 디렉토리 복사 이동( 터미널 창에서 ) cp -R ~/Download*/Tomcat ~/ 2. startup.sh 에 추가 /이동된-디렉토리/tomcat/bin/startup.sh export java_home 아래 내용 추가 export CATALINA_HOME="/이동된-디렉토리/tomcat" 3. 실행및 시작 /bin/sh /이동된-디렉토리/tomcat/startup.sh 4. 확인 http://localhost:8080 tomcat이 보이면 완료
-
Java new frame is closed for parent frameCode/JAVA 2010. 7. 9. 20:05
새창 열기 & 닫기 SchduleFrm 코드 public class SchduleFrm extends FramDB{ private SetSchedule newSchdule; // 객체 선언 /* 코드 생략 */ public SchduleFrm() { // TODO Auto-generated constructor stub init(); } public void init(){ /* 코드 생략 */ newSchdule = new SetSchedule(); // 객체 생성 /* 코드 생략 */ newSchdule.newSchedule(); // new Frame 띄워.... } SetSchedule 코드 private Button btn; private Frame f; public void init(){ f =..
-
Android SDK Set for MACCode/JAVA 2010. 7. 6. 11:05
안드로이드 SDK : http://developer.android.com/sdk/index.html 1. Install download_PATH/android-sdk-mac_86/tools/android Packages Update or Install Packages(최초 설치시 패키기들이 나열되어있을 것임) - > Accept All (선택) -> Install 2. ADV set Virtual Devices - > new -> 3. Eclipse Android Development Tool(ADT) Plugin install help -> Install New Software add -> NAME : [Android] Location : [https://dl-ssl.google.com/android/..