Problem Loading a native dll.

561 byte By SaTreua at 2007-11-26 18:36:07
Hi,I use two native libraries in my application this are loaded in the class that implement each one: static {System.loadLibrary("TreuJavaPdf"); }in a class and in other: static {System.loadLibrary("TreuJavaExcel"); }My problem is that after accesing a TreuJavaPdf without problems I try access ...

java virtaul machine

163 byte By carmen4955a at 2007-11-26 18:38:25
Trying to find out how I can have it installed in my pc.Or buy it, I can't ever get out of microsoft without using the task manager.Thank you

WinUser.h issue

452 byte By sean1234a at 2007-11-26 18:38:40
Hello,I'm trying to write a JNI code. The c++ code that has an include:#include <winuser.h>can not be compiled because this file does not exists on my computer, I did a search many times. My computer is Win XP, and .NET frame work as well as Visuall C++ is installed on my computer. This ...

trouble passing float array from C to java method

1803 byte By gmonieya at 2007-11-26 18:43:08
I have a float array, and I am trying to pass it to a java method, but it craps out during the call to pass the array. Anyone have any ideas?Here is the header for the java method:public void addPoints(final float[] scopePoints)and here is the C++ reference to this method:addPoints = ...

FindClass(className) is not able to locate java class name

1883 byte By Shivapa6vathia at 2007-11-26 18:46:27
I am trying to invoke a java application from VC++ tool. ( Using JDK 1.3.1_18) .It is failing to get the find the java class. FindClass is failing here. but with JDK 1.3.1_02 , I am able to launch it. BOOL PINJavaAppLauncher::Launch(PINJavaAppLauncher* pAppLauncher, LPSTR className, LPSTR* ...

help with strange error Can't load IA 32-bit .so on a IA 32-bit platform

1458 byte By JerryTramadaa at 2007-11-26 18:48:28
Hi guys I'm stuck on this problem for so long, it would be great if some one can help me out. I use jni to build a interface to access an native library and I have successfully get in running on my development environment, but when at deployment to another box, I get the following ...

64 bit library load issue: Can't load AMD 64-bit .so on a AMD 64-bit platfo

929 byte By georgekwatsona at 2007-11-26 18:49:49
I get the folowing error when calling load/loadLibrary:Can't load AMD 64-bit .so on a AMD 64-bit platformI am hoping someone has a clue about this.uname -aLinux GeorgeNSuSe 2.6.8-24.25-default #1 Thu Aug 24 09:57:32 UTC 2006 x86_64 x86_64 x86_64 GNU/Linuxjava -versionjava version ...

Subject: Using JNI in less than simple areas

3373 byte By jjones3566a at 2007-11-26 18:50:07
OK, Have Tried JNI before then went to several other technologies for doing this, but am back to JNI. Trying to get started on wrapping the Newton Physics Engine(dll and header file only). The native function is: NEWTON_API NewtonWorld* NewtonCreate (NewtonAllocMemory malloc, NewtonFreeMemory ...

Default JVM arguments

385 byte By Draesa at 2007-11-26 18:53:21
HiI would like to know what are the default JVM arguments when server jvm is started without any additional flags, like this:java -server myappI have been unable to find bullet proof document from those. I'm running Sun 1.5.0_08 on 32bit Win2003.I would espacially be interested on thread stack ...

Executing tiny programming language compiled byte code with the JVM

534 byte By adamcuza at 2007-11-26 18:57:10
Hello,For a project, I am developing a simple programming language, with a syntax not unlike Pascal, which compiles to Java Byte Code. Currently I execute the compiled byte code using my own interpreter. This works OK, but what I'd like to do now is to execute the compiled byte code using the ...

Segmentation 11 Error

1941 byte By mraheela at 2007-11-26 19:00:42
Hi guys..I am using a very simple code, but my jvm is crashing each time i try to run the following code..JNIEXPORT void JNICALL Java_Test_setCameraParameters (JNIEnv * env, jobject obj, jint jId, jstring jKey, jstring jValue) {cout << "Setting Camera Parameters" << endl;jboolean ...

port JVM to a microcontroller

159 byte By mcayira at 2007-11-26 19:01:15
Hi all,How can i port java virtual machine to a microcontroller that has 32 K RAM and 256K flash ?Any idea would be valuableThanks.

JVM Crash --Plz help

12222 byte By Paddy@javaa at 2007-11-26 19:06:50
Hello All,I experience the problem of JVM crash often. The error msg is ## An unexpected error has been detected by HotSpot Virtual Machine:## SIGSEGV (0xb) at pc=0xfecade94, pid=14930, tid=29## Java VM: Java HotSpot(TM) Server VM (1.5.0_11-b03 mixed mode)# Problematic frame:# V ...

Out of swap space

3188 byte By Ramkumar.Subbaraja at 2007-11-26 19:11:16
Hi All,I am getting the following exception in my application serverException java.lang.OutOfMemoryError: requested 1024000 bytes for GrET* in D:/BUILD_AREA/jdk142-update/ws/fcs/hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space?The jvm settings which I use are-Xms768m -Xmx768m ...

Experience w/ Zip files? VM settings?

647 byte By heyblueza at 2007-11-26 19:14:33
I am not too familiar with VM options but I noticed that reading from Zip files is pretty process intensive. I am basically searching through zip files to find a file and then taking that inputstream for processing. I am basically looping through the zip file until i match the ...

EXCEPTION_ACCESS_VIOLATION error. HotSpot Virtual Machine

858 byte By my_java_screena at 2007-11-26 19:22:45
Hi AllI have got this error in my JBoss server, but I am posting it here since it seems to me a JVM error. When I try to access my application deployed on JBoss server, I get this error on my JBOss server console and it shuts down.An unexpected error has been detected by HotSpot Virtual ...

Splash screen parameter not working from JNI

560 byte By trejkaza at 2007-11-26 19:23:24
I've been trying to get the splash screen to come up from our native launcher which uses JNI invocation to start Java.Problem is it doesn't seem to work... wondering if this is a bug or a feature, or whether I'm doing something wrong.I can't post the code because our launcher is huge and ...

Java Interaction with Keypad

157 byte By PATILa at 2007-11-26 19:23:41
How can you make sure that the keyboard work only with your Java application and not with the other windows?Message was edited by: PATIL

picking the right API

177 byte By wheeliecakea at 2007-11-26 19:29:00
HiIf you have an app running on your local machine, how do you find out the correct API for that app so that you can hook into it with java?Many thanks, Ron

Platform Invoke in SUN's Java

2480 byte By vitallisa at 2007-11-26 19:33:24
The most of Java developer does not use (maybe cannot use) JNI. Because this API is very low and complex in use. But in some type applications developers need to call Native functions from system or other libraries. And the only decision is to write JNI code or to use some tools like ...

Passing Parameters with variable values

2543 byte By jjones3566a at 2007-11-26 19:33:49
OK, I'll try this again.The function in the header file (no source)is:NEWTON_API NewtonWorld* NewtonCreate (NewtonAllocMemory malloc, NewtonFreeMemory mfree);In the documentation are the following statements:ParametersNewtonAllocMemory mallocFnt - is a pointer to the memory allocator callback ...

Calling static java methods from JNI

4437 byte By orita at 2007-11-26 19:34:55
Hi I'm trying to call a java method from a c++ code (using JNI)This is called as a callback (java calls native code, and then the native code should call a java callback again)when the callback is declared as non-static, this works fine:Callback.java:class Callbacks { private native void ...

About CallByteMethodA Function

1365 byte By shiannjia at 2007-11-26 19:38:52
Hi you all:I have some problem about CallByteMethodA function.This is what my java code looks like: public void setDS_INFO_mac(byte[] mac) {for( int i = 0; i < mac.length; ++i ) {this.ds_info.mac = mac;} }This is what my c code looks like: jobject objref; jclass cls = NULL; jfieldID fid = ...

Full GC runs even when enough space is remaining

5965 byte By tsriram07a at 2007-11-26 19:40:48
I am running a server application with these specs:OS: Solaris 9 32-bitJVM: 1.4.2_11Xms=Xmx=2048MGC ...

java.lang.UnsatisfiedLinkError

3757 byte By mraheela at 2007-11-26 19:47:38
Guys, I have done everything but cannot fix this error.. its been past three days i am stuck with this problem and writing here as my last resort...Can anyone plz help..This is my entire stack tracejava.lang.UnsatisfiedLinkError: ...

how to call a routine that returns a pointer using jni

251 byte By raviva at 2007-11-26 19:48:09
hi this is ravi kiran,i have a situation where i need to call a c-routine from my java program that returns a pointer.how can i get the content of the pointer that the routine is returning.plz help methanx in advance

How to lock keyboard through java program

196 byte By CuteGal_Pavana at 2007-11-26 19:48:58
I am developing a Swings application in which I have a requirement to lock the Keyboard on clicking on a particular Button. Plz. help me in this regard.Thnx in advance.Meghana

5.0_u6 = 1.5.0_06 ?

287 byte By jashaffnera at 2007-11-26 19:52:36
http://java.sun.com/javase/tzupdater_README.htmlWe were looking at what version supports the latest DST changes. The link above shows that at least 5.0_u6 already incorporates the latest DST changes. We have 1.5.0_06 and 1.5.0_07 showing on computers. Is 5.0_u6 = 1.5.0_06?

Building 64-bit C++ app on AMD & Windows 64-bit using vs2005

891 byte By codewarrior22a at 2007-11-26 19:54:48
I've looked around the Developer Forums (et al) and I think this is the appropriate place for this question/subject. If not please let me know another place.I'm porting a c++ app from 32-bit to 64-bit that relies on some java code for doing db access. The c++ app uses jni and for various ...

Error Invalid magic number at calling native library at AIX

1280 byte By FlimmFlamma at 2007-11-26 19:58:08
Hi,I have a Java app calling functions from a C/C++ shared library. At Sun and HP all works fine, but the same stuff returns the following error when calling under AIX:>java JIAK3smssJIAK3sms.001I-Release 1.1.0 StartException in thread "main" java.lang.UnsatisfiedLinkError: IAKJAVA (0509-026 ...

strange malloc/new behavior

462 byte By gregman_pla at 2007-11-26 20:08:37
I have a strange problem : I'm trying to allocate simple char buffer in JNI dll with C++. But no matter what i try to write to this buffer, and how, the first 4 bytes are always = 0. I tried to allocate it with both malloc() function and new operator. Result is always the same.Because i'm ...

hs_err:pid...

1538 byte By cruziesta at 2007-11-26 20:09:11
Hello,The Boss just got us Vista pre-installed laptops and we can't seem to use SSL-explorer / java properly any more. Every try brings us to 'an unexpected error has been detected by Java Runtime Environment:' . An hs_err_pid### log file is then posted to my desktop.Examples below:1.)An ...

CMS collector ignoring -XX:CMSInitiatingOccupancyFraction completely

1143 byte By MMMMMMMa at 2007-11-26 20:09:38
I have a Java service that appears to ignore theXX:CMSInitiatingOccupancyFraction flag completely. Here're the GCrelated ...

bypass the classloader's parent delegate model

310 byte By well.Heada at 2007-11-26 20:13:22
is there a method to bypass the classloader's parent delegate model?say,if i define a new classloader,and i wish get a java.lang.String class defined by me other then java.lang.String via my classloader other than via its parent,how can i do?Message was edited by: ...

JNI and non-modal JWindow created from C++

1202 byte By J-Braina at 2007-11-26 20:16:36
I have the following situation in my application:My main application is a Visual C++ GUI application. In this application the user has the option to open a non-modal Java Swing window. To do the communication between C++ and Java I use JNI. Since I only have to perform some basic communication ...

An unexpected error has been detected by HotSpot Virtual Machine:

16166 byte By oilqueena at 2007-11-26 20:18:21
For some unknown reason i get booted from certain sites,especially game sites,leaving an error code + details on my desktop .I have removed java and re downloaded it several times but i am still getting this error .I have the latest java as far as i know ,can anyone help me out here please :) ...

EXCEPTION_ACCESS_VIOLATION

6211 byte By Kumbia at 2007-11-26 20:18:25
I am getting the Access violation error message when I use JNI to pass data to a COM client developed with C++. Through using message boxes as break points in the C++ source code, I can see that the native code works fine. It uses the data sent from the Java end, calls and manipulates the COM ...

linking error ->JNI code

2568 byte By login1a at 2007-11-26 20:19:26
HiI am new to JNI.I am getting linking error as below:--Configuration: InvokeJava - Win32 Debug--Compiling...invoke.cinvoke.obj : error LNK2001: unresolved external symbol __imp__JNI_CreateJavaVM@12invoke.exe : fatal error LNK1120: 1 unresolved externalsError executing cl.exe.InvokeJava.exe - 2 ...

MinGW comple error

2076 byte By jjones3566a at 2007-11-26 20:21:23
What does this compile error mean?[exec] Executing 'gcc' with arguments:[exec] '-mno-cygwin'[exec] '-IC:\Program Files\Java\jdk1.5.0_11\include'[exec] '-IC:\Program Files\Java\jdk1.5.0_11\include\win32'[exec] '-Iinclude'[exec] '-c'[exec] 'source/jnewton_JNewtonWorld.c'[exec] ...

Handling of undeclared checked exceptions

407 byte By stefan.schulza at 2007-11-26 20:23:34
When thinking about conversion issues in a planned Java extension, the following question came up, where I could not find information about. Maybe you can tell me: If bytecode is created for a method (by a compiler extension) not declaring any exceptions, and within this bytecode a method is ...

Passing WINNT file name as a argument from java to C code

1722 byte By chatrapathia at 2007-11-26 20:37:31
Hi ,Plz help me on the following issue for which we are struggling from last 2 weeks. I am working on the encrption/decryption of some native files involving C based DES algorithm functions.I have got some native files whose names has to be passed from my jni code to Native c code as parameters ...

Getting Total Faults Of a Process Using java

279 byte By Akash5495a at 2007-11-26 20:52:10
Hi All, I want to get all Page Faults of a particular process at any given instance of time(When i run the application).i am able to get Page Faults/sec but not total since the beginning of process.do anybody have an idea how to do this.?Regards:Akash

Open CD Rom from Java ?

892 byte By speed_of_lighta at 2007-11-26 20:54:23
Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpCommandString As String, ByVal lpReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As LongPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ...

creating a 'listener' on a native C device

1979 byte By dwigdora at 2007-11-26 20:58:41
Greetings,I have posted something related to this in the thread "accessing a method through its mapping address". I thought I should generalise the problem a bit, so that others might benefit. The general problem:I have a device with an SDK written in C++. To access incoming data from the ...

Static verification of interface references

896 byte By Hotlicksa at 2007-11-26 20:59:22
The JVM spec (prior to JDK 6, to keep it simple) implies that static data-flow-based verification is done on methods at class load time, including the parameters to method calls. For object references (pointers) this, as I understand it, assures than the class flowing to a use of a reference ...

long GC pauses; full gc eventually takes 30 secs. (from Developer Forums)

1906 byte By aksel.schmidta at 2007-11-26 21:01:27
from http://forum.java.sun.com/thread.jspa?threadID=5145522jre 1.5.0_06,-Dcom.sun.management.jmxremote -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:NewRatio=3 -XX:MaxTenuringThreshold=3 -XX:NewSize=90M -XX:MaxNewSize=90M -Xmx800Mwindows 2003 ...

Command to be executed in solaris machine to know the existing heap size

170 byte By Nandakumar_sa at 2007-11-26 21:01:47
Hi,I want to know the command to get the existing heap size of JVM. Java version is 1.5 and runs in solaris machine.ThanksRegards,Nanda

passing C structure to java

599 byte By rkannaa at 2007-11-26 21:02:00
Hi all,Iam new to JNI. I need a small help.I have structure typedef struct channel_info{ int channelno, char channelname;char units; struct channel_info * nextchannel;}channel_t;i will fill the structure in c code and i want to pass this structure to java.and i want to access the data stored in ...

How to exit out of the Java code when going back to the C++ code?

737 byte By BrigitAnanyaa at 2007-11-26 21:05:41
I wrote a program in Java and made it a plugin for Adobe Photoshop, which is written in C++ and calls my Java program using JNI.In my C++ program I call JNI_CreateJavaVM, and I open a Java window with the same picture as in Photoshop and I minimize Photoshop.Unfortunately when I go back and ...

Crashing the Java Virtual Machine

208 byte By zhiyanga at 2007-11-26 21:07:14
When people talking about crashing the Java Virtual Machine (JVM), are they only refering to getting the JVM to run out of virtual memory?How else can one cause the JVM to crash?Thank you