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, 2493🔥, 0💬
Popular Posts:
Apache Ant Source Code Files are inside the Apache Ant source package file like apache-ant-1.10.10-s...
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes: "C:\fyicenter\jdk-...
Apache Neethi provides general framework for the programmers to use WS Policy. It is compliant with ...
JDK 11 java.sql.rowset.jmod is the JMOD file for JDK 11 SQL Rowset module. JDK 11 SQL Rowset module ...
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module. JDK 17 Base module compiled class fil...