Link to home
Start Free TrialLog in
Avatar of albusaidi
albusaidi

asked on

ErrorMessage but I don't know why !

Hi ..
I write a small program in Java and when I produce execution file *.exe and try to run it is give me this windows message.
==========================
Application Error
the instruction at "0x77f67f26"  referenced memory at "0x000000000" . the memory could not be written.
==========================

by the way if I run the program in the developer tool I will not get any error.but if I produce execution file ( to get stand alone application) and run it I will get this message.
Avatar of Tommy Braas
Tommy Braas
Flag of Australia image

Which develpment environment are you using?
Avatar of albusaidi
albusaidi

ASKER

I used Visual Cafe 4 expert Edition.
I tried now Jbulilder 5 but I don't now how to produce *.exe file ....
usually when you execute the project you produce the exeutable file but in the J bulider is not preduce any executable file.
any one now ... may the problem on the message from the tool  I don't now.
I would suggest that you try to execute the compiled java classes before you do anything else.

Compile your java source code files by using javac from the command line:
javac <your java source file>

The you can run the class containing your main() method by:
java -cp . <your main class here>
Avatar of Mayank S
>> the instruction at "0x77f67f26"  referenced memory at "0x000000000" . the memory could not be written

This sounds more like an M$ Windoce bug. It happens very often on many systems as far as I have seen - generally happens after you have some upgrades (hardware or software installation, etc) - because some versions of it don't seem to adapt well to changes in configuration, etc.
As I mention before If I run this programe in Visual Cafe or JBuilder the program will work but when I try to make *.exe file ( stand alone Application) the message will appear when I execute this file(exe).


Yes, but what I'm trying to tell you is - that message also comes in various other applications as well and is majorly an OS bug - because it tries to access an illegal memory location while paging.
ASKER CERTIFIED SOLUTION
Avatar of Tommy Braas
Tommy Braas
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or if you must compile to an executable and it doesn't have a gui, you can use this:

http://gcc.gnu.org/java/