'Aborted

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 ...

how to use JVM for new operating system

460 byte By sanjaysheorana at 2007-10-3 8:39:22
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 ...

JVM FOR JORNADA 720 Linux/ARM

686 byte By HS-Furtwangena at 2007-10-3 8:41:47
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 ...

How can you tell 32bit or 64bit?

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 ...

Microsoft JVM

195 byte By boba5555a at 2007-10-3 8:43:00
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.

C++ -> Java -- Multiple Return Values

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 ...

Local/Global objects and Garbage Collection

2922 byte By jim.marshalla at 2007-10-3 8:43:57
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 ...

JNI MMX and Java long arithmetic

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": ...

java.io.File relative path's not working after calling a native method.

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 ...

Problems with JVM running out of memory

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 ...

Install KVM on Mobile Device

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 ...

Java problem on XP

1130 byte By agottsteina at 2007-10-3 8:54:42
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 ...

Help needed on explaining JVM thrashing behavior

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 ...

Please try to solve this

1778 byte By schooltiger@walla.coma at 2007-10-3 8:56:44
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 ...

Really strange problem

11206 byte By conscripta at 2007-10-3 8:58:04
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 ...

how to run java application in newly launched operating system

549 byte By sanjaysheorana at 2007-10-3 8:59:48
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 ...

Linux System Information

81 byte By karthik_murugesha at 2007-10-3 9:01:14
How can i get Linux System information using JNI?any tips or coding please

Cross Compilation problem

377 byte By sergio87a at 2007-10-3 9:06:51
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 ...

JNI/linux memory releasing issues

469 byte By amcolomba at 2007-10-3 9:10:27
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 ...

JNI performace check

169 byte By peeppeepa at 2007-10-3 9:11:13
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?

passing Jbytearray to unsigned char

1064 byte By woodstock2@a at 2007-10-3 9:14:14
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 ...

Soft References, Weak References

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 ...

Accessing DLL in Java doesn't work - really it DOESN'T !!!

791 byte By torsten_luchsa at 2007-10-3 9:21:28
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 ...

Can Java HotSpot VM be ported to ARM926EJ-S?

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.

Multi-threaded -- AttachCurrentThread

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 ...

PERL Java Native Method

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 ...

How is an object represented in the heap

236 byte By peter_1978a at 2007-10-3 9:31:42
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?

Error: No Java Virtual Machine Found

281 byte By javavirtualmachinea at 2007-10-3 9:32:11
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

TCP option field in jpcap.packet.TCPPacket class

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 ...

Jawin NULL GIT Peer problem

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 ...

Java and C# COM objects tricky problem!!!

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 ...

How to call a perl module from Java program.

448 byte By babychickena at 2007-10-3 9:34:17
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 ...

An unexpected exception has been detected in native code outside the VM.

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 ...

EXCEPTION_ACCESS_VIOLATION

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 ...

IE7 and FF2 auto crash/close when surfing java websites

15514 byte By Preludera at 2007-10-3 9:40:31
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... ...

AttachCurrentThread() in an already-attached thread harmless?

418 byte By pauljlucasa at 2007-10-3 9:43:55
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) ...

GDI32.DLL

6042 byte By tfanninga at 2007-10-3 9:44:40
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 ...

How access and create multi-dimensional arrays for JNI?

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, ...

COM Bridges -- Typebrowser

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.

EXCEPTION_ACCESS_VIOLATION , How we can debug this issue

9375 byte By bijoychithraa at 2007-10-3 9:54:37
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 ...

Help: class files manipulation and versions

1105 byte By pietro_braionea at 2007-10-3 9:56:10
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, ...

How use SetIntArrayRegion with std::vector<int>?

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( ...

An unexpected exception has been detected in native code outside the VM

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 trap (interrupt) signal from JVM

408 byte By Dharmendra_Tripathia at 2007-10-3 10:00:43
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 ...

java process and c process time diffrence

351 byte By Fred_1kinga at 2007-10-3 10:02:31
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 ...

System.LoadLibrary + dlopen -- callback causes unresolved symbol

8800 byte By donyoussa at 2007-10-3 10:03:20
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 ...

Invalid initial heap size in JVM 1.4.2_04 on Solaris 9 machine

414 byte By Vasanthana at 2007-10-3 10:05:05
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 ...

Returning unicode string through function argument.

762 byte By Noman_Khana at 2007-10-3 10:07:15
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 ...

A blocking problem of java thread.

429 byte By peeppeepa at 2007-10-3 10:07:37
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 ...

How know we have an object's lock in JNI?

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?