Hi,I want to know if two JVMs can run in one machine.
how many JVM will be in system where client and server programs are run in a same system
22676 byte By
r3ccaa at 2007-10-3 0:19:12
Well I've been working with Java Studio for some time now and it has been crashing quite frequently. Generally it crashed during deployment or when I'm stepping through code. Currently running Fedora Core 5 with 1 gig of RAM, I posted here: ...
hi, we have downloaded kaffe jvm source code.we want to study garbage collection of it.can u plz suggest me in which directories we can get it exactly?
hi, while installing kaffe jvm on linux platform :'./configure ' gives following error : extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);checking for X... noconfigure: error: GTK+ peers requested but no X library availableconfigure: ...
I have written a JNI app and it seems to work fine, but processing with very large files I run out of stack space.I have solved this issue for the moment by changing the stack size with the -Xss param to java but this is not the ideal issue because with even bigger files I still will have ...
may i know what garbage collection algorithms have been implemented in KAFFEjvm?
program hanged, the thread stack below shows that it seems that jvm locked when loading class by 2 threads.The jdk is jdk1.4.2_11.Is this a jdk bug?the detail stack follows:"RMI TCP Connection(2782)-10.40.79.5" daemon prio=5 tid=0x05551678 nid=0x114b in Object.wait() [0xae4fd000..0xae5019c0]at ...
1419 byte By
Ghighia at 2007-10-3 0:30:42
Hi,I want to write a native method that returns an array of String. I wrote the following code just for test since I've never worked before with JNI. JNIEXPORT jobjectArray JNICALL Java_main_RegQuery_getValues (JNIEnv *env, jobject obj) {jclass stringArrCls = ...
I am a consultant and we have a large multi-national company which runs jvm version 1.4.1. for the application, plus for several other applications.The problem they are experiencing, and upgrading to a newer JVM version is currently NOT an option, is that a call to the Thread.stop() method does ...
3663 byte By
Maxim_Ka at 2007-10-3 0:32:23
Hi guys. I am new to this and this may be a simple question, but I was hoping someone could help me out. I am writing a program in C++ what should be able to call Java function. I know and was able to do everything in order to call "static" function, but would like to be able to work with an ...
642 byte By
Lyona at 2007-10-3 0:32:43
Hi, Allin my project, i need to call a java method from C code using JNI, yet I donot know how toretrieve the exit code of java program. the java code is like below....public static void main(....){.....if(error){System.exit(-77);// the exit code is -77....}and the JNI c code may like ...
Hi,We are using a third party tool in our application. Our application has to call a function from the third party tool. The particular method is in a dll. We have been provided with the dll.I tried loading the "dll" by using 1. System.loadLibrary("rlpolk");and declared the native method.2. ...
2568 byte By
Szilarda at 2007-10-3 0:36:28
Hi,It might sound sacrilege, but I would like to have better, may I say explicit control over memory handling, especially garbage collection.I am working on an application which has to read 120+ million data records from a file, sort and summarize them (and write them into another file). I ...
Hi,I am performing some runtime program analysis and would like to know at exactly what point an object becomes "unreachable". For example, I have a Testing Program (TP) and a Program Under Test (PUT) containing a set of classes. For each object o created by the PUT, TP maintains an object ...
As you may have noticed posts in this form lose all formatting when you post even when you use formatting tags. Unfortunatley this well known yet mysteriously unresolved issue is true for almost all of the recently added forums, which seems a pity because several, like this one seem to be in ...
2181 byte By
Taurenla at 2007-10-3 0:40:35
Hi !In my project, i need to call a java method from C code using JNI.Here is the Java code:public class Prog{public static void main(String args[]){System.out.println("Hello Java Native"+args[0]);}}And C code:#include <jni.h>void destroy (JNIEnv *env,JavaVM *jvm,char ...
1137 byte By
p7ea at 2007-10-3 0:40:52
Hi,I am wanting to conditionally handle an exception occurring in a generalcallback from native code to a java method. My approach is toquery env->ExceptionOccurred() and then if found, call env->ExceptionClear()to temporarily deactivate the exception, but save a global reference tothe ...
I have a static library in C++ (Windows). I know how to invoke methods in a dll. Is it possible to invoke methods from a static library also, and how?Thanks you.
Hi All,I'm using JDK 1.4.2. The platforms used are WindowsXP and MacOSX. In my Native Application after setting up the JVM using JNI_CreateJavaVM, i use the same to load some jar files using URLClassLoader. After all is done i need to shut the VM and then move these jar files to some location. ...
Hi,We are doing research project in which we have to analyze various GC algorithms implemented in JVM.For that,we want GC benchmarks.Can anyone tell me where we can find them?We require those benchmarks for JDK 4.0/JDK 5.0.
798 byte By
furballa at 2007-10-3 0:45:03
Hi,I'm trying to understand the garbage collection log (1.4.2). I have log statements in there like:14325.110: [GC 14325.110: [DefNew: 111691K->111691K(118016K), 0.0000206 secs]14325.111: [Tenured: 283068K->298347K(393216K), 4.1681840 secs] 394760K->298347K(511232K), 4.1683295 ...
464 byte By
Christya at 2007-10-3 0:48:00
Hi folks,Question is: will there be problems for 32-bit JVM receiving Java objects from 64-bit JVM? and vice versa.Our application client is running on 32-bit JVM, our server is running on 64-bit JVM. Client will send Java objects to server, and vice versa.My past experience suggested when ...
794 byte By
drukha at 2007-10-3 0:48:06
I have compiled C++ code bringing up JVM. I have used gcc3.4 on Fedora, linked with j2sdk1.4.0_01 libjvm.so. When running it on Fedora, it does not load the JVM. The error message is: terminate called after throwing an instance of 'jace::JNIException' what(): JNIHelper::getJavaVMUnable to ...
268 byte By
ketanrsa at 2007-10-3 0:48:58
Hello Friends,I was interested in understanding how can we use JVM Crash logs (hs_err_pid*.log) to solve problems.Currently the logs doesn't make much sense to me.Any help would be appreciated. Thanks in Advance.Regards,Ketan
1759 byte By
Taurenla at 2007-10-3 0:50:09
I got a problem with "CallIntMethod". I try to use a java method to pass a number to a C++ method,and print it in that C++ method. But i let java pass something like 1,2,3.. the C++ method only print '0'./* my java code: */public class returnInt{public int reInt(){int i = 3;return i;}}/* my ...
3654 byte By
anteena at 2007-10-3 0:50:55
I have a file of 30MB to be written to the MySQL database. I am doing this in Axis web services and it gives me the following error:java.lang.OutOfMemoryError: Java heap space; nested exception is:java.lang.OutOfMemoryError: Java heap spaceAxisFaultfaultCode: ...
Following Compilation warning is seen only with Java 1.5 for the code using JNI ---/sw/CRFS/solaris2.8-sunpro5.3/THIRDPARTY_SUNSTUDIO9/0_0_3/bin/SUNWspro/prod/bin/stdlibfilt -stderr </tmp/c++filt.27205.1.errld: warning: file /share/prime/JDK/jdk1.5.0_06/jre/lib/sparc/libjvm.so: section ...
1780 byte By
camosa at 2007-10-3 0:53:44
I got a big problem. Please give me some hints how to solve it. I read a lot of threads about it here, but no solution.My system is:P IV, 4GB mem (no swap to not delay the problem)Windows 2003 Server x64SUN JDK 1.5.0-07 for AMD x64JBoss 4.04My own stateful session bean and two servlets of my ...
Hi Forum,i have a urgent problem. I call java methods from my c++ code. This works fine if i call the methods only one time. If i try to call the method the second time. I got an execption and the jvm crashes. Here is my c++ codevoid GDPNativeOpposite::Init(IN CString ...
Hello! I didn't know where to post this message, because I didn't find apropriate part of the forum. It's related to JNI. Well, the problem is that I have to organize data exchange between C++ program and Java program. The Java program always start first. C++ program must connect to active ...
1283 byte By
cr_javaa at 2007-10-3 0:56:11
Hi, I wonder if you can help me please.I'm calling the below function testBloom() from Java. In function test2(), the value of foo() is not 5, it's always some random huge number like 3432134 or -23278237. If I replace foo inside test2() with a literal value, all works fine as expected. This ...
simple question here.. can someone validate my 2 assumptions below?1. I assume that I can have 2 copies of a java app (2 VMs) accessing the same dll, but that it would be the same instance of the dll? so if one java app set a variable in the dll, the other could access it?Note: I actually ...
67 byte By
jolaa at 2007-10-3 0:57:05
Can some one send me a url to learn more about jvm component
6902 byte By
ftma at 2007-10-3 0:57:42
[nobr]when i run the JNI using doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException, it runs ok without error but when i run using process(ActionContext context, HttpServletRequest req, HttpServletResponse res) throws UIException, it gives me ...
hi,I am using a DLL that uses native code to perform some matrix calculations. when I try to create a matrix of 4000x4000 I got the following error "newDoubleArray.new(6622980) failed" . Since it is a DLL I cannot intervene. I know it is a memory problem but Xmx500M did not work because I ...
103 byte By
Rajvia at 2007-10-3 1:00:14
What is different between operating system and jvm ?how JVM differ from operating system?
235 byte By
iyada at 2007-10-3 1:00:38
hi everyonei have a dll file and i want to use it through a java file so i wrote a native method and load the directory when the dll is found but how to set up the library path in my in my environment
67 byte By
iyada at 2007-10-3 1:00:56
can i use dll files generated by Delphi programming language
Hi, I need your hand. How to obtain JNIEnv pointer and jobject reference in arbitrary contexts? (See below source codes for details)I made some tries according to JNI spec, but still failed to get it work. Could you please provide your solutions? Better show me some source codes.Thank you very ...
Hi, I am distributing a desktop application to the general public written in Java 1.4.2. How much memory is required is approximately propertional to how many files they load so Ive tried to pre-emtp OutOfMemoryErrors by checking when memory usage is 95% and preventing the loading of additional ...
Hello Guys! In my static library I create 2 threads. ThreadX and ThreadY.Both TheadX and ThreadY make JNI calls to a DLL.ThreadX and ThreadY are as follows:ThreadX ThreadY- - AttachCurrentThread AttachCurrentThread......JNI CallsJNI Calls ......DetachCurrentThread DetachCurrentThread- -However, ...
Hello Guys! In my static library I create 2 threads. ThreadX and ThreadY.Both TheadX and ThreadY make JNI calls to a DLL.ThreadX and ThreadY are as follows:ThreadX ThreadY- - AttachCurrentThread AttachCurrentThread......JNI CallsJNI Calls ......DetachCurrentThread DetachCurrentThread- -However, ...
185 byte By
lodatuma at 2007-10-3 1:06:42
I am doing a research that requires me to view the contents of a .class file. Is there any tool that I can use that will allow me to view the code inside of a compiled java file?
I'm using an implementation of a variation on flood fill, and for the recursion depths needed, the default stack size isn't nearly enough. (For some reason, the stack size on Linux is plenty, but not on Windows, even though they're supposed to be the same.)I've tried using the stack size VM ...
526 byte By
jgoulda at 2007-10-3 1:07:04
I've been experiencing particularly bad performance from Java applications lately, seemingly out of nowhere. I'm seeing a noticable lag when performing operations where there previously were none, and longer operations are taking painfully long now. This is in an application that is ...
1221 byte By
will608a at 2007-10-3 1:09:30
Hi,In reading section 8.1 of the JVM spec:( http://java.sun.com/docs/books/vmspec/2nd-edition/html/Threads.doc.html#22197)... I have these two questions:1) I see it refers to a thread's "working memory". What exactly is this? At first I thought it was any information that was located on the ...
Hi there,I am currently doing research on Java optimized processor. I need to write a simulator for JVM. I wonder if it is possible for me to have a look-up table to have all the bytecode instructions with the cycle times of execution. I think bytecode will actually run at physical chips and ...
I have a serious problem; in fact i am interested in retrieving some data with JNI , my V function return a char [] and i want to store it in a ByteBuffer variable in the java code that invoke my C function : unsigned char video[MAX_NB_CELL]; // variable declared and returned by the C ...
While attempting to compile Java 1.5 SE from source according to Sun'sdirections (from http://java.sun.com/j2se/1.5.0/scsl/build-linux.html)we ran into the following error. We haven't encountered anything likethis before, and aren't sure how to proceed. Has anyone hereencountered anything ...