Vishakha Ahuja

Ranch Hand
+ Follow
since Sep 13, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vishakha Ahuja

Isn't Java API all we need as a library ?
22 years ago
Hi, I'd used 1.2 in the past and I've been using 1.3 recently. I want to know what's new in 1.4 ?
22 years ago
I think the garbage collection thread runs as a daemon thread !
22 years ago

Originally posted by balakrishnap:
Pl explain about garbage collection


Java allows you to create as many objects as you want without worrying about destroying them. The JRE deletes these objects when it determines that they are no longer being used. This process is called as Garbage Collection.
22 years ago
Thanks col. I'm not sure how to use type 4. The book I'm referring to uses JDBC-ODBC with MS Access, so I thought of trying with Oracle also.
I'll try type 4 if i knew how to connect ?
Hi,
Can I use JDBC-ODBC bridge with Oracle 8i database ? How do I know if it is already present on my Windows 98 computer or I've to install it ?
When I try to set USER DSN in the Control Panel, I see 3 Drivers:
1)Microsoft ODBC Driver for Oracle
2)Microsoft ODBC for Oracle
3)Oracle ODBC Driver
Which of these should I use ?
Is there any other setting I need to do before I can run my JDBC program ?
Regards,
Vishakha
I'm sorry, I overlooked it as it was the "image" was a parameter in the constructor.
Anyway what changes can I make to this HTML file to load the applet without causing permission/security problems ?
22 years ago
Hi Manfred,
My applet is actually not reading any local files nor is it loading any images. The HTML file is auto generated by HTML Converter and I do not understand the object,embed tags etc.
Can I make some changes to this HTML file to load the applet without causing permission/security problems ?
[ March 11, 2002: Message edited by: Vishakha Ahuja ]
22 years ago
Hi,
I've a JApplet that runs fine in appletviewer.
I used HTML converter to convert HTML applet tag into object tag result:
<html>
<body>
<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.0 -->
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 250 HEIGHT = 150 codebase="http://java.sun.com/products/plugin/1.1.1/jinstall-111-win32.cab#Version=1,1,1,0">
<PARAM NAME = CODE VALUE = "JLabelDemo.class" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.1">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.1" java_CODE = "JLabelDemo.class" WIDTH = 250 HEIGHT = 150 pluginspage="http://java.sun.com/products/plugin/1.1.1/plugin-install.html"><NOEMBED></COMMENT>
</NOEMBED></EMBED>
</OBJECT>
<!--
<APPLET CODE = "JLabelDemo.class" WIDTH = 250 HEIGHT = 150 >

</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->
</body>
</html>
And I've java plug-in 1.3.1_02 which came with jre. I've followed all instructions for setup.
When I run converted html file in IE 5.5 I get
"applet not initialized" in status bar and the following error in Java console:
java.security.AccessControlException: access denied (java.io.FilePermission france.gif read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(Unknown Source) at sun.awt.SunToolkit.getImageFromHash(Unknown Source) at sun.awt.SunToolkit.getImage(Unknown Source) at javax.swing.ImageIcon.<init>(Unknown Source) at javax.swing.ImageIcon.<init>(Unknown Source) at JLabelDemo.init(JLabelDemo.java:15) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
what can I do ? ???
[ March 10, 2002: Message edited by: Vishakha Ahuja ]
22 years ago
Is it possible that this could be related to firewall or proxy setting ?
Thanks for the reply.
However JRun gives a GUI to make these changes and they are autimatically reflected in the xml.
I tried changing this xml file, and my default-server wouldn't start "error: exited abnormally, check event log file"
When I restored the xml to its original state, server started alright. Now, I'm back to square one.
22 years ago
When I start tomcat, I get the following message but I do not get the <b> dos prompt </b> back for any other command nor does it launch any new DOS window ? Is this <u> normal behavior </u> ?
If so, where do I say shutdown ?
C:\tomcat\bin>startup
Including all jars in ..\lib in your CLASSPATH.
Using CLASSPATH: ..\classes;..\lib\SERVLET.JAR;..\lib\ANT.JAR;..\lib\JAXP.JAR;..
\lib\CRIMSON.JAR;..\lib\WEBSER~1.JAR;..\lib\JASPER.JAR;c:\jdk1.3\lib\tools.jar
Starting Tomcat in new window
2002-02-26 20:57:11 - ContextManager: Adding context Ctx( /examples )
Starting tomcat. Check logs/tomcat.log for error messages 2002-02-26 20:57:11 -
ContextManager: Adding context Ctx( /admin )
2002-02-26 20:57:11 - ContextManager: Adding context Ctx( )
2002-02-26 20:57:11 - ContextManager: Adding context Ctx( /test )
2002-02-26 20:57:45 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
2002-02-26 20:57:45 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
Regards,
Vishakha.
22 years ago
Hello,
I had few programs using Sockets/InetAddress/URLConnection objects that interacted with URLs.
I got the result in stand alone PC however when I run the same program in a LAN env., I get Run-time exceptions : "UnknownHostException"
What should I do ?
Does MS IIS server support java servlets and jsp ?
22 years ago
Hello, I read that a server knows a servlet by the alias name.
On Allaire Jrun, How do I define alias for the servlet: Specifically,
1)If my servlet class file (Eg. HelloServlet.class) resides in this directory
c:\Program Files\Allaire\JRun\servers\default\default-app\web-inf\classes, then what should be my fully qualified servlet class name ? can servlet name and display name be the same ?
2)What should be my address in the web-browser for running this alias servlet ?
Currently, I run it with this address:
http://localhost:8100/servlet/HelloServlet
I can run with class name, but just don't know how to refer it with an alias name ?
Please help.
Thankyou,
Vishakha
22 years ago