Printing to network printer

252 byte By screensamplesa at 2007-10-2 20:17:24
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.

Urgent On which languaue jvm is written?

47 byte By Raghumanohara at 2007-10-2 20:17:43
On which languaue jvm is written?

OpenSource frameworks to ease JNI development

587 byte By yair_zaslavskya at 2007-10-2 20:19:05
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 ...

Error ID : 4F530E43505002EF 01Java VM: Java HotSpot(TM) Server VM (1.4.2_04

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 ...

JVM does not update file's Last Modified Time

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" ...

using vectors/array lists

1192 byte By ercricketa at 2007-10-2 20:21:34
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 ...

Stupidly Easy - retrieve a single line of input

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) { ...

Using JVM/JRE on ROM DOS

568 byte By KittieMalicea at 2007-10-2 20:22:39
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 ...

Efficiency of passing a member variable as param, versus w/ GetIntField

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 ...

Returning byteArray to Native Code

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

Why Performance degradation while using Sun Hotspot JVM?

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 ...

jbytearray and BYTE[]

227 byte By zielonyplota at 2007-10-2 20:26:25
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

Backgrounds of heap size measurements

1840 byte By lldaedaluslla at 2007-10-2 20:30:32
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 ...

-client JVM option under J2SE 5.0

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 ...

integrating my java class in a c# thick client application

369 byte By skywalker2006a at 2007-10-2 20:34:16
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 ...

Caching jmethodID

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 ...

Bytecode class names (nested classes)

656 byte By lldaedaluslla at 2007-10-2 20:41:10
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 ...

Bytecode class names (nested classes)

656 byte By lldaedaluslla at 2007-10-2 20:41:28
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 ...

Interesting behavior while Calculating Elapsed time for method execution

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 ...

Help storing file in c into jbyteArray using JNI

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 ...

Communicate with EXE file

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 ...

Intentionally leaving a race condition for a frequently-instantiated class

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 ...

JNI CallStaticObjectMethod returns NULL

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 ...

Taking too long for some reason

1460 byte By JavaNovicea at 2007-10-2 20:50:36
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++){ ...

Java HotSpot crash - EXCEPTION_FLT_STACK_CHECK - DeoptimizationBlob

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 ...

VMWare software installation-- impact of java code

565 byte By BandaruNarendraBabua at 2007-10-2 20:53:34
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 ...

JVM crash - but only in debug mode

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 ...

SIGSEGV problem

1633 byte By Pernalesa at 2007-10-2 20:54:43
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 ...

MEMORY increase in java 1.5

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?

Help converting char[] of c to base64 string for encryption/decryption JNI

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.

JVM Crash On Windows 2003 server with dual CPU -1.4.2_11-b06 mixed mode

23716 byte By core_javaa at 2007-10-2 20:55:13
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 ...

Question regarding JNI and windows

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 ...

JNI: The specified procedure could not be found.

1195 byte By titanandrewsa at 2007-10-2 20:55:56
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 ...

LPBYTE format in pc/sc

524 byte By zielonyplota at 2007-10-2 21:03:09
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' ...

Entry point not found for js32.dll

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 ...

Question regarding JVM's on Linux and processes... (1.5.0)

882 byte By cjustus6a at 2007-10-2 21:04:43
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 ...

CMS Garbabge Collection - app performance drops badly

3356 byte By Kieran.McPeakea at 2007-10-2 21:05:29
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 ...

Unexpected Signal : 11 occurred at PC=0xFEDE14F8

1287 byte By Maya--Raja79a at 2007-10-2 21:08:10
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 ...

simple browser with system cache

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 ...

How to show modeless dialog in c++ dll

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

can't cxecute this command

4607 byte By dxuranusa at 2007-10-2 21:17:02
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 ...

How to access Internet Explorer in Java?

338 byte By kulk_ananda at 2007-10-2 21:17:46
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 ...

Multiple Server VM Instances

1493 byte By picpromusica at 2007-10-2 21:18:51
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 ...

JNI -- Windows Service (Java Service Wrapper) -- Winamp

759 byte By PiriLovea at 2007-10-2 21:18:53
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, ...

An unexpected exception has been detected in native code outside the VM.Une

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 ...

java.net.SocketException: Unexpected end of file from server

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 :- ...

JVM Source code

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

OutOfMemoryError with 32-bit JVM on AMD64 (works on i586)

2897 byte By adavies42a at 2007-10-2 21:27:01
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 ...

Running Out of Perm Space

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 ...

Sun Java 1.4.2 and MS JVM

1396 byte By wanderer0621a at 2007-10-2 21:27:38
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 ...