2016年8月2日火曜日
2016年7月21日木曜日
POIを使ってみた ーー>ハマった!!
warファイルデブロイ時、
Caused by: java.lang.NoClassDefFoundError: org/apache/poi/openxml4j/exceptions/InvalidFormatException
1) プロジェクトを右クリク
2)プロパティ
3)javaのビルドパス
4) 順序およびエクスポート
5)POIライブラリを2番目へ
2018/3/6更新
ここからダウンロード
https://poi.apache.org/download.html
poi-bin-3.17-20170915.tar.gz (20.11 MB, signature (.asc))
~/eclipse-workspace/Librariesに展開
~/eclipse-workspace/Libaries/poi-3.17$ ls -l
合計 11684
-rw-r--r-- 1 takaha-m takaha-m 29950 9月 9 06:04 LICENSE
-rw-r--r-- 1 takaha-m takaha-m 1222 9月 9 06:04 NOTICE
drwxrwxr-x 17 takaha-m takaha-m 4096 3月 6 10:10 docs
drwxrwxr-x 2 takaha-m takaha-m 4096 3月 6 10:10 lib
drwxrwxr-x 2 takaha-m takaha-m 4096 3月 6 10:10 ooxml-lib
-rw-r--r-- 1 takaha-m takaha-m 2701171 9月 9 06:17 poi-3.17.jar
-rw-r--r-- 1 takaha-m takaha-m 374509 9月 9 06:17 poi-examples-3.17.jar
-rw-r--r-- 1 takaha-m takaha-m 31218 9月 9 06:17 poi-excelant-3.17.jar
-rw-r--r-- 1 takaha-m takaha-m 1479023 9月 9 06:17 poi-ooxml-3.17.jar
-rw-r--r-- 1 takaha-m takaha-m 5924600 9月 9 06:17 poi-ooxml-schemas-3.17.jar
-rw-r--r-- 1 takaha-m takaha-m 1390360 9月 9 06:17 poi-scratchpad-3.17.jar
eclipse
ファイル→新規→javaプロジェクト
プロジェクト名:PoiSample
実行環境JREの使用:javaSE-1.8
ソースおよびクラス・ファイルのフォルダーを個別に作成
次へ
ライブラリ
外部JARの追加: poi-3.17/poi3.17.jar
外部JARの追加: poi-ooxml-3.17.jar
2018/3/6更新
ここからダウンロード
https://poi.apache.org/download.html
poi-bin-3.17-20170915.tar.gz (20.11 MB, signature (.asc))
~/eclipse-workspace/Librariesに展開
~/eclipse-workspace/Libaries/poi-3.17$ ls -l
合計 11684
-rw-r--r-- 1 takaha-m takaha-m 29950 9月 9 06:04 LICENSE
-rw-r--r-- 1 takaha-m takaha-m 1222 9月 9 06:04 NOTICE
drwxrwxr-x 17 takaha-m takaha-m 4096 3月 6 10:10 docs
drwxrwxr-x 2 takaha-m takaha-m 4096 3月 6 10:10 lib
drwxrwxr-x 2 takaha-m takaha-m 4096 3月 6 10:10 ooxml-lib
-rw-r--r-- 1 takaha-m takaha-m 2701171 9月 9 06:17 poi-3.17.jar
-rw-r--r-- 1 takaha-m takaha-m 374509 9月 9 06:17 poi-examples-3.17.jar
-rw-r--r-- 1 takaha-m takaha-m 31218 9月 9 06:17 poi-excelant-3.17.jar
-rw-r--r-- 1 takaha-m takaha-m 1479023 9月 9 06:17 poi-ooxml-3.17.jar
-rw-r--r-- 1 takaha-m takaha-m 5924600 9月 9 06:17 poi-ooxml-schemas-3.17.jar
-rw-r--r-- 1 takaha-m takaha-m 1390360 9月 9 06:17 poi-scratchpad-3.17.jar
eclipse
ファイル→新規→javaプロジェクト
プロジェクト名:PoiSample
実行環境JREの使用:javaSE-1.8
ソースおよびクラス・ファイルのフォルダーを個別に作成
次へ
ライブラリ
外部JARの追加: poi-3.17/poi3.17.jar
外部JARの追加: poi-ooxml-3.17.jar
configure作成
#
# 1.サンプルソース作成
#
cat <<__EOF__> a.c
#include <stdio.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
int main(int argc, char *argv[])
{
fprintf(stdout, "1\n");
fprintf(stderr, "2\n");
return 0;
}
__EOF__
# 1.サンプルソース作成
#
cat <<__EOF__> a.c
#include <stdio.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
int main(int argc, char *argv[])
{
fprintf(stdout, "1\n");
fprintf(stderr, "2\n");
return 0;
}
__EOF__
#
# 2.雛形Makefile.in作成
#
cat <<__EOF__> Makefile.in
#
# Makefile
#
CC = @CC@
DEFS = @DEFS@
LIBS = @LIBS@
SRCS = a.c
OBJS = \$(SRCS:.c=.o)
PROG = a
all: \$(PROG)
\$(PROG): \$(OBJS)
\$(CC) -o \$@ \$(OBJS) \$(LIBS)
.c.o:
\$(CC) \$(DEFS) -c -o \$@ \$<
clean:
rm -f \$(OBJS)
__EOF__
#
# 3.autoscanを実行してconfigure.in 作成
#
autoscan
mv configure.scan configure.in
# 2.雛形Makefile.in作成
#
cat <<__EOF__> Makefile.in
#
# Makefile
#
CC = @CC@
DEFS = @DEFS@
LIBS = @LIBS@
SRCS = a.c
OBJS = \$(SRCS:.c=.o)
PROG = a
all: \$(PROG)
\$(PROG): \$(OBJS)
\$(CC) -o \$@ \$(OBJS) \$(LIBS)
.c.o:
\$(CC) \$(DEFS) -c -o \$@ \$<
clean:
rm -f \$(OBJS)
__EOF__
#
# 3.autoscanを実行してconfigure.in 作成
#
autoscan
mv configure.scan configure.in
#
# 4.autoheaderを実行してconfig.in 作成
#
autoheader
# 4.autoheaderを実行してconfig.in 作成
#
autoheader
#
# 5.autoconfを実行してconfigure 作成
#
autoconf
# 5.autoconfを実行してconfigure 作成
#
autoconf
#
# 6.configure実行してMakefile 作成
#
./configure
# 6.configure実行してMakefile 作成
#
./configure
#
# 7.コンパイル
#
make
# 7.コンパイル
#
make
2016年7月19日火曜日
2016年7月14日木曜日
メトリックを変更する事で、デフォルトルートを変更。 default route
自動メトリックをOFFにして、手動でMetricを設定
2016年6月13日月曜日
2016年6月9日木曜日
シリアル変更
# mount -o rw,remount rootfs /
# vi /default.prop
#
# ADDITIONAL_DEFAULT_PROPERT
#
media.settings.xml=/etc/medi
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
persist.service.adb.enable=0
ro.serialno=EX841011A00595 ←追加
# vi /default.prop
#
# ADDITIONAL_DEFAULT_PROPERT
#
media.settings.xml=/etc/medi
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
persist.service.adb.enable=0
ro.serialno=EX841011A00595 ←追加
# mount -o ro,remount rootfs /
登録:
投稿 (Atom)
NEXTJS PWA化
$ cd frontend $ npm install @ducanh2912/next-pwa $ vi next.config.ts<<__EOF__ import withPWAInit from "@ducanh2912/next-pwa"...
-
■Rocky Linux8 ORACLE RPM インストール # curl -o oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL8/ap...
-
$ alias sqlplus='rlwrap -pRed -if /usr/local/opt/rlwrap-extensions/sqlplus sqlplus64' $ sqlplus user/password@192.168.1.xxx:1521/sid...
-
【タイムゾーンと日本語】 $ sudo timedatectl set-timezone Asia/Tokyo $ sudo timedatectl $ sudo localectl set-locale LANG=ja_JP.utf8 $ sudo localectl 【プロキ...