hey all,
i am working on a Java project using JBuilder.. when i build my code its fine, but when comes to run, it doesnt run and displays the following logs.. i think there is JDK conflict..
actually when i build it, it creates a jar file which is totally fine (i can confirm that because i use that jar file in another project)
any idea on how to get around this? maybe i could try to run it from the command...
User Profile
Collapse
-
Java project problems at the startup of run
-
i found how to set the path, but didnt help either, still getting same error. googled the problem and it says although it finds the file but if not able to load then it gives the same error. -
UnsatisfiedLinkError
Hello,
i have a java project which builds fine but when i come to run it the following error is displayed:
java.lang.Unsat isfiedLinkError : no FileSystemDll in java.library.pa thjava.lang.Uns atisfiedLinkErr or: no FileSystemDll in java.library.pa th
i guess the resolution is to get FileSystemDll added to java.library.pa th, correct? if yes, how can i find java.library.pa th and set it again?
any... -
How to convert a string to a PWCHAR
How can I convert a string (or a wstring) to a PWCHAR?
Any help?Code:PWCHAR temp; wstring wstr; // Basically I want to do // temp = wstr // but casting didnt work // temp = PWCHAR (wstr) // error C2440: 'type cast' : cannot convert from 'std::wstring' to 'PWCHAR'
thanks -
Sorting a map
i have 2 maps like below:
they are actually pretty same maps, just key and value are swaped.Code:typedef std::map<std::string, ObjA> MapA; typedef std::map<ObjA, std::string> MapB; MapA mapa; MapB mapb;
i want to find out whether or not a value (which is string) is in the mapB like this
...Code:ObjA function (const char * value){ for (MapB::const_iterator it = -
What is the difference between free and delete?
Say we have a pointer like below
does it matter if you chose delete or free to avoid memory leaks?Code:Test * abc = GetValue(); // do something free (abc); // or delete abc;
thanks -
How to access to a different project in VS2003?
I have several projects for a single application. I want to access from project A to some class in project B. How do I do that? How do I let the code know the paths etc? -
Static member
I have static member in a class, say class A, in class A i have a static bool attribute xyz. Then I have another class, class B. In class B, I wanna set A::xyz=true;
but compiler gives 2 errors:
error LNK2001: unresolved external symbol "private: static bool...
fatal error LNK1120: 1 unresolved externals
Has anyone got any idea how to get around this? -
The address doesnt differentiate from one execution to the next. I know best way is not to return this value which seems non-trivial.
so im still interested in learning how to check the address of pointer?
...Code:if (xyz ==0xfeeefeee) { //do something }Leave a comment:
-
Thanks RedSon,
another quick question
is there a way to check the address of a pointer? something like:
is there a special meaning for the address 0xfeeefeee as it crashes the program for me there?...Code:if (xyz == 0xfeeefeee) // do something
Leave a comment:
-
is there a way to check the address value of a pointer?
if (xyz == 0xfeeefeee)
// do something
i wonder if there is such a thing, if so, what would the syntax for the if statement above?
thanks!Leave a comment:
-
-
How to check an address of a pointer?
Can anyone advise on this please?
I have got a pointer like this
abc is initialized somewhere publicly. Sometimes abc->Caller() returns 0xfeeefeee value and which will cause xyz to crush a later line.Code:APerson* xyz = NULL; xyz = abc->Caller();
So what I would like to is, I want to
...Code:if (xyz = 0xfeeefeee)
Leave a comment:
-
how to open a crash dump in Visual Studio
Can anyone advise on how to open a crash dump in Visual Studio? -
the code is really all over the place.. but here is the most relevant part from the header file.
xyz must...Code:class APerson { public: APerson(Person* thePerson); virtual ~APerson(); void SetPerson(Person* thePerson) { xyz = thePerson; } private: Person* xyz;Leave a comment:
-
I am surprised too that it crashes at if statement.
it is more understandable crashing at xyz->ID ...
but it crashes at if statement for some reason. It is definitely initialized by the way....Leave a comment:
-
Access violation reading location exception
A quick question:
Why doesn't the following code catch the Access violation reading location exception?
it crashes on line if ( xyz ) with an Access violation reading location exception. Is not catch supposed to catch it? Practically, it doesnt.
[code=cpp]
try
{
if ( xyz ) // crashes here
{
abc = xyz->ID;
}
}
catch (...)
{...Last edited by sicarie; Nov 1 '07, 01:25 PM. Reason: Code tags are [code=cpp] and (your code here) [/code]. Please use them. -
Stack Trace
Is there a nice and easy way to do stack trace in Visual Studio .Net 2003? I am investigating a crash and would like to know what function is calling what function right before crash? -
I am not using malloc. i am using new and free.
It is an existing code i need to fix so.. Thanks for your all comments.. they all have been helpful.Leave a comment:
-
svlsr2000,
When u say OS could take care of it, do you mean that i dont need to free the memory myself?Leave a comment:
No activity results to display
Show More
Leave a comment: