Hi frnd'sI want to print the text file to the network printer.i had used the code'copy f ilename.txt //computername/printername'.I am able to print to the local printer but not to the network printer.can anybody guide me.
On which languaue jvm is written?
Good day,Last time I used JNI was several years ago, it I remember it was a difficult experience.Can someone recommend me on open source projects/frameworks which I can use to ease the development of JNI code?Can you recommend any other alternative for exchanging information between c++ and ...
3596 byte By
sforyesa at 2007-10-2 20:20:12
Weblogic 8.1 sp3 on solaris9 is crashing giving below error .Unexpected Signal : 11 occurred at PC=0xFED6D550Function=[Unknown. Nearest: JVM_Write+0x17B90]Library=/data/mss/bea/jdk142_04/jre/lib/sparc/server/libjvm.soCurrent Java thread:Dynamic libraries:0x10000 ...
1369 byte By
pudila at 2007-10-2 20:20:22
Here is a sample program I used:import java.io.*;import java.util.*;public class TestFile {public static void main(String[] args) throws Exception {FileWriter out = new FileWriter("1.txt");out.append("Just a test");out.close();}}On first time program runs ok - it creates a file named "1.txt" ...
greetings. i would like to open several text images and look at each entry and place the values into a vector or array list. there are approximately 20 text files, so i created a for loop. i am having two problems.1. when i initialize the vector/list within the loop everything works relatively ...
1190 byte By
petrocka at 2007-10-2 20:22:29
I've been looking for an answer to this for over an hour and it seems so elementary.public String getString(){BufferedReader br = new BufferedReader(new InputStreamReader(System.in));String nam = null;try { do {nam = br.readLine(); }while(nam != null);} catch (IOException ioe) { ...
Hopefully this is the correct forum to post this in. What I'm trying to do is to use a program such as JexeWrapper to bundle a jvm/jre with my newly formed .exe file and then run this on a portable scanner (handheld device) that only runs ROM DOS. I programmed this so it would only run in ...
715 byte By
safira at 2007-10-2 20:23:18
Assume that there is a utility method that stores fieldID as a global reference (so no overhead of field ID look-up), and that each native method calls that method to retrieve a per-object integral value (a native pointer). The question is, would it be any more efficient to change method ...
125 byte By
ess_jaya at 2007-10-2 20:24:43
Hi,Can any body tell me how to call a java function that is returning a byte array in native code.Thanks
541 byte By
vinojoya at 2007-10-2 20:26:11
Hi,I am doing performance tesing on Oracle Apserver 10g Release 3 (10.1.3.0.0), By default OAS comes with Sun JDK 1.5. When I use Jrkit JVM 1.5.0_06, I am getting more than 80% improvement on Hits/Sec (Load Runner). Present JVM options are given bellow.Jrockit: -Xms1024m -Xmx1024m ...
Hi!Can anyone tell me how to transform jbytearray to BYTE[]?Or how to copy all elements from jbyteArray to BYTE[]?Thanks for reply!Best regards!Message was edited by: zielonyplot
Hello,after building a JVMTI agent for measuring the size of the java heap (in a first step) I found out about many other ways of measuring the heap. Initially all of them seem to be contradictive to my agent, but step by step I brought some of them in harmony. My agents is interested in ...
1187 byte By
J_Shotta at 2007-10-2 20:33:05
We are in the process of upgrading an application from JDK 1.4.2 to 5.0. One of the features of 5.0 is, supposedly, a reduced memory footprint. However, we aren't seeing that because we seem to only be able to fire up the server JVM.We have an old E3500 machine with 4 processors and 2 GB of ...
Hi, I have deloveper a java API which is mainly used through my java system. I do however require some of my java functions to be called with in a c#.net application. Can anybody recomend a method of doing this that actually works (converting the java class to a .net dll wont be vaible, it has ...
836 byte By
safira at 2007-10-2 20:34:21
I first thought that i could cache one as a global reference:static jmethodID run = NULL;jmethodID localRun = env->GetMethodID(Runnable, "run", "()V");if (!localRun) return;if (!run) {run = env->NewGlobalRef(localRun);}But this causes a compile error:error C2664: 'NewGlobalRef' : cannot ...
Hi,with my JVMTI agent on a 1.5 JVM I found class names like this:Lsun.misc.URLClassPath$JarLoaderLjava.util.HashMap$Entrywhich show nested classes inside of other classes. The point is, that those nested classes (behind '$') here have a name.But what about ...
Hi,with my JVMTI agent on a 1.5 JVM I found class names like this:Lsun.misc.URLClassPath$JarLoaderLjava.util.HashMap$Entrywhich show nested classes inside of other classes. The point is, that those nested classes (behind '$') here have a name.But what about ...
2582 byte By
Binoda at 2007-10-2 20:42:31
Hi,I am doing a scalability testing for one of our product. I am using Apache Jmeter for my performance testing. The Jmeter uses 100 users with 100 thread per user.For calculating the elapsed time of a methods execution I have taken startTime = System.currentTimeMillis() when enter into the ...
425 byte By
shyam00a at 2007-10-2 20:44:28
Hi,I'm trying to pass a byte array to one of my java functions using JNI and c; however, I'm confused about how to do the conversion. Basically, I have a simple txt file with some random data. I want to get the contents of this file and store them into jbyteArray so that I can pass it in the ...
526 byte By
truehhha at 2007-10-2 20:48:21
Hello guys!Here I have an executable file crypt.exe which is used to generate a file with inputs as prompted.Steps in DOS-based console: 1,input crypt (enter);2,input date(enter);3,input name(enter);......;at last,a file is created.How could I realise the same function in JAVA.Can I put all the ...
445 byte By
safira at 2007-10-2 20:49:31
Just wondering what folks think about this:/** * This method is intentionally not synchronized despite lazy initialization of <tt>someField</tt>, because * the overhead of synchronization for a myriad of messages would outweigh the the occasional * double-initialization of ...
434 byte By
gpahrena at 2007-10-2 20:49:51
I have a program that receives messages from a queue and passes it to a Java program via JNI (using Windows C). I am making a call to a static java method using CallStaticObjectMethod(). Every once in a while this call returns NULL. When it receives NULL, all subsequent JNI API calls return ...
import javax.swing.*;public class Fibonacci{public Fibonacci(){}public static void main(){int numberinseries = Integer.parseInt(JOptionPane.showInputDialog("What number?"));int last = 1;int onfiltered= 0;for(int amountdone = 1; amountdone < numberinseries; amountdone++){ ...
27530 byte By
Rolv_a at 2007-10-2 20:52:56
Hi,I've spent days and days trying to figure this one out. Apparently this crash happen pretty randomly and I haven't been able to reproduce it on a regular basis. The crash may have something to do with our recent upgrade from JDK 1.3 to JDK 1.5.0_06-b05 mixed mode. Further I have yet to ...
Hi,Recently VMWare software has been installed on one of the server. We have stand alone java application onthe same server.after installting the software that java programm is not running.when we execute like on command promptc:\java testit is giving the result liec:\java testc:\that means the ...
3347 byte By
calumma at 2007-10-2 20:54:14
I get a JVM crash (with hs_err_pidXXXX.log file saved) when I run my application in debug mode, but not in "normal" (non-debug) mode.I'm using JNIWrapper to access a COM object, and it's when that call is made that the crash happens.Any ideas as to how I can work out what's going on?The ...
Hi all,I'm trying to create a program to access to a native library by JNI.I need to use a varible among the different callings to the JNI functions (in the C++ side). This variable is a pointer to a data structure.My problem is when the calling to the first function ends, I think that the JVM ...
106 byte By
John_33a at 2007-10-2 20:54:45
after upgrading to 1.5 the SIZE/RSS for the programs have increased considerably. Is that expected?
198 byte By
shyam00a at 2007-10-2 20:54:55
Hi there,I'm trying to convert a char * or a char [] in c to a base64 java string to send to one of the java functions for encryption/decryption. Any help will be appreciated. Thanks.
Hi,We are getting a JVM crash at a customer site. Can some one please tell if they ever saw this crash ? Suns bug database does not have a bug with the id we are seeing.ANY clue or help would be appreciated. Thanks in advance.Here is the hs_err_pidxxxx.log dump## An unexpected error has been ...
421 byte By
shyam00a at 2007-10-2 20:55:17
I am trying to read in a jbyteArray which is passed to a java function to decrypt some data; however, when I read from the file and store it into a jbyteArray, it picks up some extra characters ( 7 to be exact ) which makes the java call fail. I am not sure why it is picking up extra chars. I ...
Hi All,I think everyone who has ever worked with JNI has seen this error at some point "UnsatisfiedLinkError The specified procedure could not be found."I have a problem where I have an existing JNI library ( C++/Windows) that has worked for some time. I recently upgraded the compiler and ...
Hi!I have to use following function to write data to SLE4428 memory card:LONG SLE4428_Write_Data_Without_Protect_Bit (IN SCARDHANDLE hCard,IN LPBYTE pbTransmitBuffer,IN MM_ADDRESS aStartAddr,IN DWORD TransmitLength);where LPBYTE is 'unsigned char *' type.I have to write to SLE4428 '-128' ...
14015 byte By
ketanrsa at 2007-10-2 21:03:32
Dear Friends,I am trying to connect to a Domino server using NRPC (Native call based) connection. I have added Notes Client path in PATH variable (double checked this). My machine is W2k and Java version 1.4.2.The following is the code which I am trying to run and getting erorr as,"The ...
We have our server software running on 2 seperate but very similar machines (Debian Linux, AMD processors, ... ) On one of the servers, I see one process per java thread ... resulting in a single instance of the software creating 10 cloned processes... I see this in the docs and understand why ...
Hi,My application performance dips significantly when CMS Garbabge Collection is occuring - it seems to be just after the CMS-concurrent-sweep-start debug message. Any ideas about better JVM setting very much appreciated. Further details below.Thank you.Kieran.My Java 1.4.2 settings on a high ...
Im getting this error in hs_err log file when my application is crashing.Unexpected Signal : 11 occurred at PC=0xFEDE14F8Function=[Unknown. Nearest: JVM_FillInStackTrace+0x4D70]Current Java thread:Dynamic ...
369 byte By
dalioa at 2007-10-2 21:12:27
Hello,I'am working to developpe a simple browser (java) with system cache, the idea is to browse a simples pages HTML in several timesand calculate the time of browsing.So, i have to empty the cache and coockies to load an other.i am working to use dll WININT on using JNI interface but it ...
216 byte By
udira at 2007-10-2 21:13:46
Hi, I am trying to write a c++ dll that contains a modeless dialog and then call it from Java without any success. When I try to load the dialog it freeze. Modal dialog works fine.Thanks, Udi Raz
i written a few line codes to get system information under linux. here is my code:package N.E.;import java.io.BufferedInputStream;import java.io.File;import java.io.FileInputStream;import java.io.IOException;import java.util.regex.Matcher;import java.util.regex.Pattern;import ...
Hi,I am working on windows 98. I want to write a swing based Java program that embbed Internet Explorer into the JFrame.I used JDIC library for it but JDIC does not support windows 98.So, is there any library to embbed internet explorer into the JFrame on windows 98 ...
Hi. Is there any limitation in instance count for the server vm implementation.If i start multiple java instances with the server vm it does crash if i start the fifth server instance.First i thought it was a memory Problem because it crashes with"Could not reserve enough space for object ...
Hi! I'm developing an application to control Winamp player and this application is supposed to run as a Windows Service (via Java Service Wrapper). Winamp ishandled via JNI (c library dll).The thing is:When I start the application as a service, my application tries to control Winamp (eg play, ...
1034 byte By
Nivedhaa at 2007-10-2 21:20:49
Hi All,I am getting the following two exceptions at random times.The application runs well some times but at times it throws the following exception.This happens when i keep more than window of application opened.1.An unexpected exception has been detected in native code outside the ...
3872 byte By
bbranga at 2007-10-2 21:22:48
Dear All,Issue:- When applet sends POST data via browser, the server does not receive the same.On checking the Java Console, the following error is displayed."java.net.SocketException: Unexpected end of file from server"O.S :- Win XP, Service Pack 2Browser:- I.E 6, Service Pack 2Applet :- ...
113 byte By
Hashina at 2007-10-2 21:25:32
Hi all,Does anybody know from where can i get the Sun's JVM source code.ThanksHashin
I'm having an issue trying to deploy an existing project on a new box. The current server is an Intel box, with four Xeons and 4GB of memory; the project runs under Java 1.5.0_05, and I allocate it 256MB of memory; under these conditions, it does not crash. The new server is an AMD box with ...
635 byte By
Saisha at 2007-10-2 21:27:03
We are seeing our perm space gradually increase throughout the day until we eventually get a fatal HotSpot JVM crash. We have implemented a few JVM settings that we hope will help. However, I had a few questions about perm:> Can an object ever migrate from tenured into perm? Meaning, a truly ...
A customer has MSJVM loaded on their win2000 server running SP4. In order to run our application, sun java 1.4.2_07 needs to be loaded. After loading 1.4.2_07, whatever java applet I am trying to load hangs. The screen locks up, and the status bar seems like it's trying to load the applet. The ...