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, 2496🔥, 0💬
Popular Posts:
How to display XML element type information with the jaxp\TypeInfoWriter.java provided in the Apache...
How to download and install JDK (Java Development Kit) 5? If you want to write Java applications, yo...
JDK 11 jdk.internal.vm.ci.jmod is the JMOD file for JDK 11 Internal VM CI module. JDK 11 Internal VM...
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...
pache Derby is an open source relational database implemented entirely in Java and available under t...