jvm traces

309 byte By benomara at 2007-10-2 15:26:56
i use the jre1_4_2_07 . my application creates some threads . each thread open telnet session with a server and launches a new thread that call a JNI method. the jvm crashes without any error message.could anyone tell me if i can have the stackTrace of the jvm just before the ...

Getting the text of a java exception into C++ via JNI - how ?

1787 byte By Colma at 2007-10-2 15:28:09
I have a C++ application that needs to create and call Java objects. If there is an exception in a Java method I want to be able to get the text of the exception's message for reporting an error to the C++ application user. The problem is, I can't get the methodID of the 'getMessage' method ...

Running several Java programs into the same jvm

414 byte By SteMa at 2007-10-2 15:30:10
Hi all,i'm developing two java programs and they are generated as indipendent .exe programs.Each application can launch the other, closing itself.Right now each run generate a different jvm invocation: i'd like to know if it is possible to run the other application into the first launched ...

Vectors issue

999 byte By ywhhwya at 2007-10-2 15:30:20
Hi to all, i'm a amatuer towards this vector thing which i hope that most folks out there will share to giude me to solve this problem...I got a vector to store ID numbers. for (int i = 0; i < v.size(); i++) {System.out.prinln(v.get(i).toString());}the return is [, 00 97654321, 00 ...

getting started failures

989 byte By barleytwista at 2007-10-2 15:30:57
I have just started with all this technology. I originally installed JRE for some purpose or other and that was fine. Later I downloaded Netbeans and installed that. Two things are a problem.1. My Open Office Org Database program queries that the JRE is not available. When I go to select its ...

Problems running external Win32 Multithread C-Program from Java

1357 byte By k4simira at 2007-10-2 15:31:45
hi,i just wrote a little java application which is calling my c-binary (a win32 multithread application written in pure ansi c) . let's call it "test.exe". i'm launching it via: Runtime.getRuntime().exec(cmd, new String[] { env }, dir)the program is started correctly and i get all test.exe ...

VM Crash with EXCEPTION_ACCESS_VIOLATION - after Inst. of MS Upd. KB 912945

13658 byte By KKEa at 2007-10-2 15:32:02
After installing Microsoft Update KB912945 on Windows XP SP2 EVERY CALL (!!!) of our java applet causes a crash of the installed JAVA VM 1.5.0_04 with the following EXCEPTION_ACCESS_VIOLATION.After DEinstallation of Microsoft Update KB912945 everything is again correct.Or: using an older ...

Help running sample resolving external symbols

699 byte By shyam.suthara at 2007-10-2 15:32:45
Hi. I have created a dll using jni with c which creates a symmetric key. Now, I am trying to run the sample program from MSDN website for encrypting afile. However, the program is not compiling. I created a new project and also used the same code in my main application for dll I created.The ...

question about awt.GetDrawingSurface.Lock - when locked/unlocked

754 byte By lewkora at 2007-10-2 15:33:48
I need the HWND value from the top level frame of my Swing application so that I can call "InternetDial" from wininet.dll. I am following the example that is posted on this site in this thread: http://forum.java.sun.com/thread.jspa?threadID=593759&messageID=3875990When I get to the following ...

running a java application from a java application

182 byte By bobotimi1a at 2007-10-2 15:34:00
hello ,please who knows how i can run a java application 'B' from inside another java application 'A' and get the error messages (if any) from the application 'B'

monitoring system performance...

318 byte By subhash00csa at 2007-10-2 15:34:18
HiI am looking for any java based opensource system monitoring tool (something like task manager in windows)currently i could see few profilers that gives the details abt only the JVM ...Is there anything available that would give all the details of the entire OS?Please ...

How to call dlls written ,from java

42 byte By ragstaysa at 2007-10-2 15:35:42
please get me a solution its urgent

yahoo pool java applet plz help

233 byte By woody_16_420a at 2007-10-2 15:36:11
i was having no probs with yahoo pool till 2 days back. and now the applet just wont open. some1 told me i must install java which i did and still nothin. there is a red x mark at the top left side. some1 help me plzzzzzzzzzz.

Memory Analysis

316 byte By tsenthilnathana at 2007-10-2 15:37:34
Dear Team, I am working in a SNMP Java based application. I would like to profile my application by different types memory used.Could you please let me know what are different types of memory used by the JVM(Ex:- Stack, heap etc..) at runtime and how to measure ...

A unique identity for an instance

713 byte By parza at 2007-10-2 15:38:22
I implementing a POJO container and need to be able to map an instance to a Tag instance. I could just use an ordinary java.util.Map if I could assume that the Object.hashCode() method would not be shadowed, but this far from true in all cases. The only thing I can assume is that the instance ...

creating JNI dll's with visual studio 2005

1027 byte By ejohanson1a at 2007-10-2 15:39:24
Hello,I've been using the JNI for years and I have a well-developed JNI DLL to interface to our legacy native code base. Our company is now upgrading to visual studio 2005, which comes with the wonderful baggage of the new ".manifest" scheme binding tightly to MSVCR80.DLL.When I compile/link ...

Basic Question about Memory Management in a C++ Prog that uses JNI 1.2

623 byte By Colma at 2007-10-2 15:39:38
Is a C++ program responsible for freeing any objects it creates ? My impression is that with JNI1.2 the answer is no, but I would like to know how Java objects created in a C++ program get GC'd. For example, in the code:jvm->AttachCurrentThread((void **)(&env), NULL);myObj= ...

Can't uninstall java!! BIG PAIN IN THE REAR

535 byte By Qps-tsca at 2007-10-2 15:40:03
Hi,I was installing java on a client today and the install ended prematurely due to corrupt dll's. It kept telling me to uninstall the program from add/remove programs but it STILL won't uninstall due to corrupt dll's. IMO this is a very badly enginered package as to why you can't install ...

Is it possible to create the memory for a Java object in C/C++?

743 byte By Colma at 2007-10-2 15:40:25
Is it possible to have a C/C++ program allocate some memory, then have JNI use that memory for primitive java objects (such an array of bytes) that are passed to Java objects ?I would like to allocate a region of memory in C++, then give that memory to a Java object (via some kind of JNI type) ...

Help with jvm

574 byte By shyam.suthara at 2007-10-2 15:40:40
Hi.I have created a dll using jni and c which calls java classes. I had created only one function which starts and goes through the jvm. However, I have added another function which does something else. When I run my main application, it goes through the first function and starts jvm, and the ...

Error:access SQL Server thru java prg without specifying classpath at runti

616 byte By SmitaNaira at 2007-10-2 15:42:30
Hi!The prg is trying to connect to a remote Sql server Db . The prog is complied by specifying the path of sql drivers. When it is run1)java -classpath pathofsqldivers classnm param1 param2its working fine2)java classnm param1 param2 its giving the error:Exception in thread "main" ...

Win32 socket creation fails when launching C-application from Java

3219 byte By k4simira at 2007-10-2 15:43:28
hallo,it's me again ;-) sorry, but my problem isn't solved yet (see the orignal thread here: http://forum.java.sun.com/thread.jspa?messageID=4155607).I just debugged a little bit through my c program. and it's not the multithrading stuff causing the error, but the win32 socket creation!i ...

Australia DST JVm bug with 1.3.1_18

318 byte By anagolumscreena at 2007-10-2 15:45:33
Hi,After installing the latest jvm to handle the Daylight savings for Eastern Australia, the time zone is now getting set to the GMT and all of the process are showing 10 hours behind. 1.4.2_11 works fine.The 1.3.1_18 seems to be buggy. Please fix immediately This impacts a lot of 1.3.1 jvm ...

problem in jni

411 byte By sinritesha at 2007-10-2 15:45:52
I want to call a java method from my native code .but event after successfull copilation it does not run sucessfully.it does not generate any error. please suggest me how to invoke java function from native function.also suggest me the method of calling jni from my swing interface.My intention ...

Nod32 antivirus can cause Hotspot JVM crash

2013 byte By cwhite102a at 2007-10-2 15:46:27
I'm posting this here incase anyone else runs into this problem.The IMON component of Eset NOD32 anti-virus can cause application crashes.Initially we thought this was a bug in the JVM socket code, but after some heavy debugging, we tracked it down to the IMON component from NOD32.Eset isn't ...

AttachCurrentThread and CallVoidMethod issue

3913 byte By keng99a at 2007-10-2 15:47:31
If I don't use the thread, everything works just fine. When I start using a thread, things don't work. I think that my class path is messed up or wiped out. Is there a way to see what the classpath for the current JNIEnv and/or JVM instance? Has anybody seen anything similar? Any suggestions ...

Converting const double* to jdoubleArray

1002 byte By dfg59a at 2007-10-2 15:47:47
Hello all -I'm currently trying to convert a const double* to a jdoubleArray and return the jdoubleArray. My code is compiling but the jdoubleArray I return seems to be all zeros. My code is below. Any help is appreciated.JNIEXPORT jdoubleArray JNICALL ...

Bytecode is Interpreted?

110 byte By mandeep_gujrala at 2007-10-2 15:49:04
What's the need for JVM to interpret bytecode instead of compiling whole of it and then executing it ?

JVM crashes when trying to make a JNI call

22692 byte By Jiza at 2007-10-2 15:50:12
Hi,In our application we are using JNI to make call to a C++ DLL. JVM is crashing when we try to invoke a particular method. the funniest part is, it is not happening all the time, like, if i make the method call with same parameter 5 times in a raw, it will fail once.. all other times ...

GC not cleaning up in solaris

144618 byte By karthik_ramana at 2007-10-2 15:50:46
Hello,I am running my application on jdk build 1.5.0_04-b05 and build 1.5.0_01-b08 on both solaris and windows XP. I am performing a stress test on my application. In solaris,1> With 64 bit opteron processor the application goes out of memory with 50 concurrent users and 150 hits per second. ...

Initialization Time

2549 byte By loomhead77a at 2007-10-2 15:51:02
Hi All,i start a cross posting, i hope it's okay in this case.the original post is locatet at: http://forum.java.sun.com/thread.jspa?messageID=4159669but, i think here is a better place for this topic...this is a simple test-case to explain the problem:public class test {public static void ...

Cygwin or MinGW compilation problem

667 byte By mareklomnickya at 2007-10-2 15:55:52
Hello,I am new to JNI and I wanted to create an example - 1 java source class and 1 launcher written in C. Every time I want to compile (and link) the launcher.c, I get"undefined reference to _impl_JNI_CreateJavaVM" error.I tried to use cygwin-gcc and mingw-gcc, but didn't find any solution ...

Cygwin or MinGW compilation problem

667 byte By mareklomnickya at 2007-10-2 15:55:54
Hello,I am new to JNI and I wanted to create an example - 1 java source class and 1 launcher written in C. Every time I want to compile (and link) the launcher.c, I get"undefined reference to _impl_JNI_CreateJavaVM" error.I tried to use cygwin-gcc and mingw-gcc, but didn't find any solution ...

JVM error, please help

310 byte By kn710a at 2007-10-2 15:56:24
When I try to load an online RPG called "Runescape" the Sun Java Consol says something similar to the following.Exception in thread "Thread-8" java.lang.OutOfMemoryError: Java heap spaceI'm not a Java programmer or anything, I would just like to know how to fix this ...

I need to change the JVM source code.

439 byte By surya_kesha at 2007-10-2 15:58:09
Hi everybody,I have written some fundamental research papers which I want to implement. I have recently chosen to do that in Java virtual machine. For this I need the JVM source code and the manual which helps me compile and make some ammendments. If the paper is successfully implemented then ...

compilation ImageMagick and JMagick..

510 byte By grandhi.krishnaa at 2007-10-2 16:00:10
Hi friends,I am able to compile ImageMagick6.2.4. using vc++But I have to compile ImageMagick6.2.5.When I tried to compile ImageMagick-6.2.5 from visual MagickI tried with all four options in configure..st,mt, etc..For all of those I got the following ...

Questions on JVM

165 byte By plighta at 2007-10-2 16:06:10
can any one tell me whether it's possbile to run JVM on Windows Mobile OS.if it is possible, can anyone give me any tips on it? or examples.thx

Diff Between Jdk1.3 & Jdk1.4(abt stack trace)

167 byte By Saurabh_Punea at 2007-10-2 16:08:50
Jdk 1.4 gives a facility that we can aceess stack trace across jvms but we cant' do it through 1.3. If we want to achieve through jdk1.3 then how can we do it.

UnsatisfiedLinkError swt-win32-xxxx.dll already loaded in another classl...

3339 byte By dirkua at 2007-10-2 16:09:33
Hello,I am currently developing a tiny testframework expanding the JUnitframework. I show a Swing dialog to the user to select a Jar file which contains TestCases and using reflection to gather classes and finally methods of these classes out of this Jar file. This works very well. However, ...

Class Loading Issue

1069 byte By HariPrasadKa at 2007-10-2 16:09:50
Hai Everybody,I have a problem with Class Loading.The scenario is described below in a Web ApplicationI have an EAR say Static.ear,which uses a JAR file(Dynamic.jar) in my application. The logic is that,the Dynamic.jar is provided so that any user can use it to configure/customize some of ...

WINIO.DLL + UnsatisfiedLinkError

2222 byte By aboaventuraa at 2007-10-2 16:10:11
Hi all,Here I am with another UnsatisfiedLinkError problem.I swear I've been reading about JNI and searching for in this forum and I'll keep doing this, but I would like to understand how it happens...I'm trying to use WINIO.DLL (www.internals.com) and it's loaded correclty. When I try to ...

unsatisfied link error

6679 byte By srikanth82a at 2007-10-2 16:10:25
Hi guys,I am using Suse linux 10 and j2sdk 1.4.2.11. I am getting the error given below. I am essentially building a tool for smart card security and i have done some of the coding in c and some in java. It gave me an library path error so i set the LD_LIBRARY_PATH. but this gave rise to the ...

moo

10 byte By bennyboysmitha at 2007-10-2 16:10:59
moo

Most efficient method of getting data from JDBC ResultSet into C++ prog.

792 byte By Colma at 2007-10-2 16:11:24
Hi,I want to compre the following two tests for getting data from a Java ResultsSet object into a C++ app:TEST 1: C++ prog creates a ByteBuffer object and passes it to Java which fills that ByteBuffer with data from the ResulSet object.TEST 2: C++ prog invokes the ResultSet object to get each ...

How to get Unicode data from Java into C++ ?

1780 byte By Colma at 2007-10-2 16:11:50
This is somewhat related to my previous post about transferring data from Java to C++. If you have a char array in C++, and you give this (via a ByteBuffer) to a Java object, the Java object can fill that array in two ways:// 1: use getBytespublic void pullCharData( ByteBuffer bb ) {String str ...

Convert Java PersistenceException to a proper exception

71 byte By Saurabh_Punea at 2007-10-2 16:14:01
I want to convert Java PersistenceException to proper exception.

yahoo pool java applet plz help

233 byte By woody_16_420a at 2007-10-2 16:15:06
i was having no probs with yahoo pool till 2 days back. and now the applet just wont open. some1 told me i must install java which i did and still nothin. there is a red x mark at the top left side. some1 help me plzzzzzzzzzz.

invalid or corrupted Jar error in JDK1.4.2_08 i

118 byte By bsg18_2001a at 2007-10-2 16:15:49
When i try to run java -jar *.jar in JDK1.4.2_08 i get invalid or corrupted error but same works in JDK1.4.2_04

How can i call dlls? from our java programs.

14 byte By ragstaysa at 2007-10-2 16:16:09
Urgent?

java chess moving problems?!

5560 byte By zoolandaa at 2007-10-2 16:17:24
Hi, I am producing a chess board where i need to move one piece on the board from one place to another. The pieces are made up of JLabels and i need to move them around the JPanel, any ideas how, i have posted the basic code which i have been working on :import java.util.*;import ...