764 byte By
kbonacc at 2007-9-26 1:13:56
I am calling a C++ library from Java using JNI.The platform is SunOS 5.7 (SUNWspro compiler, Java j2sdk1_3_1)The test JNI program works fine until I add a call to my custom C++ code.When I declare one of the objects in the client library, the program hangs at the delaration. I have a print ...
592 byte By
ljohan at 2007-9-26 1:15:52
Help,I have build a couple of calculation applets that are working fine on the test machine (winnt/apache) but if i upload the total website to a linux/apache machine some of the applets are not working. I have looked down the code and the code of the working applets are not different from the ...
234 byte By
delucaf at 2007-9-26 1:15:54
is it possible to compile any .java files or .class files to an exe program for Win32 ?are there any way to create an pice of software, and lauch it on any computer with out installing jdk ?Merci, thank you
815 byte By
xulifeng at 2007-9-26 1:19:26
From within an EJB I am trying to cast a serializable object, that was passed into this EJB, to its original type. The process ended with a ClassCastException, even though I have double checked that the object being casted is of the correct type and fully qualified package path. It turns out ...
603 byte By
huanghwh at 2007-9-26 1:22:11
hi, I don't understand gc now! This simple example will throw OutOfMemory, Why? Does WriteObject have bug ? public void test_ObjectWrite() throws Exception {ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("work/test.oos"));int[] data;for(int i =0;i<10000*10000*1000;i++) ...
974 byte By
snodx at 2007-9-26 1:27:59
Hi all,I have a Cobol application running on a Linux machine. The application takes in certain inputs from the user (from the Linux command prompt) and stores them within text files in its local directory. Again when the user enters a search keyword the Cobol looksup these files and retrieves ...
I have been working with JNI on the EPOC|Symbian platform. In an initial version of my application I was able to implement a C++ application which invoked a Java class, this java class then called native methods which via the use of a symbain specific mixin dll interface can gain access back ...
Hi, I want to send a user defined object from one process i,e one JVM to another process.I am running two different java file from the console and i want to pass one object from one java file to another java file which is running on another JVM
Hi, I have a program written in Perl. I want to run the Perl program using Java. If there is a command which can allow me to call the perl program from Java program, please advise me.regards
HiIs there any special consideration for a Java Programto work under UNIX.My problem is as follows,I have a Java program say "JavaProg.java". I create its class file under Windows-NT i.e."JavaProg.class" after compiling the java code usingthe command "javac JavaProg.java".Everythings perfect ...
658 byte By
mchahn at 2007-9-26 1:35:14
(Sorry for the cross-posting. I put this in advanced-topics before I discovered this forum).This method definition exists in ObjectInputStream.java:private static native Object allocateNewObject(Class aclass, Class initclass)throws InstantiationException, IllegalAccessException;I want to use ...
392 byte By
98028140 at 2007-9-26 1:39:42
i asked this question twice and in one of them i got the answer it can be solved by native methods but i am new at java i even dont know what is native code claerly so how can i iconize an application into the tray bar(the bar at which the clock works)i am using win98explanations with small ...
589 byte By
arjenm at 2007-9-26 1:40:57
Hi, we're doing some java development, both standalone and used within C using jni.The exact same application runs fine when used standalone.But when we try to use it within C (via jni) it hangs on Runtime.exec()... (Used both with a command string and with a command string-array)All this ...
600 byte By
fkhwaja at 2007-9-26 1:41:20
Hello,I need to run two different applications on one single NT box. One app would use jre 1.1.6 and the other is dependent on jre 1.2. The NT server has jre 1.1.6 already installed on the box now I need to deploy my other application which would use jre 1.2.Question is If I download and ...
1175 byte By
andyba at 2007-9-26 1:41:33
Is it possible to store/cache non-class JNI objects between calls?I know I can 'lock' jclass object to *env however I need to be able to do more than this.Implementation :C++ code for which I am not responsible for NOR will I ever get access to the source code needs to be built into a Java ...
I am trying to run java 2 project on the MAC OS X ...is there any way i can run and compile it on mac os x ....i know about the IDE i can use ie project builder.But is there any way i can run my java project on mac os x like on windows by downloading jdk 1.2 and doing it...i need to know how to ...
1083 byte By
hongmeid at 2007-9-26 1:42:36
I have my application running under Solaris.It even works with one Solaris machine, but doesn't work with another one. It's definitely some environment setting problem, but I just can figure it out. Anyone can help? Some library path for X11 not set correct. It's complaining about some AWT ...
672 byte By
ryanmicj at 2007-9-26 1:43:51
I have a class which uses some native methods. It works fine when I build it into the jar file for my entire application. I would like to make this class part of another jar file, and dynamically load the class when it is needed (using a URLClassLoader derivative). Doing it this way, the class ...
6168 byte By
jfgoofy at 2007-9-26 1:43:56
Hello everyone:This is my first post, so please no bashing if I don't get it all the first time. I have looked at this for days now to no avail. I also have read many many threads oon this site trying to get this fixed.The issues is when I do a GetStaticMedthodID call from C++ on RedHat Linux ...
I've recently installed version 1.3 of the sdk on our Solaris (2.6) server. The only previous version installed is version 1.1, which is in the /usr/java1.1 directory. The new version was installed in the /usr/j2se directory. I modified the java symbolic link to point to the /usr/j2se ...
725 byte By
cm_java at 2007-9-26 1:45:22
Who knows how does the JVM set the physical memory it wanted? Or is there any method to enlarge the JVM memory at runtime?When I use "Java xxx" to run a small class the Runtime.totalMemory() report a small total memory.And when I use "java yyy" to run a large class the method will report a ...
298 byte By
101207 at 2007-9-26 1:46:46
How does the 'suspend' method work in JDK 1.2 and JDK 1.3?Does it suspend the target thread after the interpretation of a bytecode instruction?How does it work when the target thread is executing native methods or compiled Java methods?Thanks in advance.
282 byte By
roey at 2007-9-26 1:48:26
windows XP is coming. no JVM.does that mean that a simple user would not be able to run a Java application on his PC?end of Java for PC application?what is a solution for that?should we go and look for another job?roey_b@hotmail.com
1)what is the difference between java web server and jrun2)can interface be extended,if yes why should we extendinterface?
252 byte By
ejones3 at 2007-9-26 1:50:37
June 21, 2001 5:45pm author love1990 replys with:hehe, your concept is so wrong. String is "Object", sure can get value back. Did you try the list program? Does anyone know what list program he is talking about?
Hi:Can anyone tell me which file contains all the registered application signature in win98/win200. I am using java to develop an application to open a file in windows system according to the file's extension. For instance, to open a file abc.doc use winword, to open a file abc.xls use excel ...
I've been running some server-side benchmarks and noticed that I need to "warm up" the application by running it several time before I get consistent numbers. I believe that part of this has to do with the VM optimizing things. Any insight on the role HotStop has to play with this warming up ...
hello, I have written a simple jni program as explained in the java tutorial. I works fine on Windows NT, but whan i try to compile and run it on redhat linux 7.0, i get a UnsatisfiedLinkError. I think i am going wrong while i am creating the *.so object.I have set the java.library.path system ...
345 byte By
EvilEzh at 2007-9-26 1:59:02
How can i load class at startup ?Let's say i've class Myclass.class and i want to load it. Actualy due to some Lotus/Domino security reasons i can't invoke some functions like System.getProperties() etc.(i got java.lang.SecurityException). There is soulution to load class by JVM not servlet ...
953 byte By
mlevalle at 2007-9-26 1:59:48
Windows minus Java http://www.iwks.com/news/180701.aspThis is good, in my view. Now we can be less concerned about only partially compliant VMs running on windows.Hopefully Sun will come to a license agreement witha party such as IBM to produce the "standard" JVM for windows (even though SUN ...
5780 byte By
samitpan at 2007-9-26 2:01:00
I have written a C++ DLL that has a class which accesses methods in a Java class through JNI. I wrote a C++ test driver in which I perform a couple of new on another class in the DLL(which have nothing to do with JNI). when a new is called a second time, the application crashes. The code is ...
184 byte By
kshimada at 2007-9-26 2:01:30
Is there a way to see which java processes are runningin Unix? ps -f does not work because the arguments passedto java are too long and get truncated
380 byte By
knoxor at 2007-9-26 2:06:26
Hi,I have a Java API that I have to integrate with COM and call the API from a VB application.If I make multiple calls to the Java API do I create multiple instances of the JVM ?If I do create multiple instances of the JVM is this a large overhead and will it slow the aplication down if I am ...
I have a DirectShow-based capture device for the Java Media Framework. My capture device loads a DLL and acceses it through the JNI. This DLL instantiates various DirectShow COM objects. Everything use to work fine...until I had to reinstall my system.I have reinstalled Windows 2000 from ...
According to the Java Live for Java 1.4 http://developer.java.sun.com/developer/community/chat/JavaLive/2001/jl0717.htmlThey did mantion about small footprint memory usage, faster starup time and faster rendering but all this features will only available on next beta which will releaseat Sept. ...
3440 byte By
ventural at 2007-9-26 2:14:11
Hello!I am an italian student who is attending computer science at Pisa University.I am developing a project and I have the following problem.I have written an applet that import the following libraries with the statements:import java.io.*;import java.net.URL;import java.net.*;import ...
378 byte By
mtndood at 2007-9-26 2:16:10
Say Im a application user and I want to start up 9 or 10 different Java applications. Is there anyway to run all the applications in the same JVM ? If each applicaiton needs its own JVM instance, memory use could quickly get big!Compare this to Visual Basic where the runtime machine (vb ...
HI allcan anyone give me the code (java application or applet)preferably(appln) which implements password provisionfor folders in system.i.e when i click on a folder it should ask for passwordand when authenticated access is allowed.please helpemail: shri_gururaya@hotmail.comthanksbelur ...
118 byte By
kenni81 at 2007-9-26 2:18:05
How to i create DLL without using visual c++? This is for creating the shared library to be used for JNI
486 byte By
kdastgir at 2007-9-26 2:18:55
HiIs there a possible way of sending a SIGINT, SIGKILL, or any other signal from a Java process running in one JVM, to a java process running in a different JVM on the same machine.I've the signal handlers written in my process and they do respond to singals (e.g. on pressing Ctrl-C) on the ...
960 byte By
Danijal at 2007-9-26 2:21:06
My biggest dream at the moment is to start Java class "halllo world" from C++. Following environments are being used:Windows 2000, Visual C++ and JBuilder4.0Im running out of ideas and it seems to me the more I look for a solution the more contradictory informations I get. In book CORE JAVA ...
HiI have some problem executing class file under UNIX. I have a directory under UNIX,/home/user1wherein I have placed a class file say "JavaProg.class"I execute "java JavaProg" from the above directoryand it generates the desired output. Now, I have another directory,/home/user2wherein I again ...
My Windows DLL is loaded and called from the JNI. My DLL creates a window for video preview. When running under Java, the window does not get messages passed to it. The mouse cursor becomes an hourglass when passing over this window.Question: how can I get Java to pass the Windows event ...
1466 byte By
oodip at 2007-9-26 2:26:27
I recently wrapped a Java regex package for use in C+-+- as I need a regex package for wide strings (16 bit characters). Anyway, occassionaly (about 25% of the time), I get an exception from Java when my C+-+- program ends. I have looked at my code and cannot find a memory problem. I clean up ...
661 byte By
san121 at 2007-9-26 2:27:39
Using System.loadLibrary(), We have loaded the dll from a thread class. The JNI environment is made available in the entire DLL. So In case of any error from DLL, the DLL throws an exception to the calling Java application. The thread does not stop after getting the Exception as the JAVA ...
2501 byte By
handtalk at 2007-9-26 2:27:50
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <jni.h>#include <jvmdi.h> /*#ifdef _WIN32#define PATH_SEPARATOR ';'#else UNIX #define PATH_SEPARATOR ':'#endif*/ int main(int argc, char *argv[]) { JavaVMInitArgs vm_args;JavaVMOption ...
I've been using the same upload servlet (based on the O'Reilly) for the past year. I noticed today that it throws an exception when trying to resize the image (after upload). Was wondering if anyone had any ideas about why this might be popping up now. I am running Windows 2000 Pro and ...
484 byte By
bolo at 2007-9-26 2:30:23
I have installed J2SE 1.3.1, and I have download hotspot server 2.0 vm. But when I try to install it I get a message from hotspot server installation program asking me for a JDK 1.2.2 or 1.3 version. Does hotspot server work with JDK 1.3.1?I have tried also by copying the server folder from a ...
Hi there:I used Runtime.getRuntime().exec("start abc.doc") to view the file in my java code, it doesn't work, but it works when I type in this at command line, could anybody help me out, super thanks in advance. Regards
Hi,I am in a project which use JDK 1.3 and JTAPI under Win 2000. Recently I have some problem, but I don't know why. I am appreciate of your help!For debuging purpose I use a lot of "System.out.println" to output. After running the application for 3 days. The JVM hangs up. In the Dos prompt ...