Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open a file in binary mode to save byte codes. #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

messi18
Copy link

@messi18 messi18 commented Nov 1, 2012

When I try to compile a bs file(helloworld.bs for example) first and run it with command:
  java helloworld
I get an error:
Exception in thread "main" java.lang.ClassFormatError:
....

Just as the issue:
#9

I opened this file, found generated byte array was saved to a file opened not in binary mode.
This will cause EOL <-> CRLF conversion on Windows. So I fix it.

When I try to compile a bs file(helloworld.bs for example) first and run it with command:
  java helloworld
I get an error:
Exception in thread "main" java.lang.ClassFormatError: 
....

Just as the issue:
headius#9

I opened this file, found generated byte array was saved to a file opened not in binary mode.
This will cause EOL <-> CRLF conversion on Windows. So I fix it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants