English 中文(简体)
无法找到或装载主要类别:net.ssl.keyStore
原标题:Could not find or load main class .net.ssl.keyStore
  • 时间:2021-12-04 14:02:38
  •  标签:
  • java

I try to put federated container using -Djavax

在使用该指挥系统时java - Djavax.net.ssl.keyStore=xyz.jks i 无法发现或装载主要类别:net.ssl.keyStore-xyz.jks。

我使用1.8版的java版本,是这一版本中所包含的净类。

问题回答

The command you say you are running is plainly incorrect. There needs to be a class name after the -Djavax.net.ssl.keyStore=xyz.jks option.

例如:

java -Djavax.net.ssl.keyStore=xyz.jks com.acme.traps.RoadRunnerTrap

操作<代码>RoadRunnerTrap的申请,有不同的SSL钥匙仓库。

但是,删除该职衔给你一个不同的错误信息。 例如,在第17号 Java案中,它说:

$ java -Djavax.net.ssl.keyStore=xyz.jks 
Usage: java [options] <mainclass> [args...]
           (to execute a class)
   or  java [options] -jar <jarfile> [args...]
           (to execute a jar file)
   or  java [options] -m <module>[/<mainclass>] [args...]
       java [options] --module <module>[/<mainclass>] [args...]
           (to execute the main class in a module)
   or  java [options] <sourcefile> [args]
           (to execute a single source-file program)

...

为了获得你所报告的错误信息,你实际上需要<代码>-D之后的空间。 与此类似:

$ java -Djavax .net.ssl.keyStore=xyz.jks 
Error: Could not find or load main class .net.ssl.keyStore=xyz.jks
Caused by: java.lang.ClassNotFoundException: /net/ssl/keyStore=xyz/jks

因此......看来,你已经错过技术大学,以获得这一错误信息:

  1. You left out the class name for the class you want to run
  2. You embedded a space in the -D option.

is net.ssl class included in this version?

它不是一个类别:javax.net.ssl.keyStore是财产的名称。 你们可以“经营”。

如果你的问题解释了你掌握的指挥是什么?

java -D"javax.net.ssl.keyStore=xyz.jks"




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签