Neeraj Macker

Ranch Hand
+ Follow
since Nov 10, 2004
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Neeraj Macker

i have to set the JVM property"filename.pol"
in order to call System.exit for the applet.

which tag element in JNLP file can i use....please give an example as well...
15 years ago
I agree with you Scott. I work for power plant automation software where we have to support our old clients, thats why this problem. but i now ran the application successfully in tomcat 5, and i hope it will be no problem with the old clients....Thanks a lot!
15 years ago
i am deploying an applet with jws on tomcat 3.2. i did add the mime type for jnlp in conf/web.xml but when i call the jnlp file in the browser i get to see the contents of the jnlp file....why doesnt it get interpreted so as to run my applet?

i have been successful in deploying tha same applet on tomcat 5.
15 years ago
I have a java applet which uses a couple of other resources like sound files and other java source files. this java applet is packaged into a jar file along with the other java sources it uses. This jar file is placed in a directory which contains some sound (.au) files. this directory is deployed on tomcat . I normally work with this applet structure using javascript in web browser but because it plays a lot of sound, the IE crashes. So i decided to run this applet with JWS. I packaged the directory contents i.e the .au files and the java sources jar files into a jar file. and placed the jnlp file parallel to it. but my applet is not running.....i am pasting my jnlp....


<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="">
<title>Test JWS</title>
<vendor>Java Developer Connection</vendor>
<description>Demonstration of JNLP</description>
<j2se version="1.2+" />
<jar href=""/>
<applet-desc documentBase="" name="HornApplet" main-class="HornApplet" width="540" height="310">
<param name="scriptable" value="true" />
<param name="TestFlag" value="false" />
<param name="SoundLocation" value="" />
<param name="ServletLocation" value="" />
<param name="HornPipeName" value="/txpproz/mmi.1/mmiHupePipe" />
<param name="SoundClipCount" value="10" />


the directory structure:


jhorn.jar consists of :

jhornapplet.jar contains :
other classes
15 years ago
i have only one jvm on my system
15 years ago
mayscript attributes are added when the applet needs to interact with windows or javascript objects in the html page..i am not doing any such activity...

i have found out my problem. my firefox installation is unable to find a java plugin. inspite of there being all dlls in the firefox/plugins directory...can u help me sort this out...i am working on windows xp
15 years ago
someone please help...
15 years ago
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" name="Connection Check Applet" width="1000" height="100" codebase=",2,2,0">
<PARAM name="java_code" value="connectionCheckApplet.class">
<PARAM name="type" value="application/x-java-applet;">
<PARAM name="host" value="lot420">
<EMBED type="application/x-java-applet;" name="Connection Check Applet" width="1000" height="100" pluginspage="" java_code="connectionCheckApplet.class" host="lot420"/>

Your browser can't display this applet. Sorry


i have jdk 1.5 installed on my client, so i guess that shud not be the problem.

the error in the javascript console of firefox points to:

function isConnected()
var server="lot420";
var applet=document.applets["Connection Check Applet"];
this line-->var value=applet.isConnected();
if(value == -1)
var mess="Die Verbindung war unterbrochen.\nDas Start Fenster is nicht mehr aktiv.\nBitte schliessen Sie dieses Fenster.";
[ February 07, 2006: Message edited by: Neeraj Macker ]
15 years ago
<jsp :p lugin type="applet" code="xyz.class" width="1000" height="100" name="XYZ">
<jsp :p arams>
<jsp :p aram name="cookie" value="<%=cookie%>"/>
<jsp :p aram name="host" value="<%=hostName%>"/>
</jsp :p arams>
</jsp :p lugin>

this code works fine in IE. but in firefox it gives error that the applet has no parameters
[ February 07, 2006: Message edited by: Neeraj Macker ]
15 years ago
thanks, but the JAVA_OPTS does not work. I added the CATALINA_OPTS in and now it works.
15 years ago
i have read the other discussions on the same topic but none of them explains the procedure for linux environment. I have my tomcat and jdk on red hat linux. how can i set the heap space value? when i do it in JAVA_OPTS and restart the tomcat..nothing changes....please help....
15 years ago
my tomcat is 5.0.28

my application runs fine on the server i have. but it gave out of memory error: java heap space...on a server with similar configuration ,during testing. i am just wondering why this might have happenend.

as for tests on my server,as soon as the free memory reaches 2mb the gc takes place and the free memory again shoots up to 30 mb. i dont find any trouble here.

thats all my problem is.
15 years ago

Originally posted by Virag Saksena:
It seems like you want to know what objects have been created inside the heap and how they are reachable. Here is what you can do ...
Download the trial version of JAM from
You'll need a postgreSQL or Oracle database for use as a repository
Dump the heap before your memory usage goes up
Rename the heapdump file and dump the heap again after the heap memory usage goes up
Now you can load and compare the heaps to see what objects/instances have been created and how they are reachable.

i am new to all these things and need detailed instructions to be able to use this package. i cudnt find much on the website. also i dont have any database available.
15 years ago
i have already printed and seen that the total memory with JVM(runtime.totalMemory()) is 60mb. but the runtime.freeMemory() is only 20 mb. i want to know where do all these mbs get lost when there is no web application running on the server.also, i had asked how to use the options with "java" because i have to mention a class name which shud have a main metho. mine is a JSP web application.
15 years ago

Originally posted by Ilja Preuss:
Well, Tomcat probably *is* doing a lot behind the scenes, even if your JSP isn't.

If you are using Java 5, jconsole.exe will give you much more reliable information about memory usage, by the way.

i did try to run jconsole.exe but it opened up a GUI and asked for connection,i dont know what to enter there.i run the jconsole on the server itself so it has to be a local connection...but how shud i proceed, i press connect but nothing happens.
15 years ago