I have my java application running on a unix server and have to run an executeable on a diffrent server. the directory in which the executeable is placed is shared with a user name and a password. i have to execute that executeable by first logging into the share directory and then invoking ...
394 byte By
slash0 at 2007-9-26 12:22:32
Hi Gurus,Does the Clear method (hashtable, vector etc..) is a good option for garbage collection ?In other words, if I have a vector V with 100 elements and I perform a V.clear(), am I sure that the 100 elements are now candidates for the Garbage Collection ?Or is it better to write a loop ...
I'm stuck and hope someone can help out.I have an embedded PC with a VME backplane anda DSP card.Trying to build a Java GUI to read and write to the DSP over the VME bus.The embedded PC comes with a driver toolset that allows programmers to access VME "memory" via specific filenames.I can ...
hi i am try to compile c file to dll file using lc command on vc++6. but i recieves a messages that invalid switch -LDplz help me very very soon. i am really in need. moreover visual studio 4 is not available.plz mail me the solutionbyeShobi
Hi,i want to implement h.323 protocol using java.My objective is to place a voip call using h.323can any body help me by telling from where i should start......rgdsritu
So, my question is how the native method can ask the VM to pin down the contents of an array. Performing storage allocation and copying is too long for Java objects containing many primitive data types...Thank you !
1482 byte By
sn1 at 2007-9-26 12:28:06
The Java program uses JNI to call C++ code which uses vendor's dll. This is a mathematical model allocating huge multidimensional array. When the array size gets bigger, the JNI exits unable to allocate the multidimensional array. If I run some test with smaller dimensional array it works ...
450 byte By
wegie at 2007-9-26 12:28:18
Does anyone know if there's I way that I can programatically compress a Microsoft Access database?During use, Access databases grow in size, even when data has been deleted from tables, so you need to do a 'Compress'. This is fine from the Access GUI, but I need to do it from my Java app.I ...
hii am using some native methods in to my code ;can anybody tell me how to view the source code for the same ;nik
Hi, I am a student doing research in garbage collectors.I would like to now if there are any tools to Continuously monitor the contents of the java heap while executing the program.If no tools are available is it possible to build such a tool. ...
436 byte By
mschoenb at 2007-9-26 12:30:13
Hallo,we've a problem with the size of our JVM processes. The processes are constantly growing until we run out of swap space. We've tried JDK 1.2.2_06/07/08/09 on Solaris 8. What we found out is, that the C-heap is growing the Java-heap is ok. We're unning ATG Dynamo 5.1.1 but ATG couldn't ...
I can not find a solution for this problem.I know how to access primitive types with that Get<type>Field an Set<type>Field. But how can I access a primitive array in the same way?I don't want to use a parameter reference. But it seems to be the only way.Just to visualize it:A Java ...
906 byte By
dmorris3 at 2007-9-26 12:32:34
I keep getting UnsatifiedLinkError when executing a native function. I have several native functions that execute flawlessly before this particular one is called. The library loads fine. I have checked and double checked to make sure the names are correct.in java class = MyApp.java//my native ...
This is really interesting!!! I initially designed my JNI function to create a Java Object and then return this object back to Java. This worked fine if this function was only called 1 or 2 times. The JVM would crash on the 3rd time!!!So, I changed the code to have the object created from Java ...
336 byte By
raaju1 at 2007-9-26 12:33:46
i am trying to to make dll file for HeloWorld example using this commandcl -Ic:\jdk1.3\include -Ic:\jdk1.3\include\win32 -Ld HelloWorldImp.c -Fehello.dllit executes well but does nothing. No dll file is created. what is reason. i really need of it..plz help me. waiting desperatelyRaaju1 ...
335 byte By
raaju1 at 2007-9-26 12:33:47
i am trying to to make dll file for HeloWorld example using this commandcl -Ic:\jdk1.3\include -Ic:\jdk1.3\include\win32 -Ld HelloWorldImp.c -Fehello.dllit executes well but does nothing. No dll file is created. what is reason. i really need of it..plz help me. waiting desperatelyRaaju ...
we installed jdk 1.2.1 run time environment on solaris. weunderstud ,jvm included in jdk 1.2 package. can we install only jvm alone with out installing jdk? if so how to do that?
252 byte By
jmk2z at 2007-9-26 12:36:28
I want to use the Windows API. What do I do? Do I just have to include an import atatement? What do I import? Also, does anyone know where I can find a list of the functions that I can call and documentation on how to call them from Java?
394 byte By
rbenzvi at 2007-9-26 12:36:54
Hi AllI catch exception that occurs in my native code (c++ dll)and want to throw a java exception using the JNImethod ThrowNew.On WinNT it works fine.when I moved the code and try to run it on the LinuxI received an Unexpected signal 11 that throw the JVM process do you know what is the ...
1318 byte By
yangdyy at 2007-9-26 12:37:12
I'm trying to find the "right" VM memory/stack settings for our application that uses JNI. We are using JDK 1.3.1_01, SunOS 5.7 (and/or NT4). The application engine written in C++ is both memory and computation intensive, the GUI is in Java. The 2 sides communicate through JNI.What effect does ...
529 byte By
mattyrc at 2007-9-26 12:38:40
Anyone ever see this before?Assertion failed: offset < fFileSize, file ../../../src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp, line 256abnormal program termination I get it whenever I try to run my Java Swing based application. It's something that had been working, ...
559 byte By
bradtosc at 2007-9-26 12:38:42
I have purchase the core jave v1 fundamentals book. When I try to compile and execute the SimpleFrameTest in chapter 7, I get no response and java.exe is consuming 1 cpu. I have a dual processor machine running windows 2000 professional. I have two monitors and 2 video cards...version is ...
Hi,I was trying to parse and print an XML document with a simple java program(was using SAX API). I created a event handler. When I executed the the simple class file passing the XML document as CMD line parameter. First it prints some non-fatal error information and then prints XML document. ...
737 byte By
npalicha at 2007-9-26 12:42:31
Hi all, I am trying to access java object from my ASP pages that are running on IIS4.0 i currently have only sun's VM .when i try to access the java object from the ASP , i get a"No object for moniker error". IIS is not able to find my java classes.on doing some research i came to the ...
563 byte By
cdore at 2007-9-26 12:43:35
Hi,All the method calls (instance, static, newObject,...) in JNI come in 3 forms, that are different regarding the lastest argument(s), which are the actual arguments of the method call :- one that take a variable number of args- one that take a jvalue[]- one that take a va_list.Is there any ...
370 byte By
arashsun at 2007-9-26 12:45:38
I have written an applet, but sometime it starts to increase the size up to 40MB and IE crashes. I have to mention that I am adding and removing nodes to a Swing tree (JTree). Is there any problem with swing and applet. I also reading elements of an XML file. Is there any problem with XML ...
3628 byte By
cdore at 2007-9-26 12:48:20
Hi,I have a problem where GetFieldID returns weird values, that is not NULL. Those values, when further used in Get<Type>Field, crashes my program.Below my small test program.#include <jni.h>#include <jni_md.h>#include <windows.h> JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM ...
I'm using Jesper Grtz's nice little demonstration of getting CPU time for a thread(see http://www.javaworld.com/javaworld/javatips/jw-javatip92.html).Works just fine out of the box on Windows, but I'm running into the good ol' UnsatisfiedLinkError on Solaris.I'm on Solaris 2.8, Java ...
Dear Friends, I am developing a software in which I need to keep millions of long data values. I am storing them as LinkedList which conatains arrays of long values. But, after few million long values program is throwing OutOfMemoryError. I don't want my program to crash this way. Is there ...
448 byte By
Gedebuk at 2007-9-26 12:56:18
Hello there!I would like to add contacts and messages in Microsoft Outlook from a Java application. I am new to this topic, so I would appreciate any form of help (bear with me if this is not the correct forum).I have heard something about a COM technology, but I do not know anything about it ...
363 byte By
SANCERRY at 2007-9-26 13:00:12
In C++, I Start a JVM with an CLASSPATH.But during the life of my Application, I want to access a class, who's not in the original CLASSPATH. I can't stop my App, and restart.I wont to add my new jar in the classpath.If I use System.SetProperty( "java.class.path", .....); The JVM doesn't ...
1698 byte By
pradeepz at 2007-9-26 13:04:04
I have an application with JSP as front end & Java to perform the business logic. I have a data file(flat file) which has around 600000 lines of data. when I was coding i used some 10000 lines of data from original data file. Everything was working well and i got the desired output. But ...
1307 byte By
Warith at 2007-9-26 13:04:32
I have a Java server which services hundreds (currently 300-700 on average, target of 2000+) of simultaneous client connections, with a staggering number of long lived (but not permanent) objects.The docs for incremental garbage collection state: "The incremental garbage collector, which is off ...
Hi!Guy,I want to develope a client-server model using RMI.Client site access server io port. So I want use C function in Server to access io port. I don't know does it work or not?Have any security question? In Client and Server I use java appliction. Does anyone can answer the question? ...
hi, The following message was displayed when i ran my program with the -mx1m and the -verbosegcoptions.[GC 511k->441k(1984k),0.0206 secs]Could some please explain what this statement means
1714 byte By
Lemming at 2007-9-26 13:15:08
HI,slight problem that I can not seem to find the answer too. Example 1 below works OK, but example two gives me a UnspecifiedLinkError: displayHelloWorld. They both access the same the class (the 3rd listed), which then access the JNI (c++) file that talks to a win32 dll. Example 1, runs a ...
2666 byte By
NACHOV at 2007-9-26 13:16:09
I'm trying to add Java methods to an existing C++ program.I'm working in W2000 enviroment using Cygnus GCC compiler.Before adding these methods, I tested invoke example from Jni tutorial.All worked properly. But the problems arouse when I tried to run non-static methods.Here is the code I'm ...
987 byte By
dmorris3 at 2007-9-26 13:16:47
I have been trying to pass an array of objects from java to C. They are simple objects, only fields, no methods.Example...class User{ String name; int id;}public class JNIExample{ User[] users = new User[10]; public native void nativeCode(User[] usersarray); static {try{ ...
281 byte By
amccrea at 2007-9-26 13:18:13
I want to carry out a DOS command through java. To start DOS i use Runtime DOS = Runtime.getRunTime();DOS.exec("command.com");How do i / can i set up an input and output stream to pass commands to the newly opened DOS window and get the response?
809 byte By
Jwael at 2007-9-26 13:20:14
I have an application running on sun that creates 256k objects and stores them in vectors(approx size of these objects is 16M total). After creating 120K objects, I get the following error:java.lang.OutOfMemoryErrorat java.util.Vector.ensureCapacityHelper(Vector.java)at ...
2753 byte By
tlupi at 2007-9-26 13:21:42
I have problems with the javac from JDK1.4Beta3. The created code does not work with different older JRE's. and I have no idea why.I compiled with "-target 1.2" and run my application with JDK1.2.1. The following happens:A nonfatal internal JIT (3.00.078(x)) error 'chgTarg: Conditional' has ...
1753 byte By
NACHOV at 2007-9-26 13:22:25
Hi everyone,I haven't found any example with infomation about calling a second Java method from C++,after creating a VM from C++ also.Here is the code I'm testing:...JNIEnv *env;JavaVM *jvm;JDK1_1InitArgs vm_args;jint res;jclass cls;jmethodID mid;jobject jobj;char ...
Hi!I'm trying to carry out 5 servlets (they use XML).By the moment and while developing, I'm using Sun's JDK 1.3 + Tomcat + Xerces, on Windows NT 4.0But I want to install it on other Windows PCs, and I've got several questions:1) Is it necessary JDK to run my servlets or I need only JRE?2) ...
398 byte By
whx at 2007-9-26 13:26:11
I want to develop a program, in which a listener listen to JVM's operations. When a property of an object had changed, the listener can get out the property's name and value from JVM. That means I would like to monitor what JVM had done using some API. I kown that JDI can do this, but I ...
dear i want to access assembly code in java . plz help me. thanx.
Hi,I obtained a heap dump file by running my program with the -Xrunhprof option.The file contains stack traces like thisTRACE ...
819 byte By
Zwartan at 2007-9-26 13:32:24
A game applet which I have written runs well on my slow pentium 166 MMX and on one of my firends 166 MMX with doublebuffering and sounds, but it runs slower and the sounds play with cuts on faster computers like P2 333, P3 550 and P2 266.How can this happen?Another interesting point is that on ...
586 byte By
bpratt65 at 2007-9-26 13:33:01
I have produced an applet for the general public. Though Java is "cross platform" I am receiving a number of complaints that the applet doesn't work on various systems. The one that causes me the most concern is from IE users who don't have the latest VM (their Java Console shows VM version ...
463 byte By
emagnani at 2007-9-26 13:33:44
I am trying to trace method calls, using the following code as the first thing in my main method:Runtime.getRuntime().traceMethodCalls(true); However, I have not managed to get any debug info.I am using the jdk1.3 on Windows 2000. Does the virtual machine provided with the jdk 1.3 support ...
723 byte By
ipainter at 2007-9-26 13:36:17
I'm trying to find out how I can tell if a particular exe is running on a native environment. Ideally get access to the sort of info you find in the Windows task manager. Basically I'm trying to stop a java application from running if something like Microsoft NetMeeting is also running (which ...