• Post Reply Bookmark Topic Watch Topic
  • New Topic

serializible interface  RSS feed

 
Dana Horst
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys! I have two classes, which suppose generate the document "data.bin". i have tried to run the code in eclipse and sap netweaver dev studio, but havent got a desired result. what could be a problem? can anyone try to run those codes within yours ide? many thanks!

code 1:



code 2:

 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dana Horst wrote:Hello guys! I have two classes, which suppose generate the document "data.bin". i have tried to run the code in eclipse and sap netweaver dev studio, but havent got a desired result.

Nobody here will do the work for you, but we can answer specific questions. What problem do you have? What would be a desired result? What is the actual result? How do the two differ?
 
Dana Horst
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Steve,
when i run 2 codes the bin document ("data.bit") in Package view supposed to be generated, which can be opened with the text editor. I only get the "writing is done" in console.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dana Horst wrote:... which can be opened with the text editor.

When you try to open that file with a text editor, you'll see "garbage". The file is stored in a binary format, not something that you can view with a text editor.
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dana Horst wrote:Dear Steve,
when i run 2 codes the bin document ("data.bit") in Package view supposed to be generated, which can be opened with the text editor. I only get the "writing is done" in console.

And as far as the file appearing in the package view: that depends on a couple of things, such as the active directory for the application that is running. You assume that it is someplace that would be in the package hierarchy but you can't be sure, you need to know exactly where it is being saved. It also depends on the IDE identifying the file, knowing it is part of the package structure, and refreshing its view. The IDE might not do that, you may need to refresh the view manually or specifically import the file.
 
Dana Horst
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!