1349 byte By
pritela at 2007-10-3 8:39:05
Hello all,I am trying to invoke a JNI method from the Java layer, the JNI method has to create an object and return to Java layer. The code is run on a Linux platform.When I run the application, the message that gets printed on the console is "Aborted"...There is no further information ...
I want to know if i made a new operating system then how can i made new java application and run that application in that new operating system. how can i load jvm in that operating system. I was made the operating system in Assembly and C language, but i want to run java application in ...
Hello,I am doing a Semester Project for the Furtwangen University of Applied Science, Germany. My Job ist to install a linux OP on a Jornada 720 http://h10025.www1.hp.com/ewfrf/wc/document?docname=bpia2256&lc=en&cc=us&product=61677&dlc=enand throw the Windows CE away. Any way, I ...
462 byte By
ACaycia at 2007-10-3 8:41:54
Hi,This is going to sound simple enough. But how can you tell if I am using 64bit or 32bit JDK?For example, when I issue, java -version, I am getting the followingjava version "1.5.0_05"Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)Java HotSpot(TM) Client VM (build ...
Hi,What if some java code is compiled to work with MS JVM, which compiler should be used? What is the latest version of jdk I can use? Is there some specific compiler?Thanks.
859 byte By
Shawn@@a at 2007-10-3 8:43:15
I am in need to multiple values from a method. A status code (int) and a return value (double).From what I have read -- it is customary to use an object array to handle this, since java does not support out parameters.When I return the Object[] through JNI as a jobjectArray how do I ...
Hi there, I am working a project which is going to allow some legacy C code run in our "new" Java process. In doing the preliminary work I have come into a slight problem that I can't quite get my head around, hopefully; someone here can set me on the right path.I did searches but didn't find ...
1226 byte By
stuartaa at 2007-10-3 8:49:19
I am having trouble with a JNI call to a C program which contains assembler which uses an MMX operation as follows:static inline int diffPixels(int rgb1, int rgb2) {register int temp;__asm__ __volatile__ ("movd %1, %%mm1\n\t""movd %2, %%mm2\n\t""psadbw %%mm1, %%mm2\n\t""movd %%mm2, %0\n\t": ...
2049 byte By
Aidosa at 2007-10-3 8:49:36
Hi guys,I have a doozy of a problem using JNI from within my Java application.I do a lot of file work (using java.io.File) which uses file path's relative to the installation directory (if running from c:\foo\bar I will be accessing a directory "baz", which is in absolute terms in ...
367 byte By
col2006a at 2007-10-3 8:51:15
Hi,I have a JVM running out of available memory, is there anyway in Java that I can track the avaIlable memory in the JVM so that I can stop the thread that is causing the excessive memory usage when it reaches a certain threshold? Or is there any mechanism for monitoring it? Any ...
336 byte By
avs_msa at 2007-10-3 8:53:48
hi there.I磎 a student in Brazil and i need to do how may i install a KVM on a mobile device. Here in Brazil, we get start to developer a new type of mobile device and we need to put a KVM for device run java applications.Anyone know how may i do this? or where i find tutoriasl that explain ...
To begin, I'm not sure if this will be a Java problem or an XP problem, but I'm throwing it out there to see if anyone has seen it.We are in the process of converting from NT 4.0 to XP, and one of our sites has done so quite well, with over 20 people using a Java application. Another ...
26152 byte By
AXUa at 2007-10-3 8:54:56
Hi there,We run a webapp on Tomcat 4.1.29 + JDK 1.4.2_02-b03. We've been seeing memory issues in our production environment. It's not an OutOfMemoryError or StackOverflowError or anything of that sort. The symptoms are described below:Stage 1: GC running normally with Minor GC mostly, with ...
Iam trying to retrieve the webpage snapshot Here is my codeimport java.awt.*;import javax.swing.*;import java.awt.event.*;import java.awt.peer.*;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.IOException;import java.io.InputStream;import java.io.File;import ...
I have a very strange problem.I have a c++ dll and I want to use it in my java program. So I createda JNI dll to be used as a proxy between my java program and the dll.Everythng seemed fine but here what happens. When I call a functionfrom the JNI it calles a wrong function from the dll and it ...
JVM is exist for all of the operating system. but if we have a new operating system for which their is no JVM then how can we run java application in that operating system. In other word u can say how can we run the java application on 32 bit DOS for which their is no JVM available.how can i ...
How can i get Linux System information using JNI?any tips or coding please
hello,i have java 1.5 but im trying to compile a specific program to run on 1.4.im useing this code: javac -target 1.4 -bootclasspath "C:\Program Files\Java\j2re1.4.2_12\lib\rt.jar" -extdirs "" LightBulbCircuit3.javabut i get this error :javac: target release 1.4 conflicts with default source ...
I'm running into some issues using a library through JNI that consumes a lot of memory.Under windows, the memory usage behavior seems reasonable. The application releases memory everytime it is done with the native call. Under linux, this doesn't seem to be the case. Memory usage continues to ...
Hi all.I want to use JNI in the middleware.However, I heard JNI uses much resources.I want to check JNI performace check.What do I do?
Hello Group:I am newer in JNI and I have a little problem:I have a native method with the follow signature:public native int enroll(byte[] template);now I have it type data in C: typedef unsigned charFPIMAGE;/* fp image data object */Implementing my native method i need to call a function of a ...
331 byte By
mpinga at 2007-10-3 9:16:09
Hi all,Can someone explain to me what are soft references, weak references, and in what situations can my knowledge be usfeull about them? I have been reading some stuff about garbage collection, and I fail to understand in what situations does a reference becomes a weak or soft ...
Hi,I've got big troubles accessing a DLL in Java - almost for one week !!!I want to call some methods from the LDCNLIB.DLL (www.logosolinc.com -> Software)First, I tried to access the file via JNI -> Exception in thread "main" java.lang.UnsatisfiedLinkError: LdcnInitat ...
153 byte By
sara_ba at 2007-10-3 9:26:12
Can Java HotSpot VM be ported to ARM926EJ-S? What are the changes to be made for building HotSpot for ARM926EJ-S target?Please Help.
2977 byte By
Shawn@@a at 2007-10-3 9:26:35
I am having a problem creating an multi-threaded C++ application that uses the same jvm. I create the Jvm initially using JNI_CreateJavaVM and then use AttachCurrentThread in the second C++ thread.The call to AttachCurrentThread creates a access violation. "First-chance exception at 0x6d846fec ...
472 byte By
Zoxisa at 2007-10-3 9:28:30
Hello, I'm starting now in java native methods. I wanted to know if I can use a program (extension .pl) in perl by java. And I also want to know its behavior, if it runs inside the JVM or outsite.My aplication in perl is a Socket, and it is just a console. To Run my application I use "perl ...
Java must have a complex mechanism for mapping user defined types into the heap. I would think that a heap is just an array of bytes? So the objects are flattened somehow. Anyone has an idea on how this mechanism is accomplished?
Hi,I tried to install jakarta-tomcat-5.0.28.exe..... But while installing its showing an error message No Java Virtual Machine Found.....Could you please help me in this regarding? Wht shd do inorder to rectify the error....Thanks In Advancekalai
696 byte By
manu_13a at 2007-10-3 9:32:52
Hello, I try to send a TCP packet via jpcap api (I'm not using net.sourceforge.jpcap API)here my code:byte [] options = {(byte)0x02, (byte)0x04, (byte)0x05, (byte)0xB4};TCPPacket p = new TCPPacket(....);p.option = options;sender.sendPacket(p);when I spy the TCP packets with wireshark ...
1635 byte By
isaka at 2007-10-3 9:33:17
This is my class that accesses a COM tlb through jawin.package com.teamion.iscope.proxy;public class Test{public static void main(String[] args){IScan m_scan = new IScan();int[] port = {0};int success = 0;try{success = m_scan.Connect(port);}catch(Exception ...
638 byte By
IcEtBa at 2007-10-3 9:33:18
Hi ThereI am creating a Java application that needs to call a C# COM interface(a .dll file), the interface export a set of classes and those classes implement the required methods. Furthermore, the exported classes act as listeners of low level events . The java application needs to listen to ...
Hi, I create a simple java program as followsclass test{public static void main(String args[]){try {Runtime r = Runtime.getRuntime();r.exec("perl test.pl");}catch(Exception e){e.printStackTrace();}}}and test.pl is located in the same directory as the java program. The program compiles but with ...
10819 byte By
noa_11a at 2007-10-3 9:38:08
Can you help me with this problem:An unexpected exception has been detected in native code outside the VM.Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x7804172Function=Java_sun_java2d_loops_MaskFill_MaskFill+0xFA42Library=C:\Program ...
16320 byte By
JimZa at 2007-10-3 9:39:53
An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d74767f, pid=3304, tid=3756## Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode)# Problematic frame:# C 0x6d74767f# T H R E A D Current thread (0x00991270): JavaThread ...
HELP!My Internet Explorer 7.0.5730.11 and my FireFox 2.0 both crash when I just click on any website that has Java. The browsers just closes themselves without any warning or error pop-ups.I recently (2weeks ago) did a clean install of WinXP home SP2 with everything latest updates possible... ...
To work with various APIs, it's sometimes convenient (or necessary) not to pass around the JNIEnv argument all over the place. If I call some function that's running in the same thread and that function calls AttachCurrentThread() to get the current JNIEnv pointer, is that (a) harmless, (b) ...
We're getting this annoying JVM crash on our print engine servers. It always crashes in the GDI32.DLL but never not always in the same function. I see that bug 4990144 was filed on this but it appears that it got closed for not being reproducable. It also makes mention of upgrading to java ...
790 byte By
6tr6tra at 2007-10-3 9:45:15
I know that to access an array I use "Get<type>ArrayElements" and to create them I use "New<type>Array". What if it's an array of arrays of arrays? Like int[][][]? What do i do then?And for example, what if I have the following java method:public void doSomething(int[][] arg1, ...
280 byte By
isaka at 2007-10-3 9:52:21
I tried JaWin. Are there any other bridges on sourceforge which also comes with a typebrowser similar to jawin? I can simply generate java code by dragging and dropping my typelib onto the typebrowser in Jawin. Any other bridges in which I can do that?Thanks.
I am getting EXCEPTION_ACCESS_VIOLATION rarely while working on the application, How do I can track where it happens & what are the possibilities that cause this error, I am using some of the JNI calls in my application ,is bcoz of this ,How do I rectifies the problem ,it will be greatly ...
Hello to everyone. I am working on an academic implementation of the Java Virtual Machine, which is somehow similar in purpose to Java Pathfinder. I rely on an external library for reading and manipulating classfiles, which experiences some problems with parsing .class files produced by javac, ...
436 byte By
6tr6tra at 2007-10-3 9:56:47
I have a vector of ints that i want to put into a jintArray. How do I do this?When I tried the below code, it didn't work but instead when i printed out the int values on the java side, they were all messed up.jintArray arr = env->NewintArray( intVector.size() );env->SetintArrayRegion( ...
4892 byte By
Aiaxa at 2007-10-3 10:00:15
Hi, I have been using this application to send out e-mail but whenever i tried to send out multiple e-mail at the same times, "An unexpected exception has been detected in native code outside the VM." will occur.i'm using java version "1.4.2_04"Java(TM) 2 Runtime Environment, Standard Edition ...
How to capture (interrupt) signal from JVM in case of JVM termination due to Error/RuntimeException in shell script (Unix/Linux OS). Is it possible?I am executing an java class from shell script. In cetain condition it throws RuntinmeException.I want to capture the signal from terminating JVM ...
I have my Solaris machine running some process in java application server and few c process running in that same machine. i can see some differencein time logged by the process running in the app server and the normal c process.I think this is due to the OS and JVM time difference.Can any one ...
Hi guys, I am currently trying to use the APISystem.loadLibrary(String name)in order to dynamically link shared libaries to SOLARIS JVM.I am facing some unresolved symbol at run-time . I load a shared library libhello1 (using system.LoadLibary)and I call from this lib (via JNI interface) a ...
Hi,While running this command.# java -Xms8096m -Xmx8096m newserver.shI am getting the following error:Invalid initial heap size: -Xms5000mCould not create the Java virtual machineI tried with - server option also. But same error. Can any one tell me what is the limit of heap size allowed in ...
Hi all,I have following function written in a C++ dll. I need to be able to call it from Java using JNI. This function expects to receive a buffer pointed by wchar_t * of "int len" length. It will copy write some text in to this buffer and i need to be able to get this updated Unicode string in ...
Hi!I would like to execute native thread concurrently in the Java Native Interface.When a Java thread called a native thread to use java native interface, Java thread is blocking for processing native thread.So, other java threads don't execute because they are blocking.Why do these problems ...
237 byte By
6tr6tra at 2007-10-3 10:08:53
I have an object on which I want to call env->MonitorEnter, but only if we don't already have the lock. If it is locked, I want to find out if we have the lock and if so i want to call env->MonitorExit. How would I do this?