3. [고급] Package Decompile :모든 class들을 디컴파일 하고자 할때..( 나처럼..하나의 java파일도 존재하지 않을 경우..아하하하하 --; )
- jad ReadMe.txt 에 있는 내용 Jad accepts the following options:
-a - annotate the output with JVM bytecodes (default: off) -af - same as -a, but output fully qualified names when annotating -clear - clear all prefixes, including the default ones (can be abbreviated as -cl) -b - output redundant braces (e.g., if(a) { b(); }, default: off) -d <dir> - directory for output files (will be created when necessary) -dead - try to decompile dead parts of code (if any) (default: off) -disass - disassemble method bytecodes (no JAVA source generated) -f - output fully qualified names for classes/fields/methods (default: off) -ff - output class fields before methods (default: after methods) -i - output default initializers for all non-final fields -l<num> - split strings into pieces of maximum <num> chars (default: off) -lnc - annotate the output with line numbers (default: off) -lradix<num> - display long integers using the specified radix (8, 10 or 16) -nl - split strings on newline character (default: off) -nocast - don't generate auxiliary casts -nocode - don't generate the source code for methods -noconv - don't convert Java identifiers (default: convert) -noctor - suppress the empty constructors -nodos - do not check for class files written in DOS mode (CR before NL, default: check) -nofd - don't disambiguate fields with the same names by adding signatures to their names (default: do) -noinner - turn off the support of inner classes (default: on) -nolvt - ignore Local Variable Table information -nonlb - don't output a newline before opening brace (default: do) -o - overwrite output files without confirmation (default: off) -p - send decompiled code to STDOUT (e.g., for piping) -pi<num> - pack imports into one line after <num> imports (default: 3) -pv<num> - pack fields with identical types into one line (default: off) -pa <pfx>- prefix for all packages in generated source files -pc <pfx>- prefix for classes with numerical names (default: _cls) -pf <pfx>- prefix for fields with numerical names (default: _fld) -pe <pfx>- prefix for unused exception names (default: _ex) -pl <pfx>- prefix for locals with numerical names (default: _lcl) -pm <pfx>- prefix for methods with numerical names (default: _mth) -pp <pfx>- prefix for method parms with numerical names (default: _prm) -r - restore package directory structrure -radix<num> - display integers using the specified radix (8, 10 or 16) -s <ext> - output file extension (by default '.jad') -safe - generate additional casts to disambiguate methods/fields (default: off) -space - output space between keyword (if/for/while/etc) and expression (default: off) -stat - display the total number of processed classes/methods/fields -t - use tabs instead of spaces for indentation -t<num> - use <num> spaces for indentation (default: 4) -v - display method names being decompiled -8 - convert UNICODE strings into 8-bit strings using the current ANSI code page (Win32 only) -& - redirect STDERR to STDOUT (Win32 only)
All single-word options have three formats:
-o - 'reverses' value of an option -o+ - set value to 'true' or 'on' -o- - set value to 'false' or 'off'
You can specify the options you want to be set by default in the environment variable JAD_OPTIONS. For example:
2. JAD Download ( jadnt158.zip-Jad.exe- )
: http://www.kpdus.com/jad.html
>Jad 1.5.8g for Windows 9x/NT/2000 on Intel platform (238600 bytes). 페이지 중간정도에 있다
2. Setting SWT : File > Import > General > Exiistiong Projects into Workspace - select root directory : 프로젝트workspace - select archive file : 다운받은 파일
3. Create Project 1. New > Java Project > HelloWorldSWT 2. properties 설정 : 생성된 프로젝트 > properties > Java Build Path > Projects > Add : org.eclipse.swt 3. Class 생성 : 생성된 프로젝트 > New > Class > public static voie main(STring[] args) 선택. 생성.
jxl.read.biff.BiffException: Unable to recognize OLE stream
2005. 12. 1 ?? 2:28
hi,
I am trying to dynami ally generate Excel sheet using Java code.
Wht I did was I generated the numbers in NOTEPAD and rename it with .xls.
Now when I am trying to read the .xls file using JExcelApi..
I am getting the following error
jxl.read.biff.BiffException: Unable to recognize OLE stream
Can any one tell me what should I do..to over come it.....
If I have to read the filr from Notepad it self.
Vijay
Re: jxl.read.biff.BiffException: Unable to recognize OLE stream
2006. 6. 13 ?? 6:11 (reply 1 of 1)
the file that you create isn't in excel format, you can generate the numbers in notepad, separated by comas (,) and save the file as comma separated values (.csv) and open this file with excel and save as theNameWhatYouWant.xls (select the format in de combo box)
Re: jxl.read.biff.BiffException: Unable to recognize OLE stream
2008. 6. 12 ?? 3:23 (reply 2 of 3) (In reply to #1 )
Hi ,,
I am also getting the same error message ..
What i have done is i have read a xls file from the browser and write it to a specific location and then trying to read it by
Workbook but it is giving me this error............The below is the part of my code
ServletInputStream in = request.getInputStream();
byte[] line = newbyte[512];
int i = in.readLine(line, 0, 512);
int boundaryLength = i - 2;
String boundary = new String(line, 0, boundaryLength);
while (i != -1) {
String newLine = new String(line, 0, i);
if (newLine.startsWith("Content-Disposition: form-data; name=\"")) {
//Some more lines
//this is the file content
i = in.readLine(line, 0, 512);
i = in.readLine(line, 0, 512);
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
newLine = new String(line, 0, i);
while (i != -1 && !newLine.startsWith(boundary)) {
buffer.write(line, 0, i);
i = in.readLine(line, 0, 512);
newLine = new String(line, 0, i);
}
// save the uploaded file
RandomAccessFile f = new RandomAccessFile(savePath + filename, "rw");
byte[] bytes = buffer.toByteArray();
f.write(bytes, 0, bytes.length - 2);
f.close();
}
}
i = in.readLine(line, 0, 512);
} // end while
Uploadfilepath = savePath + filename;
WorkbookSettings ws = new WorkbookSettings();
Workbook workbook = Workbook.getWorkbook(new java.io.File(savePath+"\\" + filename),ws);//Here the error is