본문 바로가기
728x90

java24

Could not create the java virtual machine 이클립스 실행 시 위와같이 에러가 발생 시 1. JAVA JDK 설치 여부 확인 설치가 안되어 있다면, 아래 경로에서 다운로드 후 설치 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 2. eclipse.ini에 vm JAVA JDK 경로 추가 -vm C:\Program Files\Java\jdk1.x.0_xx\bin\javaw.exe 2017. 4. 10.
Getting Gradle error “Could not reserve enough space for object heap” https://services.gradle.org/distributions/ Right click on start-button and open "System"Go to Advanced system settings on the left sideClick the button "Environment Variables ..."In System Variables, click "New..."New Variable Name: _JAVA_OPTIONSNew Variable Value: -Xmx1024MClick OKRestart Window Command or Program Gradle will detect this option as below._JAVA_OPTIONS=-Xmx1024M 2016. 9. 15.
JavaScript Progress Bar JavaScript Progress Bar Click Me JavaScript Progress Bar Click Me 2016. 3. 3.
[JAVA] static키워드 바로알기 자바를 한번쯤 공부해본사람이라면 static키워드를 모르지는 않을 것입니다.하지만, 바르게 알고 있는 사람들은 그리 많지 않습니다. 자바경력자를 면접볼 때 static키워드에 대해서 질문하곤 합니다. 면접관 : static키워드에 대해서 설명해보세요. 응시자 : static키워드를 쓰면, 객체를 생성하지 않고도 변수나 함수를 사용할 수 있습니다. 면접관 : 왜 static키워드를 쓰나요? 응시자 : 객체를 생성하지 않아도 되니까 편리하고 속도도 빠릅니다. 면접관 : 그렇다면 모든 변수와 함수에 static을 붙이는 것이 좋겠네요? 응시자 : 가능한한 static을 붙이는 것이 좋다고 생각합니다. 면접관 : 어떤 경우에 static을 붙일 수 있고, 어떤 경우에 static을 붙일 수 없습니까? 응시자 :.. 2015. 4. 9.
java was started but returned exit code=13 원인설치된 JRE과 Eclipse의 시스템아키텍처가 달라서 생기는 문제로 브라우저를 통해 JRE를 업데이트할 때 발생 해결http://java.com/ko/download/manual.jsp 에 들어가서 64bit를 설치 2015. 3. 20.
Detecting Process EXIT(Finished) in Java If you develop a more complex system, the chances of being a heterogeneous are pretty big. So if you develop a system in Java, but you have to integrate all ready build parts with other technology, the most desirable option is some kind of service oriented architecture. But when this is not available you will simply rely on an external process. To start an external process is quite simple. Just .. 2015. 3. 19.
[Java] How to convert byte array to char array in java? public static char[] byteToCharArray(byte [] data){ char[] chars = new char[data.length/2]; for (int i = 0; i < chars.length; i++) chars[i] = (char) (((data[(i*2)] & 0xff) 2015. 3. 11.
자바 한글 인코딩 변환 / Java Korean Encoding & Decoding 자바 한글 인코딩 변환 샘플 String word = "자바 한글 인코딩 변환 샘플"; // UTF-8 System.out.println("utf-8 -> euc-kr : " + new String(word.getBytes("utf-8"), "euc-kr")); System.out.println("utf-8 -> ksc5601 : " + new String(word.getBytes("utf-8"), "ksc5601")); System.out.println("utf-8 -> x-windows-949 : " + new String(word.getBytes("utf-8"), "x-windows-949")); System.out.println("utf-8 -> iso-8859-1 : " + new String(.. 2015. 3. 10.
[JAVA] How to maximize a JFrame through code? JAVA JFrame 최대화 하기 setExtendedState(getExtendedState()|JFrame.MAXIMIZED_BOTH ); Or public class Main extends JFrame implements INotiEvent { final Main mainFrame = new Main(); mainFrame.setExtendedState(mainFrame.getExtendedState()|JFrame.MAXIMIZED_BOTH ); 2015. 3. 4.
[JAVA] How do I set or change JTable column width? private JScrollPane getExceptionDBTable(){ // ScrollPane for Table JScrollPane mExceptionListScroll = new JScrollPane(); // Table final JTable mTable = new JTable(); mTable.setBackground(Color.WHITE); mTable.setFillsViewportHeight(true); mTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); mTable.setBackground(Color.WHITE); mExceptionListScroll.setViewportView(mTable); mExceptionListScroll.setBound.. 2015. 2. 25.
[JAVA/Android] Array constants can only be used in initializers [Problem] String[] command = new String[6]; if(.....) { command = {"adb", "-s", serial, type, inputfile, outputfile}; } >> Array constants can only be used in initializers [Solution] String[] command; if(.....) { command = new String[]{"adb", "-s", serial, type, inputfile, outputfile}; } 2015. 2. 25.
안드로이드 언어코드와 지역코드 / Android String Resources 언어코드는 ISO-639-1에 정의된 두자리 알파벳이며, 지역코드는 ISO-3166-alpha-2에 정의된 두자리 코드이다.이때, 지역코드는 지역코드 구분을 위해 앞에 r 문자를 붙이며, 언어코드 없이 지역코드만 사용은 불가능하다. 언어 코드 목록지역코드는 보통 지역을 기준으로 구분되어 있기에, 보통 국가별로 구분되어 있고 ~제도처럼 지역 자체로 구분되어있는 경우도 있다. aa Afar ab Abkhazian ae Avestan 아베스타어 af Afrikaans 아프리칸스어 ak Akan am Amharic 암하라어 an Aragonese ar Arabic 아랍어 as Assamese av Avaric ay Aymara 아이마라어 az Azerbaijani ba Bashkir be Belarusian 벨.. 2014. 12. 31.
728x90