182 byte By
raviva at 2007-11-26 13:43:43
hi, this is ravi kirani am involved in a project which requires calling a dll written in vb from java.can any one help me how to do this.thanx in advance.
2238 byte By
caffeinea at 2007-11-26 13:46:24
I want to run:System.getProperty( property );where property is some key, like "java.class.path", using C++.Here's my attempt:void Jni::listProperty( char *property ){jclass clsSystem= FindClass("java/lang/System");jclass clsPrintStream = FindClass("java/io/PrintStream");jmethodID midPrintLn= ...
98 byte By
M.L.Pa at 2007-11-26 13:50:49
Can anyone tell me why I'm getting this message when trying to load certain onlines games?
1384 byte By
briscoa at 2007-11-26 13:55:17
Hi there!I am very sorry for loosing your precious "mind resources" but some help is necessary. I am relatively new to java, though I have some programming knowledge. I am making a school project, which is a lame simulation of galacitc motion, i. e. you have a plane (galaxy), you add stars, you ...
1466 byte By
caffeinea at 2007-11-26 13:56:58
New to Java. I'd like to implement this line of code using the Invocation API:ClassLoader clBFU = BinaryFileUtil.class.getClassLoader();where BinaryFileUtil is a class that someone here wrote. Here's what I think is going on:1. We have a static reference to BinaryFileUtil.2. BinaryFileUtil ...
Hello, i need to know the hardware features of any machine trough a java class. I think there is a package or class that allows me to do this.The hardware features i will need are : hard disk, processing velocity and ram memory.any help will be appreciated.Thanks.....
Hai All,How to access a C++ application's data in shared memory from a Java application?This should be possible i suppose. Preferably ... I am looking for solution using core java apis ( not using external apis or libraries ). If someone could help me out in finding the right way to get this ...
Does anyone know where I can get a debug build version of the jvm without me actually building it? I am chasing a memory issue that appears to be in code outside of my jni dlls.Thanks!Mark
Hi,We have existing cobol dll, and need to call cobol dll funtion from Java. I have developed C dll which talks to cobol dll and fetch the information from cobol. I'm calling C dll from Java using JNI. I able to fetch the information from Cobol to C but could not able to get that information ...
2008 byte By
wayne872a at 2007-11-26 14:03:22
Hi,I have been running one java application on different platforms. The systems are:A. Dell Inspiron 600M, MS XP Service Pack 2, jre1.5.0_09, 1GB RAMB. Dell Dimension 9100, Fedora Core 4, Linux version 2.6.17-1.2142_FC4smp (bhcompile@hs20-bc1-4.build.redhat.com) (gcc version 4.0.2 20051125 (Red ...
I get this JVM error whenever I open a .jar file created with Blue-j. Anyone know whats wrong?
HI,As I am new to java, it would be helpful if i get anwser for this question. What is the use of javac in jre though we have this in jdk.? Thanks,Ram
1015 byte By
irek_ma at 2007-11-26 14:06:12
When I use Java 1.6.0:Tomcat started using startup.bat works fine.When started using tomcat5.exe does nothing, and exits.When registered as a Windows service, and started using:net start tomcat5There is a meaningless error message on the console, but injakarta_service.log I find:[2006-12-21 ...
Hi,We've got the following message using PrintGCDetails option in a java 1.4.2 virtual machine (We are not using any GC jvm modifiers beside PrintGCDetails):"GC locker: Trying a full collection because scavenge failed"We've got this message just once and after that, we've got lots of minor ...
2321 byte By
vin109a at 2007-11-26 14:09:28
Hi I'm have a java app that calls a native C function. That native C function returns an array of structures back to the java side. My Code is below://this function is to return a array of structuresJNIEXPORT jobjectArray JNICALL Java_CBroker_querySystemConfigurationCSide (JNIEnv *env, jclass ...
Hi, I am trying to understand the mechanisms that stand behind the concept of ClassLoader andhow this i working in different scenarios. I have collected some questions where I am unsure.So maybe someone with the neccessary knowledge can give me some enlightenment. ;-)- Basic ClassLoaders work ...
622 byte By
Ilovua at 2007-11-26 14:10:20
Hi,in my C++ program, (MVC++ on XP, using Java 1.5.0_06) the JVM throws a great big hissy fit if threads do not attach and detach in a strict queue like order. For example, the program crashes at *** in the following sequence:Thread 1: attach to JVMThread 2: attach to JVMThread 2: detach from ...
Dear everyone, I'm very curious about the garbage collection, how can it know all the operand types which is on the stack just by the pc register. Is there any article talking about this? Could any jvm expert answer this question? At a specified code position(a specified location of the jvm ...
4248 byte By
anujlal1a at 2007-11-26 14:11:23
jdk: 1.4.2_06jvm parameters: -Xms2560m -Xmx2560m -XX:NewSize=32M -XX:MaxPermSize=256M -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -nature of our application is that most of the new objects which are cretaed most likely is going to end up in tenured space so we have kept ...
I am taking an on-line programming class. One of our assignments is to develop an amortization table using a GUI. I have developed most of the program but I am stuck on a section of the code. I am able to calculate the first set of payments which are: Monthly Payment, Loan Balance and Interest ...
562 byte By
Jun0Xa at 2007-11-26 14:19:04
Hi,I have this application - Calculator.jar Java Application running on my Windows OS. I need to write another application that can input data / click buttons of this Java calculator application. The idea is to have an application that is coded to control the Calculator java application ...
Hello,I have an error of unexpected exception during running native code,it occurrs randomly, not every time.the error text is:An unexpected exception has been detected in native code outside the VM.Unexpected Signal : 11 occurred at ...
Being a java newb, a lot of the JNI code confuses me.I have a java application that I wish to run through a JNI wrapper.What is the most simple C++ code that will enable me to do so.Also most of the code posted for doing this uses various header files. Where can one find these header files, and ...
581 byte By
ifmisa at 2007-11-26 14:26:23
Hi, I have a java application running on a Solaris 9 machinewith Java 1.5.0_07. I can see the instance of the application in the process list by ps command however once in a while it displays both the original and another instance but a child one this time with the same jvm arguments I assigned ...
419 byte By
Neo2001a at 2007-11-26 14:27:13
I have a web application using Tomacat 5.0.28. In catalina.bat for java i've given -Xxms256m -Xxmx512m. When im running the application.. my java.exe is going upto 202mb.. thread count (in windows manager) is upto 700-800 (in 10 minutes). and then my server goes slow and no request is ...
I am writing a Windows DLL which is loaded by a Java application. Usually the Java application calls DLL functions. But at some point, I need to call some method in the Java application (a callback notification). Please let me know how can I do this. I appreciate sample code. Thanks in advance. ...
174 byte By
Asmaaa at 2007-11-26 14:32:28
Please, i want to prepare the installation for my project by using inno setup and i want to check whether JVM is installed or not on PC during the program installation
782 byte By
sabya at 2007-11-26 14:36:32
I have already looked into all the threads regarding this error but I am not able to solve my problem.Now the problem is that I am trying to run a java application but it gives me the error [message box] as given below :Java Virtual Machine Launcher - [heading of the message box]Fatal Error. ...
Hello folks:I'm a CRM administrator, and I know enough Java to be Dangerous. Our CRM currently uses a Java based client to initiate chats. The problem is there is a queue before hand, and if the customer has MS VM or an older version of JVM, then they get kicked out and prompted to install. I ...
I have some C++ code which calls Java code through the Invocation API:jType type = env->SomeJNICall();if ( type == NULL || env->ExceptionOccurred() )env->ExceptionDescribe();Instead of spitting out the exception description to stdout (or stderr?) is there a way of capturing the text ...
I've written a multihreaded application using JNI as interface for communicating with a kind of data storage ( C-app). I've learned from the doc that the JNIEnv-Pointer stores thread specific data and therefore only the thread which instantiated the JNI-interface is allowed to use native ...
We are gettijg the following error.Any ideas what is happening or even where to start to look?## An unexpected error has been detected by HotSpot Virtual Machine:## Internal Error (41443F53504152430E43505001C8 01), pid=18362, tid=7## Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_08-b03 ...
474 byte By
calzakka at 2007-11-26 14:51:07
A general question that I hope Windows Java developers can answer for me...A company develops and sells a commercial ActiveX component for Windows. In the Java world, is it the Java developer that takes care of integrating the component into their app, using a JNI wrapper creation tool of their ...
Just to be curious, how does the JVM know wether a direct byteBuffer can be released of no reference points to it?Is there some reference-counting magic in the background or does a full DirectMemory-Area trigger a GC?Thank you in advance, lg Clemens
11734 byte By
lux.slna at 2007-11-26 14:53:42
When i run my program for some time (well, the time varies, sometimes 5 mins, sometimes 1 min..) my app crashes... i am attaching the contents of the log file. could any one please tell me what is happening here ? and why this is happening ?Thanks in advance..## An unexpected error has been ...
We have a java application that runs on AMD 64 bit Opteron Win 2003 SP1. It is configured with -Xmx = 8192M (64 bit JDK 1.5_08)The other JVM options are :-Xms4096m -Xmx8192m -XX:MaxPermSize=256m -Xmn1024m -XX:SurvivorRatio=1-XX:SoftRefLRUPolicyMSPerMB=1 -XX:+UseConcMarkSweepGC ...
416 byte By
cpnma at 2007-11-26 15:00:37
When migrating an application from JDK1.4.2_12 to JDK1.5.0_10,it was seen that the max. heap size that was set using -Xmx had to be reduced from 1.5 GB to 1.3 GB on a win32 machine inorder to create JVM successfully. Any pointers to what in Java 5.0 could have brought about this change is ...
14773 byte By
SamQa at 2007-11-26 15:01:01
I've posted a message on the Hot Spot Internals forum regarding this error I've been seeing fairly often now, it's happening when in Internet Explorer on the Web usually playing some game. This is the error message I get after it just drops me out of the Internet........Is this a known ...
Hi,I am trying to create a JNI wrapper for my java application. I have reached the stage where I can launch the program, providing I have the path to jvm.dll in my path variable.I was wondering if there was any way to determine this path at runtime, seeming as it is highly unlikely anyone using ...
When viewing my website I get the above message. I click on ok, go into the site, but when changing pages I get the following "several java virtual machines running in the same process caused an error". On other computers there is no problem. The website was developed using Serif WebPlus 10 on ...
284 byte By
chimaea at 2007-11-26 15:05:59
When we run applets belong to different pages, how many JVM will run in our OS.For example, there are two internet pages, each page embed one applet. When we use browser to access these pages simultaneously, how many JVM will run in our OS.Thanks!Alexander
Hi,How can i check that a particular type of object is live in JVMthanks in advance
If I run Java programs under Suse Linux 9.0 using JDK 1.5.0_09 for every started Java programm I can see 9 processes running under linux.It seems like one of them is the master and the others are child processes of this one.I've never seen this with other Linux / Java versions before. Could ...
481 byte By
dollyna at 2007-11-26 15:07:31
hi all,I try this http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html for JNI. we need to write the native method implementation in such a way that the method signature should exactly match the method signature created in the header file.i want to provide interface to ...
294 byte By
Isaaka at 2007-11-26 15:08:06
hi,I am new to JNI and I need to know how could I get MS Access report data in my application. Specially, I am having difficulties in C coding part. I read API documentation and tutorials about JNI, so if you know where could I read about this topic send me that too.thanks
2361 byte By
Rayvena at 2007-11-26 15:09:46
I am trying to call a Java jar application from my C code#include <jni.h>JavaVM *jvm;JNIEnv *env;JavaVmInitArgs vm_args;JavaVMOption jvm_options[4];jclass esmClientClass;int initJVM( char *classpath, char *libraryPath ){int result;char clsPath[256];char libPath[256];sprintf( clsPath, ...
1618 byte By
joejaga at 2007-11-26 15:13:59
HI,I'm trying to use a Java double array from within C based JNI code.double[] array = {1, 2, 3, 4}In the JNI code I am using:jboolean isCopy = JNI_TRUE;long* someArray = (long*)(*env) -> GetLongArrayElements (env, javaArray, &isCopy);printf("%i \n",someArray [0]);printf("%i ...
117 byte By
jbayugaa at 2007-11-26 15:16:00
Okay i need to check if there is atleast one digit in a string.. how do i do that? Sorry im a noob!null
4328 byte By
caffeinea at 2007-11-26 15:17:59
I wrote C++ code that creates a JVM and calls existing Java code.It compiles fine under VC++'s command linecompiler (cl.exe), but I'm having trouble making it compile and link under cygwin's g++.On my system, Java is installed in C:\Java\jdk1.5.0_10.CompilingHere is a typical compile from my ...
Hello, I have problems with JNI. I have method for solving large system of linear equations, written in C++. This is called within java via JNI. When I call this method with little system (say 2-3thousands of equations), I recieved correct result.When I call the method with higher number of ...