Question about byte code instructions

574 byte By Sunny_Daya at 2007-10-3 7:44:26
Dear All,A method invocation (e.g., invokevirtual) needs its arguments to be prepared by the instructions above the method invocation instruction. As we know, some instructions pop objects out of the stack (eg, putfield), some instructions push objects onto the stack (eg, getfield), and some ...

Strange pause

1359 byte By j8chia at 2007-10-3 7:47:50
I have a pause in program for about 7 seconds.I noticed the following during the time frame in gc log and about the same time gap between preclean and remark.But note that the application time is only shown 0.0378640 seconds. Anyone has seen gc pause like this before? I searched the bug report ...

JVM Threads

86 byte By titogeoa at 2007-10-3 7:51:02
Is there a way to list all the threads in current instance of JVM...Tito

About jvm

126 byte By rajesh1215@gmail.coma at 2007-10-3 7:52:31
I wants information about JVM.how JVM execute the .class and internal details about jvm.I want the block diagrams also.

JNI and DLL抯 that use COM

431 byte By MrRagea at 2007-10-3 7:56:20
I抳e got a project that is using an ActiveX/COM DLL (ATL_COM_DLL) in both the main app (JavaApp) and a DLL that is linked to the main app (JNI_ Driver). The JNI_Driver looks to have a clean destructor written but when its executing it causes the application to crash. I抦 wondering if because both ...

How to use JVM Parameters to change mappings of hostname and IP?

309 byte By machINea at 2007-10-3 7:57:20
OS: LinuxI do not have root account, and my account is not permitted to modify /etc/hosts. But I want to use particular mappings of hostname and IP, can I write a .txt file similiar to /etc/hosts containing my mappings and use JVM parameters to make JVM to look up my file instead of ...

how to do it?

239 byte By raja8nza at 2007-10-3 8:01:09
how to enable / disable JVM automatically in my client machine with his permission?"If it is not enabled I will ask him iam enabling JVM in ur machine.Any help, please? thanks in advanceregardsraja

which type Can I use instead of LPVOID at java code?

323 byte By ZeinabZa at 2007-10-3 8:01:10
HiI have a program in C which have a method that returns LPVOID, which avaluate jni type for LPVOID can I use in java code? I have some another native methods which must have LPVOID arguments as input. Is there any solution?please help me. It's very important for me.Thanks rrin ...

which type Can I use instead of LPVOID at java code?

323 byte By ZeinabZa at 2007-10-3 8:01:11
HiI have a program in C which have a method that returns LPVOID, which avaluate jni type for LPVOID can I use in java code? I have some another native methods which must have LPVOID arguments as input. Is there any solution?please help me. It's very important for me.Thanks rrin ...

Java vm creation crashes if max heap is set too big

1371 byte By akarantaa at 2007-10-3 8:01:36
I start the jvm from deep within a c / fortran app. If I give a "decent" max heap size w/ -Xmx option, everything is fine. However, the JNI_CreateJavaVM crashes w/ Unhandled exception at 0x060b766b (jvm.dll) in tnapa.exe: 0xC0000005: Access violation reading location 0x00000ff1. The violator ...

Error unexpected in java

353 byte By Uncle-Fraa at 2007-10-3 8:03:54
Hello people....Sorry for my bad english but i am ItalianI have a problem, when I start my server, (create for game server) generate this error of Java VM.[URL= http://imageshack.us][IMG] http://img55.imageshack.us/img55/9263/errorejavaov6.jpg[/IMG][/URL]Tanks for your helpMessage was edited by: ...

Application cause java core dump, how can i do?

8632 byte By johnnychana at 2007-10-3 8:05:45
HiIn the case, we're using JDK 1.4 and Hibernate on Aix 64 bit, but seems we've got lots of java core even occupied full hard space and cause application crashsystem info :JavaVersion is J2RE 1.4.2 IBM AIX 5L for PowerPC (64 bit JVM) build caix64142ifx-20051115 (SR3 + 94164 + 97403 + 97482) ...

OutOfMemoryError Prevention

2012 byte By Manu38100a at 2007-10-3 8:06:15
Hi all,I supposed this question has been asked undred times but i can't find an answer.Is ther one way to prevent OutOfMemoryError. My idea is to test the available free memory using Runtime.freeMemory() and compare if the result is less than one defined constant. But it does'n work. I don't ...

DLL methods

289 byte By Swapna_Ann_Jamesa at 2007-10-3 8:07:08
Hi,I have a dll which I need to use to make connections and retrieve data from DataStage Universe. I understand I can use JNI to use the dll. But how can I come to know what all methods the dll has?Any help would be appreciated.Thanks and regards,Swapna.

Monitoring a folder

390 byte By b_rajashekara at 2007-10-3 8:13:45
Hi Guys!i have strange requirement in one of project s where I need to monitor a folder. whenever a new file comes to that folder our program should be notified and execute accordingly by getting data from the file and insert into database.Can any one suggest how it can be handled apart from ...

Pls Help:Running it is not working a C executable from my Java Code

311 byte By selecaoa at 2007-10-3 8:14:29
I am working in UNIX enviornment and i want to run a C /C++ executable from my Java CodeI am using the following segment of code but{Runtime r = Runtime.getRuntime();r.exec("\Dektop\a.out")}But nothing is happening can you please help me , Its very ...

JNI Dll - java.library.path

585 byte By E10a at 2007-10-3 8:15:09
I developed and application which uses a dll to get data from windows registry, there is a dll located at a directory included in PATH environment variable. Ir works fine If I invoke it from and standalone application, but When I tested it from a Web App hosted in Tomcat, It throws a ...

Help building a wrapper

2930 byte By hockeymann44a at 2007-10-3 8:16:55
Hello all, I'm relaying what I understand from a gentleman that I am working with, so forgive me if I don't get all the information you might need to help me. Currently, I'm programming on a Garmin M5 that, provided with it, is a SDK called iQue. By what I understand, it's made to be used ...

Unexpected JVM crash

2029 byte By sreenathreddya at 2007-10-3 8:20:32
We are using java 1.4 and Jboss is running on Linux dual core system . We recently got a core dump , with out not much load on memory Can you let us know what could be the reason for this ?I see that a signal 10 is being raised showing that its generated in case of hardware fault Here is the ...

Exception in thread "main" java.lang.UnsatisfiedLinkError

1353 byte By Latchua at 2007-10-3 8:20:39
My program:public class Test {public static void main(String[] args) throws Exception{String libraryPath = System.getProperty("java.library.path");System.out.println(libraryPath);System.setProperty("java.library.path", libraryPath + ...

connect java and prolog

140 byte By gobayaa at 2007-10-3 8:20:40
i have logical backend with prolog and front end with java.some java variables must pass into prolog.how can i connect two languages.

Exchange of field info between Objects of same class

262 byte By pradeepgbhata at 2007-10-3 8:21:56
Hi, I am a beginner in Java and this question might seem trivial.....I just wanted to know if there is a way to exchange field information between 2 objects of same class. Any help/comment regarding this is appreciated.Thanks, Pradeep

Full GC again...

3673 byte By alexmma at 2007-10-3 8:22:19
Hi,I can not figure out what makes VM to run Full GC from time to time like in the listing below...Any ideas ?thanks,AlexJRE 1.5.0_06, Linux 2.6.9java -Xms300M -Xmx300M -XX:ThreadStackSize=100 -Xss100K -server -XX:NewSize=80M -XX:MaxNewSize=80M -XX:SurvivorRatio=2 -XX:TargetSurvivorRatio=80 ...

Major Java Problem - I'd appreciate quick help :)

6814 byte By K3zzeRa at 2007-10-3 8:26:49
Well, i load a program that i use called STS, and it closes after about 2seconds, and i get this error.## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d7394fc, pid=2856, tid=2664## Java VM: Java HotSpot(TM) Client VM ...

EXCEPTION_ACCESS_VIOLATION

11714 byte By GoLuM83a at 2007-10-3 8:36:57
Hi i have an EJB in jboss, it use IIOP to conect a c# client its working but some times it crash with the followin error message can some one help me:## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x10001a41, pid=4560, ...

EXCEPTION_ACCESS_VIOLATION Jni Wrapper

11696 byte By GoLuM83a at 2007-10-3 8:37:22
Hi i have an EJB in jboss, it use IIOP to conect a c# client its working but some times it crash with the followin error message can some one help me:## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x10001a41, pid=4560, ...

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

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