Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Problem with the download

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ...
 
If you want to look young and thin, hang around old, fat people. Or this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic