Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Run com.sun.javaws.Main from javaws.jar
Can I run com.sun.javaws.Main from javaws.jar directly? I don't want to use the JavaWS command.
✍: FYIcenter
Not really. You can get JavaWS started.
But you need to set a number of properties at the command line to make it work properly.
See the tutorial below:
1. First try:
>\fyicenter\jdk-1.8.0\bin\java -cp \fyicenter\jdk-1.8.0\jre\lib\javaws.jar com.sun.javaws.Main Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/deploy/config/JREInfo
2. Adding deploy.jar
>\fyicenter\jdk-1.8.0\bin\java -cp \fyicenter\jdk-1.8.0\jre\lib\javaws.jar;\fyicenter\jdk-1.8.0\jre\lib\deploy.jar com.sun.javaws.Main #### Java Web Start Error: #### Invalid arguments supplied: { }
3. Adding JNLP file:
>\fyicenter\jdk-1.8.0\bin\java -cp \fyicenter\jdk-1.8.0\jre\lib\javaws.jar;\fyicenter\jdk-1.8.0\jre\lib\deploy.jar com.sun.javaws.Main dynamictree.jnlp Exception: java.security.AccessControlException thrown from the UncaughtExceptio nHandler in thread "Java Web Start Main Thread" Exception: java.security.AccessControlException thrown from the UncaughtExceptio nHandler in thread "AWT-Shutdown" Java HotSpot(TM) 64-Bit Server VM warning: Exception java.security.AccessControl Exception occurred dispatching signal UNKNOWN to handler- the VM may need to be forcibly terminated
⇒ Using JavaWS (Java Web Start) in Web Pages
2017-12-31, 2178🔥, 0💬
Popular Posts:
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool, which can be invoked by the "jco...
How to download and install ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is a Java 1...
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers. Both...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...