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.
albusaidiAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Tommy BraasConnect With a Mentor Commented:
It would appear that the executable created by Visual Cafe 4 is incompatible with the version of Windows you're using. Visual Cafe 4 is no longer an actively developed product. Your only hope is to see if there might be an update or something available for Visual Cafe 4 addressing your specific problem.
0
 
Tommy BraasCommented:
Which develpment environment are you using?
0
 
albusaidiAuthor Commented:
I used Visual Cafe 4 expert Edition.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
albusaidiAuthor Commented:
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.
0
 
Tommy BraasCommented:
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>
0
 
Mayank SAssociate Director - Product EngineeringCommented:
>> 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.
0
 
albusaidiAuthor Commented:
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).


0
 
Mayank SAssociate Director - Product EngineeringCommented:
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.
0
 
Mayank SConnect With a Mentor Associate Director - Product EngineeringCommented:
0
 
CEHJCommented:
Or if you must compile to an executable and it doesn't have a gui, you can use this:

http://gcc.gnu.org/java/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.