<p>where can i find the JVM source code</p><p>i need JVM 1.4.2 as well as JRE 14.2_12 source code if they're available.</p><p>can they be compiled on a RedHat AS linux 4 64-bit box ?</p>
859 byte By
zinza at 2007-11-27 11:55:17
Hello,I am developping a Java software that use the cdf library (cdf is a special file format )I have compiled it in an executable jar file.But I want it to be also runable under Unix.Under Unix, when I try to open a cdf file the following exception is caught.java.lang.UnsatisfiedLinkError: no ...
I work for an ERP project, and use a DLL in my project. When i call the DLL from applet code, it automatically closes the internet explorer window and a popup appears with message : "Unhandled Floating Point Excepiton".And then it puts a file which includes stack overflow and memory areas, register ...
HiI have a bit of a catch22 situation that I hope someone can help resolve.I currently have JDK 1.5 running on my PC along with netbeans 5.5, everything with netbeans is OK.I also have iReport 1.2.7 running and it is also fine......up to a point. The problem is that if you have JDK 5 installed then ...
According to this: http://java.sun.com/javase/6/docs/technotes/guides/vm/gc-ergonomics.htmlas of version 6, the initial heap is set to be 1/64th of the machines physical memory and the max is set to be 1/4th of the machines physical memory.I was wondering, is the dependent on the available memory, ...
Hi experts,I have a problem with java memroy with the application I run.This application freezes after 2 or 3 days giving java.lang.outofmemoryerror.I tried this command:java -Xms512m -Xmx512mbut nothing happenedthis is what a gotC:\jdk1.3.1_09\jre\bin>java -Xms512m -Xmx512mUsage: java [-options] ...
353 byte By
noxtecha at 2007-11-27 11:42:31
I have an app that rans on Solaris 10 with java 1.5.0_11 and it has some wierd gc types in gc log.Can anyone explain what are those GC-- rows? 3087.910: [GC 907916K->716116K(962624K), 0.9520986 secs]3096.156: [GC-- 927444K->962596K(962624K), 1.3476942 secs]3097.504: [Full GC ...
345 byte By
silviyaa at 2007-11-27 11:38:47
Dear all :I am in a need to convert a java .class files to binary format file (i.e.) bin i mean an executable files in Linux.Is there any possibility using JNI or anyother method to achieve it.Please post me your suggestions...Thanks in advancehope my problem will be ...
I am trying to get a berkeley xml database working in java and i get an error when i try to run their sample programs. I am trying this in linux right now with problems. I got it to work in windows.I used this command to set the native library path:export ...
Hi folks,Not sure whether this is a Windows forum question or not. I'm writing some simple JNI methods that call into Windows OS routines such as GetComputerName and GetSystemDirectory. The following is a sample method I've written that currently works:JNIEXPORT jstring JNICALL ...
358 byte By
TJayseea at 2007-11-27 11:32:10
Hi all,I am running a program in which i need to fill in an ArrayList with a list of around 1 million strings through 11 for-loops. While the list is being populated, the program throws a java.lang.outofmemoryerror:java heap space.Any clues on how to correct this error, or on a more efficient ...
<p>hi guys,</p><p>i am new to Linux plotform</p><p>i have some .so files writen in C++</p><p>and i have the Java code. But how to call the methods in .SO file from Java thru JNI.</p><p>thanx in advance.</p><p>Subbu</p>
HelloI'm posting here becouse I'm now desperate and may be someone here could helpI'm experiencing a problem with my app, it's running un Tomcat 4.1 with java 1.4.2_12 and I'm getting java.lang.OutOfMemoryError when it tries to process something in the range of 5000+ registers.I've tries ...
hi every body im using sun java system application server platform edition update 9 on windows 2003 service pak 2 with 4 processor and 6 gb phisycal ram my running application alot of time hanging and some time crashwhen application hangs then i stop server and start again getting ...
1212 byte By
MAYAa at 2007-11-27 11:16:38
Hi, I tried the simple HelloWorld program in for JNI. I created the header file. And my list of files are* HelloWorld.java* HelloWorld.class * Main.java* Main.class* HelloWorld.h* HelloWorldImp.cTo create the header file i used the following command:javah -jni HelloWorldIn my java i have a ...
Hello all, First of all, I am very new to JNI. I was putting together a little application to test JNI, but I keep getting an AccessViolationException when trying to access a jstring in my VC++ code.// File: TestDll.dllusing namespace System;using namespace ...
1583 byte By
kgottrya at 2007-11-27 11:05:01
I'm running WebSphere v6.1 on Solaris 10 with HotSpot JVM 1.5.0_12 in 64bit mode. I experiencing some performance issues and want to observe more details about GC. I turned on -XX:+PrintTenuringDistribution but I don't see the output. I turned on -XX:+PrintCommandLineFlags to be sure all the args ...
I am getting : An unexpected error has been detected by HotSpot Virtual Machine:The file hs_err_pid9360.log has the following content:Plz give me a clue as to where are the things going wrong.I feel that the chances of a bug in the code are somewhat low. Can I get such error, when the memory needed ...
4225 byte By
pablerasa at 2007-11-27 10:58:14
Hi everybody.I have a complex commercial application that is getting me fool. When loading the application, a lot of file/decryption/array tasks are performed in order to get all the resources into memory.The app has two possible flavours:* A single 'jar' we can run directly (java -jar .. etc.) ...
3533 byte By
@miryaa at 2007-11-27 10:56:34
I'm trying to wrap libpurple ( http://developer.pidgin.im/wiki/WhatIsLibpurple) for use in Java code. Everything is done in the linux and freebsd boxes (with the same problems). The problem is libpurple itself has an initialization procedure (just a function to call) where it loads some "plugin" ...
I've created a simple test class with one method:public class TestClass {int a = 0;public void test() {synchronized(TestClass.class) {a = 1;}}}After opening the generated class file with Eclipse I got the nextresult (I've removed the parts that are irrelevant) public void test();0 ldc <Class ...
502 byte By
madownsa at 2007-11-27 10:54:49
Hi all,I have a C-Program which I now want to include in Java with the JNI. I just want to transform the main-method of this program to a JNI-Method (which after that can be called in the Java-application). But it seems that is not possible. There are a lot of subfunctions in the same C-File I just ...
9820 byte By
honpenga at 2007-11-27 10:52:46
Hi,I am support a Blackboard application running on a PrimePower box.Recently I installed JDK1.5.0_12 on the box. When I re-configured Blackboard to use the new JDK and tried to restart the server, the tomcat portion will keep getting the JVM Hotspot crash error as illustrated below.The startup is ...
Need some help with this one. Why would a concurrent mark last for over 4000 seconds?43415.531: [GC 43415.531: [ParNew: 130944K->0K(131008K), 0.0068140 secs] 216204K->86072K(1535936K) icms_dc=0 , 0.0070140 secs]43446.687: [GC 43446.687: [ParNew: 130944K->0K(131008K), 0.0067580 secs] ...
<p>Dear Sir,</p><p>What are the supporting softwares needed for executing JNI. Where i can find the simple JNI Program</p><p>Advance Thanks,</p><p>Rengaraj.R</p>
2559 byte By
lycono0a at 2007-11-27 10:33:09
I've been beating my head against this for a week. We have a server that was developed in house written entirely in java. Recently, we added a JNI hook to use an in house driver written in C++. This driver is used in other places outside the server and works fine (no memory leaks). When used ...
<p>In one client, from the main windows, open two sub-windows.</p><p>When open the two sub-windows, I want use different JVM. But I does not know how to communicate in two JVM each other.</p>
425 byte By
arjundga at 2007-11-27 10:20:38
Hi,I am calling a native function in C++ from Java which has to return List<String> or String[][]. Is this possible?The java declaration is - private native List<String> GetListNative();In C++ the declaration is:JNIEXPORT jobject JNICALL Java_com_GetListNative(JNIEnv *env, jobject obj);Please ...
We have 7 SUN servers running SunOS 5.10. Only one of the 7 servers gives us the "PID not found" message when executing: /usr/jdk1.5.0_12/bin/jstat -gcutil PIDWe are using the correct PID. There seems to be something specifically wrong with this sever but we have not been able to determine what the ...
476 byte By
warko01a at 2007-11-27 10:15:05
Hello friends, I have a Tomcat which on startup pushes the java.exe to about 1.3 GB and never comes down. I have the min heap set to 512 and the max heap to 1.5 GB (max on windows). On another similar machine, the java.exe on Tomcat startup is seen to be around 230 MB. Not sure what is causing the ...
since c# use bytecode,where can i found c#'s vm spec,seems named il asm language.who know please tell me.Message was edited by: well.Head
633 byte By
sleena at 2007-11-27 9:56:13
Hi,After recently changing from 1.5.09 to .11 (with the handle leak fixed), I now get reports from users that run my dll on JRE 1.4. about an IncompatibleClassChangeError being printed to std.err. I have tracked it down to calls to DetachCurrentThread. The code seems to work, despite that ...
I'm trying do some memory intensive work in Java and am running into limits far sooner than I would expect. First of I would like to access as much of the 2GB process limit I can. It would appear that 1.4 GB is the largest amount that can be allocated with the -Xmx switch. So be it.However we ...
Hello everbodyI just recently started working with JNI and third party DLL's and therefore had to go through some painful education. I understand that in order to use 3rd party DLL's it is necessary to write a wrapper in C. However, I am curious and would like to know why it is not possible ...
Hi,I've been struggling with this concurrent mode failures for quite some time and I would be very nice if somebody could answer some more or less basic questions:1.) If I scedule a full gc when using CMS do I get an concurrent mode failure? In my log I get one like every 60 seconds even as ...
i've coded quite a few successful production server-side java apps over the past 10 years.i have (in my opinion) adequate knowledge of the jvm for what i am most often hired to do as a humble application developer. i know the difference between the stack and the heap; i know when to tweak the ...
Hi,I am using Weblogic 8.1 SP6. Recently we have increase in the traffic and as a result I have seen this pattern w.r.t GC.While using the monitoring tab of the weblogic console I have seen that at a regular interval of about 20 secs there is a forced GC from JVM and causing the app to not ...
A question related to Java GC compared to .Net and cleaning up local references. In .Net if you run in release mode then local variables are GC'd if not in use. Can Java be compiled in a way to function the same way?e.g C# Codeclass Program{public Program() {B b = new ...
1855 byte By
Hodnea at 2007-11-27 9:38:41
HiI have a method in c++ which gets a jobjectArray from java. The array is a String[][] with unicode strings. I parse the array and picks out the objects as jobject. I then cast the objects to jstring. If I now use GetStringChars on those jstrings, I get a jchar* which I can print.My problem is ...
Hello,I have injected a DLL having JNI code into Java Application using CreateRemoteThread() function.Then i created a Thread using CreateThread() function in DLL_PROCESS_ATTACH.I wanted to attach this thread to JVM already running inside the Java Application. So i used JNI_GetCreatedJVMs to ...
477 byte By
gripusaa at 2007-11-27 9:30:15
Hi guys, i am bit confused and i hope so somebody clerify this, i am working to access COM dll through JNI but as we know all the litrature and references always point out that the language should be used is C++ (altough i cant understand why it is so as dll is bit generic and should be ...
976 byte By
Popupa at 2007-11-27 9:27:02
Hi all,I am trying to execute a C program from a Java Program. All things are working fine but when I am returning a char* pointer from C code to native C file I am unable to get this string(In opposite to that I can send a char* from native code to C code)In core C code I am doing:-struct ...
1797 byte By
alan_SEa at 2007-11-27 9:25:20
Hi there.I'm trying to load a library by -Djava.library.path=path_to_lib but get error message saying java.lang.UnsatisfiedLinkError.I'm doing it this way because I'm trying to write a midlet.So the questions are: Is this possible in a midlet andif possible what am i doing wrong:My java code ...
I want to write a java program using the msn functionality in this program. I'd like to know whether there is any package exists that can include the msn application into a java user interface. Thank you.
Hi there,I just recently bought a second GB of RAM for my Notebook, and now I meet the requirements for a server-class-machine (2GB ram/ 2 cpu/ Linux).Is there any way I can tell the jvm without always specifying that I would like to run the client-compiler always?I know I could just use the ...
I just started on JNative and I have some questions on about it. I hope someone here can help me with some answers. Pardon me if I sound stupid, I just barely started less than 24 hours. Anyway I have a C structure here...//C code structstruct usb_bus { struct usb_bus *next, *prev; char ...
HIThank you for reading my postby default i run an applicaton using foolowing command, now i want to have access to the objects from within the native applications.here is the code that i used to run the application using normal commands, how can some one tell me how i can run it using native ...
1281 byte By
cactuara at 2007-11-27 9:15:33
I have a native function that returns a Unicode string, which I use the NewString() jni method to return it. My native string is in UTF16 LE for Windows and BE for Unix (platform default encoding). Currently I am only using the ASCII characters that are represented in UTF16. When I get a string ...
1715 byte By
RGAnna at 2007-11-27 9:15:12
Hello!I have a very simple jni - method, which puts a string into the java String field:JNIEXPORT void JNICALL Java_de_getStr(JNIEnv *env, jobject obj){jclassclazz = (*env)->GetObjectClass(env, obj);char myStr[5] = "aaaa";jobject aString = (*env)->NewStringUTF(env, myStr);jfieldID jfid = ...
Hi guys. Ive done a succesfully some JNI examples on the web.I have a c++ application together with the dll given. I do not know how to implement JNI onto the application. anyone can help me in this?btw the c++ is an AXIS camera API application.thanks in