Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with the download

 
Daniel Sablosky
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I tried to open the assignment, I received the message: the file you are opening cannot be opened by the default program. It is either corrupted or has an incorrect file type. As a security precaution it is recommended that you cancel the download.



When I tried to open the assignment after I saved it, I got a window labeled Java Virtual Machine Launcher and a message that says:



Failed to load Main-Class manifest attribute from C:\Documents and Settings\Dan\My Documents\zsr1578510 af1.jar



I opened the assignment with the IDE. I was able to read the instructions.html, but the database was just in binary and it didn�t give me any other options to open with.



Please help. Thanks.
 
mohamed sulibi
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi;

as i think the download file ext is .jar , OK ? , so you must open it
winRAR or winzip program, also you can alter the ext to .zip.
and then unzip it, so you found two files , 1- instraction.html and 2- db2db.db files, this database file contain binary data not ascii so you
must open it in ultraedit or any other software that open binary data.

BR;
M_darim.
SCJP, SCJD in progress ..
 
Daniel Sablosky
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much. I was able to get inside the folder with WinZip. However, I was unable to open db-1X2 with MS Access. I received the message: Externable data is not in the expected format. What program should I use to open db-1x2? Any help would be greatly appreciated. Thanks.
 
Abdulvakhid Shoudouev
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm afraid MS Access is useless here.

Try RandomAccessFile:

To read 4 byte numeric fields use raf.readInt() (int is stored using 4 bytes).
For example:

To read 2 byte numeric fields use raf.readShort():
For example:

To read name of the field you can try something like that:


[ January 13, 2008: Message edited by: Abdulvakhid Shoudouev ]
[ January 13, 2008: Message edited by: Abdulvakhid Shoudouev ]
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as i think the download file ext is .jar , OK ? , so you must open it winRAR or winzip program, also you can alter the ext to .zip.
Alternatively you could use the jar program to open the jar file.

Try running "jar" on your command line - you should see all the command line options. One of them is 'x' for extract.

Regards, Andrew
 
rohan tiwari
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded about 5 days back.I did the same thing , used jar on the command line with x for extract.
 
mohamed sulibi
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all;

thunk to you , how can i miss that, jar command.

to open the binary file as is , use EmEditor application or UltraEdit application to see your file, these application provide you a view in Hex
format that make you see your data in binary and in Hex,
please send to me your email and i will send to you these applications.

BR;
SCJP, SCJD in progress B&S ...
 
mohamed sulibi
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all;

thunk to you , how can i miss that, jar command.

to open the binary file as is , use EmEditor application or UltraEdit application to see your file, these application provide you a view in Hex
format that make you see your data in binary and in Hex,
please send to me your email and i will send to you these applications.

BR;
SCJP, SCJD in progress B&S ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic