_jvm BindException

507 byte By arthur-g at 2007-9-26 2:36:11
I am currently developing a simple server application to be used in combination with a couple of client computers running applets. Things work pretty well, except for one problem. If an exception occurs somewhere along the way, and the system exits abnormally, then the next time I start the ...

Borland C

105 byte By Dnw at 2007-9-26 2:36:36
Somone know from where i can download borland c?i didn't find it in www.borland.com

VB to Java to VB and also VB dlls

573 byte By SRamkuma at 2007-9-26 2:38:00
Hi,There is a vb application which will call a new java application and also pass some strucutres. The java app. will in turn using multi-threading should call some VB or C++ dlls parallely. Once all the dlls are finished processing they will return some data to the java app.The java app. will ...

how to create a dll in java?

99 byte By yeti17 at 2007-9-26 2:40:32
Is there a way to create a dll in Java.... I do not know C or C++thanks

System.loadLibrary works in 1.3.1 but not in 1.2.2

1131 byte By kbonacc at 2007-9-26 2:42:04
I Have a basic hello world application on Sun Solaris 7 that calls C++ from Java using JNI.The code works well on 1.3.1, but when I recompile it under 1.2.2 and run I get the following exception when I call System.loadLibrary to load my shared library:java.lang.UnsatisfiedLinkError: no MyLib in ...

Compilation error on arrays help need plzzzzzzzzzzz

4225 byte By danish_sh at 2007-9-26 2:43:26
hi every one i am having a problem , below is the example code from the JNI tutorial to access the array passed to the native code and return the sum from it, the code is given below:#include <jni.h> JNIEXPORT jint JNICALL Java_IntArray_sumArray(JNIEnv *env, jobject obj, jintArray arr){ ...

Error in creating JVM, need help!

1377 byte By sitay2001yo at 2007-9-26 2:44:06
I am just trying a simple c program to create a JVM on a linux machine. However it always result errors during compilation. I got no idea what's went wrong. I am using jdk1.2. #include <jni.h>#include <stdlib.h>int main( int argc, char *argv[] ){JNIEnv *env;JavaVM ...

size to be reduced

101 byte By buddin at 2007-9-26 2:44:49
hi all, how can i reduce my classfile/program/jar size from command line?

How to unload dlls?

1064 byte By pavanac at 2007-9-26 2:45:41
Hi! All,I have an applet which copies 3 dlls from the server to c drive of the client hard disk. I'm loading one dll by calling the method System.load("..."). This loaded library inturn loads other two libraries natively in C++ code(in JNI_OnLoad function using the LoadLibrary).In the stop ...

drawString(..) problems on Linux

1033 byte By zsofi at 2007-9-26 2:46:29
I am running an own Java application, now on Linux too, under RedHat. There is a new phenomena never shown on other machines (SGI, Windows, Sun):In a ruler canvas a horizontal time-line (like a centimeter) has to be re-painted, with updated cursor position.I get the cursor + line pieces right, ...

Performance problem. Some help please

692 byte By Peter_Sham at 2007-9-26 2:49:00
I'm in a very confusing situation. I have written some code to wrap around a XSLT engine and loop it a couple of times over the same XML and XSL input. I'm reusing the compiled XSL script so that it would be compiled only once. The timing that I got is very confusing. The time used to run ...

C++ returns bytearray in JAVA

437 byte By rasikfulzele at 2007-9-26 2:50:57
A function in C++ takes no arguments and returns bytearray. I'm declaringpublic native byte[] GetTheImage();and now I have to write implementation for JNIEXPORT jbyteArray JNICALL Java_ImageSensor_GetTheImage (JNIEnv *, jobject){...}It works fine if I take single byte but I want bytearray to ...

porting a c++ application from unix to windows

357 byte By vijay_sriguru at 2007-9-26 2:51:56
Hi guys,I am working on a tool written in C++ which takes a c file, parsers it and gives me a graphical outputon X-Windows.Please let me know guys, how can i make this tool to run on windows so that i can have display on VC++ GUI's.This tool now runs only on HP-Ux and sco-unix. thanx in ...

referance array passing to c++

2944 byte By danish_sh at 2007-9-26 2:52:32
hi,from what i know, it is not possible to return a whole array back to java program, as java supports no pointersso for my method what i have done is passed a static array to the native code and updated it from the c++ code so that when native code alters it, it should be altered in java ...

Dynamic equivalent of the Java language CAST operator

693 byte By leunen.d at 2007-9-26 2:53:51
Hello,Here is what I want to do:I have an Object that contain "something" (I don't know at compilation time). And I want to do this call: { ... Object myObject = new String("Hello"); myMethod (myObject); ... }having declared these: public void myMethod (Integer dInt); public void myMethod ...

dynamic loading and dynamic extension

189 byte By ga11 at 2007-9-26 2:54:30
what exactly is the difference between dynamic loading and dynamic extension? how does the VM deals with these two and what happens in the loading and linking phase?G.P

HELP--using a program's header file!

583 byte By yeti17 at 2007-9-26 2:55:33
Ok, I have gone thru the jni tutorial and I understand the HelloWorld example... my problem is, in the tutorial the java part calls a C program that they then write... I need to call an existing program that is not written in java? I have this program's header file and that is all.How do I use ...

JVM on Windows XP

1182 byte By pizyco at 2007-9-26 3:00:58
Hi,As a Java programmer I was curious to know which JVM Internet Explorer was trying to download upon accessing a page containing an applet. I have just set up a trail version of the new Windows XP with IE 6.0. I dont have any useful network apps installed yet so I cannot say if this an MS JVM ...

how to remove unsatified linking error (dll linking)

1929 byte By criticalbilla at 2007-9-26 3:03:55
hi,I am having a problem while using Jbuilder4.0 that when i include a dll file and the java file that calls it. I get an error (Unsatisfied link error). please help URGENT have to submit a project! in 5 hours GOOD ENUFF! maybe i am not including a dll \* ...

What is Java (compiler lang / or interpreter lang)

630 byte By logemann at 2007-9-26 3:06:09
Hi,at our company we have a deadly war going on, please help us :)Some programmers, including me, saying that Java isa interpreter language, because the bytecode cantrun on a processor, because the bytecode still is some kind of abstraction, that the VM or a Java-CPU mustinterpret.The other ...

casting a com object reference into a java object

508 byte By s_raghu20 at 2007-9-26 3:09:06
Hi all,Through a jni call i am returned a handle to HINTERNET class of MFC.Now i am supposed to cast it into a valid java connection and then use it for further communication on internet. The problem that i am facing is that i don't know of any methods to cast MFC object into java ...

Overwriting Native Methods

344 byte By rocketscienceguy at 2007-9-26 3:09:24
I want to make my own TempFileInputStream class that extends FileInputStream and overwrites close() so that it deletes the file as well. It's not working yet, and I wonder if the problem has something to do with that I'm trying to overwrite a native method (the subtleties of which I'm not ...

Out of memory error in Netscape 4.72

228 byte By moremahesh at 2007-9-26 3:12:36
Hi,Netscape 4.72 throws OutofMemoryError, where as IE5 works fine for the same applet.Is there any way to increase the Heap size in Netscape Communi. 4.72.Thanks in advance,Mahesh

Invoke the JVM

2684 byte By rawul at 2007-9-26 3:13:14
Hello#include "jni.h"void main(int argc, char *argv[], char **envp) { JavaVMOption options[4]; JavaVMInitArgs vm_args; JavaVM *jvm ; JNIEnv *env ; long result=0; jmethodID mid; jfieldID fid; jobject jobj; jclass cls; int i, asize; JavaVMAttachArgs args;options[0].optionString ...

Native Object Persistence?

864 byte By osganian at 2007-9-26 3:15:06
Hi, I think I already know the answer to this but I was wondering if this scenario can happen using JNI:1. A Java class calls a C/C++ native function (via JNI).2. The C/C++ native function does some stuff and creates an object in memory (on the C side).3. Return goes back to the calling Java ...

Servlet + JNI = remote control hardware

332 byte By cofensen at 2007-9-26 3:15:18
hi, everybody ~ HELP! HELP!Does Someone have the example for "Servlet + JNI"?I have a problem:JAVA -> JNI -> C -> DLL (Control Hardware)the DLL is OK, so I can control Hardware.but how to use "Servlet" with "JNI" ?does any body have examples? help~~~~ thanks.. ...

Where can I find the Bug List?

104 byte By Alfredo.Ramos at 2007-9-26 3:15:32
Where can I find the current list of Open Bugs for the HotSpot server VM?Thank you.

space in "Program Files" causing JNI_CreateJavaVM to fail

1382 byte By cbidlack at 2007-9-26 3:18:39
JNI experts:I'm launching a VM from a .exe (Win2000) written in C using MSVC and using JNI_CreateJavaVM. I'd like to specify the location of my installed jar file using the-Djava.class.path=path as an optionString in an options element of JavaVMInitArgs.All works wonderfully. Congratulations ...

How many threads can be running at the same time

268 byte By gbalboa at 2007-9-26 3:18:57
Hi!!Dows anyone knows how many Threads can be running at the same time in the JVM. I'm making a multi thread client-server app and I would like to know how much simultneous connections the JVM support. I'm using one Thread per connection.

javax.realtime

179 byte By wovenpath at 2007-9-26 3:19:48
Has anyone worked with the realtime Java extensions? Trying to decide if it is worth pursuing at this point. Also, will Sun provide technical support for it? Thanks.

Help : VM 1.2 crashing

771 byte By t.schoellhorn at 2007-9-26 3:20:37
Hi, I have the following problem: We run a servlet which heavily uses database access via jdbc:odbc. It runs on WinNT and 2000 with JDK1.2 and JRun 2.3.3.Now the problem is: The VM is crashing (with Dr.Watson c00000005 - I think this mean Access violation or Segmentation fault) on always the ...

jdk1.1.8->jdk1.3

260 byte By ulrich dinse at 2007-9-26 3:21:33
Hi,when I compare my software, compiled with jdk1.1.8 with it when I compile it with jdk1.3 it needs 2-3times more memory. This is the result of an analyse with JProbe. Has anybody made the same experience?regards,ulli

Illegal Instruction with 1.1.7a jar under 1.2.2 JVM

2031 byte By heitka01 at 2007-9-26 3:23:22
I am supporting a Java application developed in 1.1.7a. The JAR file was also created with 1.1.7a. I am trying to run this application under 1.2.2 and am getting an illegal instruction when running on our Solaris 7 box. It runs fine on NT under 1.2.2. I played around and discovered that if I ...

Calling C++ method from JSP

341 byte By dan_k13 at 2007-9-26 3:24:20
I need to call a C++ method from a JSP. I hope to use JNI but everything I read says I need to compile my Java code with the -jni extenstion to create the C++ header. How do I do this with a JSP since the JSP is compiled at runtime? Do I need to call an external Java function?Any help would be ...

SQLException - Function sequence error

1111 byte By SingletonIII at 2007-9-26 3:25:30
Receiving this SQLException when running. Onle gets exception when using new data files, files that have been tested before work corectly. The exact meesage is as follows:java.sql.SQLException: [Microsoft][ODBC Driver Manager] Function sequence errorat ...

java.lang.UnsatisfiedLinkError with JNI

953 byte By andyvtec at 2007-9-26 3:26:59
Hi y'allI am having trouble with JNI on Unix. I was practising with the JNI example from the Tutorial.. and I got stuck at the very last part. I have created a libhello.so shared library and when I try to run my java program... it gave me error as below...Exception in thread "main" ...

How to Measure The Amount of Leaked Memory?

1280 byte By cherylhu at 2007-9-26 3:27:14
I am writing codes to measure approximate how muchmemory is leaked when I call some methods. But I am not sure which method I should use for that in Runtimeclass.My codes are like:Runtime rtStart = Runtime.getRuntime();rtStart.gc();//total memory at starting timelong tmemStart = ...

Can I call Java from a C++ program in process?

365 byte By reavels at 2007-9-26 3:27:31
I know if a Java program calls a native method then that native method can then call Java code in the JVM. However, I now want to know if a C++ program can call a Java class in process without having a JVM started. I assume that this would involve having the JVM as a DLL or shared library. ...

COM wrapper for Java

287 byte By SRamkuma at 2007-9-26 3:28:17
Hi,is it possible to wrap a java class as a COM component (without using MS VM) so that it is available to VB and other programs which can use COM Components.Also are there any freeware products which help in doing thisThanks in advance,Ramkumar

Monitoring JVM in a Web Environment

283 byte By hckyskier at 2007-9-26 3:31:23
I'm currently looking for a tool or toolset to monitor the JVM in a Web Environment. I'd like to locate a tool that will provide a status on the VM, much in the way you would ping an actual server to confirm there are no errors. Any help would be greatly appreciated.

JNI_GetCreatedJavaVMs() returns 0 nVMs

7483 byte By geraintR at 2007-9-26 3:31:46
Hello allI am currently experiencing a very annoying problem.I have a function CallJavaClient() that I need to call twice.(See below for listing).When I do the calls from within a console application, everythingworks fine, but when I perform the calls from within a DLL (as required)the second ...

ACC_SUPER flag wronly reported by javap for an inner class

1004 byte By Botella at 2007-9-26 3:32:01
The inner class CokerSpaniel is reported as not been set by javap but running a class file parser you can see it is.The class file parsed for this class is available at http://usuarios.tripod.es/JoseBotella/CokerSpaniel.txt class Animal {void metodo() {System.out.println("Soy Animal");}}class ...

JVM fails

604 byte By rasikfulzele at 2007-9-26 3:36:03
I'm writing JNI application for some C++ code. I don't have implementations of any functions but I'm pass values of parameters through my java program. e.g. in following OpenDevice function I can pass parallel port parameter(defined in C++) through Java. The implementation is just calling ...

Need Tracing help

407 byte By taisrar at 2007-9-26 3:36:15
Hello,I need help. Can anyone recommend me anything which can provide me with the ability to trace a java application. By the trace, what I really mean to say is some sort of a log that shows which object sends message to another object and which object instantiates another object.I will be ...

JNI: problem with returning a String

551 byte By hairsinl at 2007-9-26 3:36:29
HiI have a simple Java program that calls a native method to return a String. The program successfully loads the appropriate dll and the native method accesses the C function to return a String. However, the String that is returned is huge: 1833658228 characters (it should only be approx. 10 ...

VM in web site

218 byte By rissj at 2007-9-26 3:36:56
Hello,I'm working on a web site witch calls applet in differents page. Can someone explains me if this differents applet will use the same VM or not ? Thank you. Riss J

inner class constructor access problem

675 byte By prisca at 2007-9-26 3:37:02
HI !I have a java class which contains an non-static inner class with a specific constructor. If I try to create objects of this inner class inside a jni function (located in the enclosing class), it fails.I can retrieve every attribute and every method of the inner class, but I get a ...

Confusion in Byteode and machineCode

1040 byte By neeraj_bit at 2007-9-26 3:37:49
Hi Frieds,Today I was searching for some tools to convert java bytecode to machinecode. I saw a listing of some tools like JOVE, VisualAge, VisualCafe, JET etc. But I got really confused.1.It's Ok that java produces ByteCode for plateform independancy and on running this byteCode performance ...

JVM, Thread.yield(), and Time-slicing...?

962 byte By cjmosier at 2007-9-26 3:38:34
I'm using a multi-process OS (Sun-os) that makes use of process scheduling and time-slicing, etc.... (I know... who isn't!?...)My question is:Does a call to Thread.yield() yield to only other JVM-managed threads, or to all processes that the OS is managing?In other words, when a call is made ...

How does Thread scheduling work?

992 byte By rmm2 at 2007-9-26 3:38:52
I'm having a problem with a Java application which uses C++ code. My program consists of multiple threads, most of which at any time are either inside a Thread.sleep() method or an Object.wait() [with timeout] method. I'm running on SCO OpenServer 5.0.6.My program will run fine for several ...