Results 1 to 1 of 1
- 06-21-2012, 11:12 AM #1
Member
- Join Date
- Aug 2009
- Posts
- 3
- Rep Power
- 0
Specifying JVM arguments via applet parameters
Hi All,
I have a web application its client side is an applet and it loads data from server part using classic HTTP communication. I have development server inside company's intranet. When I join that network via VPN, the applet throws security exception java.net.SocketException: Permission denied: connect even though applet requests data from the same location it was loaded from. And when I'm at work and do not need to connect using VPN, it works correctly.
My environment is: Windows 7 32bit, Java 7, Cisco AnyConnect utility for VPN connection to company's network.
I've read a lot of articles and it seems there is an issue in combination of Java 7, Windows Vista/7 and Cisco AnyConnect utility with respect to IPv6 protocol support. And suggested solution is to disable IPv6 support in Cisco network adapter settings either setting up the JVM.Java Code:-Djava.net.preferIPv4Stack=true
But the problem is that both solutions which really work have to be set up on client machine and I'm trying to avoid any end user's burden in setting up his environment to be able to use my SW.
So I've came up with an idea to pass that argument for setting up JVM as applet parameter as described here: Applet Deployment. So my applet parameters look like here:
Unfortunately, it does not work at all even if I try another option to use separate JVM.Java Code:<applet ....> <param name="java_arguments" value="-Djava.net.preferIPv4Stack=true"/> <param name="separate_jvm" value="true"/> </applet>
Question is: Does anyone know why setting the option -Djava.net.preferIPv4Stack=true in client JVM solves my issue and if I do the same via applet parameter, it does not work?
Thanks.
Best regards
xmikul28
Similar Threads
-
applet constructor without parameters
By curious_programmer in forum New To JavaReplies: 1Last Post: 06-01-2012, 04:04 AM -
Java from console with parameters... with inetrnal parameters
By metoda in forum New To JavaReplies: 10Last Post: 01-24-2012, 10:02 PM -
help with arguments
By smilinglady in forum New To JavaReplies: 33Last Post: 01-27-2011, 03:10 AM -
how to pass parameters from a method to another which accepts to parameters?possible?
By amrmb09 in forum Advanced JavaReplies: 5Last Post: 11-21-2010, 02:08 PM -
Sorting objects with 2 strings arguments and 2 int arguments
By tirwit in forum New To JavaReplies: 8Last Post: 09-23-2010, 12:07 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks