1217 byte By
HeinerJ at 2007-9-26 6:51:46
let me preface this post by saying that i have seen the javatip66 reference on javaworld.com and that has considerable merit. i may end up using that methodology.what i would like to be able to do, of course, is to embed JUST the "HTML pane" of IE/Netscape (excluding ToolBar and Address Bar, ...
943 byte By
Cdomsch at 2007-9-26 6:53:50
Hi all.I got the folling problem. I want to read a message from the network that is contained in a char[]. From the c-side the message contains a structure that is cast into the char[].Under c, when receiving, I would make cast the char[] back into the structure and access my values inside the ...
Can we change the classpath system properties at runtime...i.e. can we just do a System.setProperty("java.class.path", "newpath");and that new classpath will be used by the JVM ClassLoader or is that system property only read once when the jvm starts
487 byte By
rahulj20 at 2007-9-26 6:57:21
I have compiled my sources using IBM's jikes compiler with the -g option (for debugging purposes). I am using Sun's JRE 1.2.2. and JPDA 1.0.When I run the debugger using JPDA and try to set a watch for local variables I get an error saying that the local variable table is missing. And it asks ...
391 byte By
fujitsu1 at 2007-9-26 6:59:53
I cannot run invoke.c example from the Native Interface tutorial on Solaris using C++ compiler.I am getting an error in calling JNI_CreateJavaVM function:"Error: Formal argument penv of type void** in call to JNI_CreateJavaVM(JavaVM_**, void**, void*) is being passed JNIEnv_**."Does anyone know ...
hello,a few questions for the experts... 1) Does each thread allocate the max thread stack size on startup or is the space dynamically allocated as it is needed in chunks? if dynamically allocated, how can one tell the size at a specific point during a run?2) Supposedly each thread has a "C" ...
601 byte By
soft66 at 2007-9-26 7:00:49
I am trying to run java code from C++ (2D API). I understand I have to use JVM to do that. I used invoke.c from Native tutorial and it works fine. However, once I tried to call from C++ a java code which has an extend clause in it (class A extends JApplet), FindClass function in invoke.c file ...
54 byte By
koeicjm at 2007-9-26 7:02:44
I only find the define in the jdk source
Hi all,the problem it's the following:i got a program that update a sql server table. So i want, at the same time, run this program many times, say 10 for example, to do it that faster. But i only want 10 subprograms at the same time. So i got to use wait() and others method's, rigth?I'm not ...
166 byte By
zfbf at 2007-9-26 7:05:21
Is this possible to access a windows dll from Java, that is, some API that allows me to call dll's?sincerely,Zenon Farias Braga F.
285 byte By
hallyhaa at 2007-9-26 7:05:52
I'm wondering about C++ strings. I believe there are different kinds of strings in C++ (or am I mistaken? I'm a beginner in C++!), but if I have a method that receives a string as input and returns a string, what kind of strings should this be in my C++ class?~H
378 byte By
vjin at 2007-9-26 7:06:14
Hi, folks, I have a problem. I try to convert a program written in C/C++ to Java. In the original C program, it has to use Unsigned data type in which I cannot change it. Now I have to convert them to Java Signed type (because there is no unsigned type), How and What Should I do with it? Any ...
281 byte By
Kamandi at 2007-9-26 7:09:29
Hi,I want to call some java methods within my C++ program.every thing is ok but when i use env->findclass("MyClass") ,this function returns NULL.MyClass is in my CLASSPATH.Do everyone know the reason of my problem.how can i solve it.Thanks,Ali
1637 byte By
TomVlugt at 2007-9-26 7:10:04
I have read the topic "When will Java be fast?" and I saw some subjective and objective criticisms about Java. My criticism about Java is pure objective:My first experience with Java was evaluating JBuilder 1.0 (JDK 1.0x) under W95. It was slow and the IDE didn't run well. Okay this was the ...
2230 byte By
malu4ram at 2007-9-26 7:10:06
Hi.. I am trying to invoke crytal report from my JSP in weblogic at....C:\weblogic\myserver\public_html\crystalReports\ViewReport.jsp The jsp code: <HTML> <HEAD> <TITLE> JSP invoking Seagate Crystal Reports </TITLE> <%@ page session="true" ...
85 byte By
ger1 at 2007-9-26 7:12:03
Where can I find information about algorithms used by GC?Thanks.
615 byte By
inicol at 2007-9-26 7:15:44
I am working with Tomcat32. I made a taglibrary(that includes just one tag, for testing) and implemented the tag in java (a simple one, it's just writing a text). I put that tag into a JSP page and when I go to that page, the tag displays a text on the screen. Everything works just fine, but ...
Hi all,I'd like to have a clarification about the server and client option as parameter when launching the JVM. Can anybody explain a minimalist rule when to use the "server" VM and when to use the "client" instead.Thanks a lot.Francesco
Hi all. I'm sorta new to JNI and I had a question. I have a pre-existing dll called "mydll.dll" and its header file "mydll.h"I am trying to access a function " int GetVersion() " using JNI.I have written the following C funtion to access the function in the dllJNIEXPORT jint ...
603 byte By
Basset at 2007-9-26 7:20:05
Hello Im having some problems with assigning c++ string to a jcharArray, my native code looks something like this (a lot more, but this is where it goes wrong):JNIEXPORT void JNICALLJava_LoadData_Core(JNIEnv *env, jobject obj, jcharArray name){...char ...
I have installed the jre1.3.1_01 for LimeWireLinux.bin (required).bash#sh LimeWireLinux.bin (return this message)No Java virtual machine could be found from your pathenvironment variable. You must install a VM prior torunning this program.What do I about this? ...
Is there a way to read (get a path from) the user's Windows NT Registry in Java without using Native methods (JNI)? I would definitely appreciate it if someone had some insight on this. I'd rather keep this application pure Java as much as possilble and not get other languages like C or C++ ...
I want to change the java application(*.class)to the exe file in WIN OS in order to update its speed, can anyone tell me some useful infomation? thanx in advance.Holly
547 byte By
minlu_us at 2007-9-26 7:22:12
We are running our Java application developed with IONA Orbix(Orbix 3.3.1). Once in a while we would receive a SIGINT. On receiving SIGINT, our application shuts everything down.I have talked with IONA. They are not generating any SIGINT. I also looked about JVM. There are a number of mentions ...
555 byte By
kyesoo1 at 2007-9-26 7:23:16
Using JNI, I want to call the java class from C..Generally, I use "JNI_CreateJavaVM" method to create JavaVM's instance.when it continually call C execution file, it use much memory owing to creation of much JavaVM's Instances.1. I want to know how to use before create instance without creats ...
555 byte By
kyesoo1 at 2007-9-26 7:23:17
Using JNI, I want to call the java class from C..Generally, I use "JNI_CreateJavaVM" method to create JavaVM's instance.when it continually call C execution file, it use much memory owing to creation of much JavaVM's Instances.1. I want to know how to use before create instance without creats ...
569 byte By
ruerup at 2007-9-26 7:25:03
Hello,i have the following problem: i have to run one programm aggain and aggain, most there are several at the same time running.now the problem: the system load is rising higer as high (eg: 21.76!!!)is it possible to run the same program for example 20 time, so thar they are all running at ...
I'm very new to JNI. So my question is wether there is no chance to access an given DLL? Do I have to compile this jni header file and build a new DLL?Thanks,Robert
2020 byte By
wal18b2s at 2007-9-26 7:26:15
Ok this is my first attempt at JNI and im having a little trouble!!! Could someone please check this following code. As im getting a linkerrorThis is the java classpublic class Strings{ public native String getProcesses(); public static void main(String argsv[]) {Strings n=new Strings();String ...
How many threads can a program have?
I have a difficult problem. I hope, someone can give me an advice. Unfortunatly I don't know much about Java and COM. But I have to get in to it. Maybe there is a solution for that problem.The problem:I do not have a working COM-component , but I already have the the idl-file that describes ...
230 byte By
gcorb at 2007-9-26 7:33:37
Is there a way to determine what class is currently running in a JVM/process, from outside the JVM/process? Given there are, say, 20 JVM instances running, how can I determine what is running in each instance?
I am gettingh the unsatisfiedLinkError what might be this error
2539 byte By
FerJava at 2007-9-26 7:36:44
I'm new to JNI. I get this error while trying to run a program :Exception in thread "main" java.lang.UnsatisfiedLinkError: displayHelloWorldat HelloWorld.displayHelloWorld(Native Method)at HelloWorld.main(HelloWorld.java:9)the code of HelloWorld.java is class HelloWorld {public native void ...
hi how to call crystall reports dll from java.iam new to JNI.my requirement is to invoke Crystal Reports 7.0 from jsp.thanksraj
1014 byte By
lambu76 at 2007-9-26 7:37:27
I read a serialized hashtable from a file by this source code:ObjectInputStream in = new ObjectInputStream(new FileInputStream(dbPrjShareFile));Hashtable dbPrjShare=null;dbPrjShare=(Hashtable)in.readObject();Sometimes I receive this exceptions:> java.io.InvalidClassException: ...
155 byte By
smj_jmp at 2007-9-26 7:38:26
I want to share a JVM between two or more process(not threads owned by a single process),without using RMI,sockets,...just JNI.Thanks.
HiWhat is the procedure to run a java program, when the screan saver is activated(on windows 2000 OP)?
577 byte By
adco at 2007-9-26 7:41:07
Hi ; I have an app that uses c++ programs as well as java (of course - or else I wouddn't been in this forum , anyhow ...) ; while runing the program from the dos(I use windows2000) I am using the -Djava.library.path argument , and set the path were my sources are . I am using as well the JMF ...
Hi !I want to compile a JAVA-Project to an exe-File.Important for me are1.) no additional installation for the user necessary on a normal Win-PC2.) Only a double-click necessary to start the programIs there a possibility for me as developer to make such JAVA-programs. Please give detailed ...
1138 byte By
anx2 at 2007-9-26 7:43:26
Hello, I have a AWT Canvas class with native paint() method. One thing I want to do is to save the rendering of the Canvas into a JPEG file. The code is like this: class MyCanvas extends Canvas { public native void paint(Graphics g); public void OnSaveJPG() { Rectangle rect = getBounds(); ...
219 byte By
tnr009 at 2007-9-26 7:44:01
I'm not sure if this is the right forum for JNI, but, I'll take a shot anyway. Can someone tell me where can I get documentation regarding JNI? Also, does JNI comes default with the latest JDK?TIA
I have an error in my serverthis error is :name of this pop up : java.exe application errormessage : the instruction at "0x200b95446" use memory adress "0x2281f190". The memory can't be "written". Please help me !!!
308 byte By
kestenm at 2007-9-26 7:49:53
Say I have a native method that returns a jstring. Based on certain conditions, I may want to return the equivalent of a java null object reference. I've tried returning zero in a test program, and this seems to work, but is it gauranteed to work on all systems and in all JVM implementations? ...
Hi all, I need to use JNI in my project. When compling the C file into .so, I need to link another library also.I use the following sytax to complie in Suncc -G -L. -o JNIProg.so -lmylib JNIProg.chowever, the java cannot ran and UnsatisfiedLinkError is throw. If I try to recompile the file with ...
HiI need to access a tape drive from java.I could use JNI and wnaspi32.dll , i guess (right?), but is there some other way to interact with SCSI devices ?Are there any APIs available to do this? or to use at least ASPI?Or will have to resort to JNI?Kindly answer quicklyThanx in advance. ...
266 byte By
lambu76 at 2007-9-26 7:54:33
Is there any java native methods to transfer or copy files from one local dir to another local dir ?For doing it, now I open a file in 1 dir, read it in a buffer and write this buffer in a file in another dir.Is there another faster way ?
I'm getting the following error. Can anyone help ?The DLL is in my path and i have full permissions on the file. I am working in iplanet 6.0 thanks Simon loadNativeLibrary:VirtualMachine:Sun Microsystems Inc.:NasNdsJNIjava.lang.UnsatisfiedLinkError: C:\AT\bin\NasNdsJNI.dll: Access is deniedat ...
760 byte By
fedetxf at 2007-9-26 7:57:12
I don't have lots on memory and whenever I run 2 java programs, it becomes very slow. Is it possible to have a JVM running a "launcher" aplication and starting programs all in the same VM?I guess it would have security risks, but I think it would be great to keep the VM running and optimizing ...
794 byte By
ebis at 2007-9-26 8:01:42
Hi.I'm trying to compress a file, but no book I've got says anything about it, and I couldn't see much in the sun tutorials, etc.Looking through the API, it seems like I should be using stuff in java.util.zip, but I don't know ehat to use, eg what is the best Zip format.I tried this code: ...